Month view is perfect. Day view is fine too!
But switching to week-view shows event on the first day of the week.
Changing columnFormat, timeFormat or firstDay does not fix problem.
I am trying to make simple list with ability to add and delete elements. For now I am working on adding and performing a simple action on each of list elements object (existing and added). Unfortunately I have met some difficulties with that. I am able to modify objects that are created at the beginning, but not one added during "webpage working".
First of all my idea was to add AJAX to this, but I don't think it is the easiest way.
I think that some time ago (I don't remember where) I read how to make this work, but now I don't know. I would be really glad if someone would help me with this or at least give a link to good explanation of this.
There is what I have done so far (well this is mostly just a scratch, but the main idea is in it): http://jsfiddle.net/sebap123/pAZ7H/
Thank you for all responses.
The Goal:
On mouseover (or :hover), enlarge the preview image by about 400% and display it in the center of the page
Remove the preview when the mouse leaves
The Problem:
Solutions like FancyBox are too bloated
in FancyBox's case it ignores width and height for image elements, which makes it useless
Most of these "lightboxes" steal focus when they're called
Really, I'm just looking for a simple, efficient solution.
Oops - StackOverflow won't let me post images yet, mockup - http://img685.imageshack.us/img685/7649/idae.png
My div is Opacity:0.7 and filter:alpha(opacity=70);
Fading out works fine
Fading in, it fades all the way to 1 and so is no longer transparent.
How can I fade it in to 0.7?
I've gotten a fair amount of work done on my latest project, but I've realized there's a bit of a problem: If you don't have a Javascript-enabled browser, you can't submit any forms because every form uses AJAX to submit it.
My question to you all:
How can I implement some sort of "fallback" so that if they don't have Javascript enabled, they can still submit the form.
Currently I have a banner along the header that says "For the optimal (and by "optimal," we mean "actually working") experience, please enable Javascript in your browser." but that seems like less than the optimal solution.
Thanks!
I'm using colorbox, i just get undefined as my get values?
$('.banner').colorbox({
opacity: 0.4,
href: 'dialogs/ban_add_edit.php?banner_to_edit='+$(this).attr('id')+'&typeofbanner='+$(this).attr('rel')
})
I am wanting to redirect a page on click, and then load specified content into on of those pages div.
How do I go about doing this?
For example:
<div id="redirect">Click here to go to new page</div>
When the new page loads, there will be a div with id = content that needs to have content automatically loaded based on data sent from the redirect id on the previous page.
Hello all,
I have a function that looks somewhat like this:
function(domObj) {
var currentObj = $(domObj);
...
currentObj.contents().find(".ws").after("foobar");
}
My problem is that the above method of using .contents().find() is not working. "foobar" never gets stuffed after the specified dom element, represented by the selector, .ws
However if I do this:
$(".ws", currentObj).after("foobar");
Then the string, "foobar" gets appended every time.
My question:
Are not these two methods supposed to be equivilant? How/what am I doing wrong in my use of .contents().find() so that it is not working?
Thanks!
for the last cell in a row i want to perform a different action:
this doesn't work:
$('td').each(function(){
var $this = $(this);
if ( $this === $this.parent().last('td') )
{
alert('123');
}
})
and neither does it if i remove .parent()
I'm trying to decide if upgrading is viable given all the libraries we are using. The problem is some of these plugins arent being developed anymore so I'm not sure which of them is compatible with 1.4
Any thoughts on how to best approach this given legacy dependencies on older plugins?
This line of code is working fine for Firefox
$("#<%=txt1.ClientID%>").text()
but not for IE8 and IE7. See the scenario below in order to understand what I really mean:-
Scenario:-
Loading .aspx page.
populating text box with some data from database.
Now user changes data in same text-box at client-side (means page not yet submitted) So here in firefox, the above line of javascript is showing me the actual data came from database, but IE7&8 showing me the changed data. But I want actual data.
So i need some compatible code for IE7 & IE8
I hope i explained it well what i need. Thanks in advance
For some odd reason the part where objects are shown and hidden in my script doesn't seem to be working. I'm not sure if its the fact firefox doesn't like that or whether its the function-based code I have (to save duplicating lines of code)?
There is a working example here and the javascript is here
All help appreciated
The AJAX content loaded in a Colorbox has some JavaScript included that resizes things within the content. Colorbox determines its sizing based on the sizes before all of the AJAX happens. How can I make the Colorbox resize after the content has been loaded?
Here is a link where someone said that you can call colorbox() again after it's been loaded, but I can't figure out how to do that:
http://groups.google.com/group/colorbox/browse_thread/thread/535d21c69e9006b0
Hi all,
I understand you can add insert blocks of html before and after a target using before(), insertBefore(), after() and insertAfter().
I tried to do something similar to this
<script type="text/javascript">
$(document).ready(function(){
$("p").before("<div class='myContainer'>");
$("p").after("</div>");
});
</script>
<p>paragraph</p>
But the inject seems to automatically create closing tags for me, is there a way around this?
Cheers
All i want to do is to check if the textfield has been changed. if not, i want to highlight the boxes when submit is pressed. how do i do that? seems very simple, but not sure why every other solution is so complicated
Hello
var myarr= Array('test1','test2','test3');
var searchTerm = "test";
var rSearchTerm = new RegExp( searchTerm,'i');
$.each(myarr, function(i) {
if (myarr[i].match(rSearchTerm)) {
//item found
}
});?
guys is there any way to make my search algorithm better ? "myarr" will be a big array so i want to make sure that i'm using the best way to search in it
thanks alot
Hi
How would I write a selector that would look through say a div of textboxes and find which ones have a value in the textbox(so length would be greater than zero).
Can I do this all in one selector or do I have to get all textboxes then loop through them?
Hello,
<img src="" width="200" height="200" id="test_img" />
<script>
$("#test_img").click(function() {
alert("Hello");
});
</script>
But it doesn't matter what mouse button I'm pressing - right or left. I see absolutely the same result. I want alert to be shown only on left mouse button click.
Thank you and sorry; I'm little new to javascript.
Thank you.
Suppose my code is like this:
<td class="apple">
<div class="worm">
text1
</div>
</td>
<td class="apple">
<div class="worm">
text2
</div>
</td>
<td class="apple">
<div class="worm">
text3
</div>
</td>
How can I loop through everything with "tr class apple", and then grab the text of the div inside with id "worm", and then set each of the .attr() as that text?
Result:
<td class="apple" title="text1">
<div class="worm">
text1
</div>
</td>
<td class="apple" title="text2" >
<div class="worm">
text2
</div>
</td>
<td class="apple" title="text3">
<div class="worm">
text3
</div>
</td>
Thank you
Ok so I have about six of these calendars on page, so thats around 180 td items (1 for each date):
each td has an id that is equal to that day's timestamp.
the dates I want are the red ones (class of .booked).
So i need the fastest way to 'serialize' the ids for td.booked items, any ideas?
I am making a grease-monkey plugin for a website that has many flash files. I'd like to make a hash of the flash, the problem is that the flash files are up to 10(total) * 10MEGS. This is slow; I'd like to be able to only grab the first 80KB to hash. The end result would be an easy way to blacklist certain flash files containing unwanted content.
Is this possible? Suggestions?
Code examples are greatly appreciated!