What is the easiest way to disable an entire HTML page until an initial .load call is complete?
What I mean by disable is the user can not interact with it in any way. It is ok for them to navigate away.
I am using jQuery 1.2.6. Is it to set the call to be sync instead of async? how do you set options for this on the .load function?
U...
From client side, I need to call a server method that is not static.
For example, I got the following user control ucData (private instance of code-behind) that is Databind in the load event.
The server method I need should return ucData.IsValid(). So it can't be static
Is there a way I can do that ?
...
Hi,
I have a form that i want submitting with AJAX, using rails 3 and jquery. The problem that I am facing is that rails is responding to the AJAX request as HTML too. After a little search I found that this has something to do with the correct Accept headers not being passed. How do i fix this?
This is the controller code
respond_t...
Hi,
I'm creating a footer chat bar from this tutorial here: chat bar tutorial
I'm trying to make it so when I click a username in the buddylist, it opens up a new chat box div in the chat bar itself. And, when the div is created/opened, it also assigns an ID to it. For example, it assigns the buddy's username to it.
I'm not sure if yo...
I'm using the JQuery DatePicker to have the user pick a date and have that show up in a textbox. Easy enough. However a restriction I'm working on is that the date range is restricted based on the month that's currently picked out in a user dropdown menu to the month beginning and end dates.
So for example if someone selects "Aug/2010" ...
Hello,
I am pulling my Fullcalendar data for the month that is being viewed. When I click on the Next/Prev Month view buttons it doesn't go out and fetch the new data for the new month.
How do I get the Next/Prev buttons to make another call to the DB and pull records for that month?
...
I'm looking to implement a count-down timer that you see on auction sites with "overtime". So, that's a timer that counts down to a specific date/time but if a bid comes in, then X seconds are added to the timer and the time continues clicking down. Let's say X=10 sec and 5 bids come in when the counter is at 00:03, then the new counter ...
Not sure what is going on here, but the opacity setting in this line of code is turning my transparent png in IE into an ugly mess. This wasn't just for IE6 but the newest version of IE as well. Any ideas?
$('#someid.pre').css({margin:'0px', right:'0px', opacity:'1.0'});
...
How do I select the next "n" elements starting from the current element? What I mean is...
$(this).attr(...);
I want to do this "n" times. For the example of n=4:
$(this).attr(...);
$(this).next().attr(...);
$(this).next().next().attr(...);
$(this).next().next().next().attr(...);
or perhaps do it in a loop:
for (i = 0; i < n; i+...
I have 2 divs, the first one has the label with the content to show, but when you click the "edit" button, it should show you the div="edit" and the content of the 1st label inside of the input that is linked to it (same id).
By the other way, I saw sites that when you type something inside that input, the original label of the "preview...
I'm trying to make a simple in in-page popup called like this:
var test = new popObject({}); //JSON options
and I'm having trouble because when I create two in a row, and call show() on the first one, the second one always shows. Both are created, but they aren't separate somehow, despite being called with new. What am I doing wrong h...
How to update with jquery the label of preview div when im typing inside of the parent input of edit div?
Thank you.
<html>
<body>
<div id="preview">
<label id="companyName" class="workExperience">
This is my company
</label>
...
I'm sure this is painfully simple but I just can seem to find it.
I need to get a selection of textboxes from their value. I don't need the value, I need the elements. I want something like:
$(".ProductCode [value:'hideme']").hide();
I end up with
unrecognized expression: [value:'hideme']
btw,
$(".ProductCode").each(function() ...
How are you able to get theader on a jqgrid using JQuery.
...
Browsers can display certain media inline, and will provided they are sent with content-disposition: inline. What's the best way to detect whether the browser is capable of doing so with a particular type of media?
I am running into the question lately with PDFs and Mac/FF, which seems to refuse to display PDFs inline (actually, in iFra...
I am trying to pass a nested array to an asp.net mvc controller like this:
var subgroups = [];
subgroups [0] = [["A", "Y"],
["B", "Y"],
["C", "Y"]];
subgroups [1] = [["D", "Z"],
["E", "Z"],
["F", "Z"]];
$.ajax({ url: "<%= Url.Content("~/Controller/Action") %>", data: {...
I've just started using jQuery, but am a bit stuck. I am building a table dynamically in javascript and am adding classes all the time to cells (for styling), so I would like to use the addClass function:
var row = table.insertRow(-1);
var cell = row.insertCell(0);
cell.addClass('boldRow');
but this does not work. I know you can use t...
After reading jQuery .live() post and looking through the jQuery API I could not find a full list of events that jQuery 1.3 supports cross-browser.
...
Hi,
i have many checkbox:
<input type="checkbox" name="checkbox_user" value = "1"/>
<input type="checkbox" name="checkbox_user" value = "2"/>
<input type="checkbox" name="checkbox_user" value = "3"/>
...
and checkbox with value 2 is selected. Is possible unselect checkbox (with jQuery) when i now only value.
...
I'm having problems sending a json jQuery array via ajax to a php script. What is the problem here:
var tee = $('#voting_image img').attr('id');
var vote = 1;
var thing = {tee: tee, vote: vote};
var encoded = $.toJSON(thing);
$.ajax({
url: '/vote_save.php',
type: 'POST',
...