jquery

jquery UI Dialog and Asp.net UpdatePanel

I am looking for a JavaScript modal dialog solution for asp.net, jquery UI dialog seems good but it move dialog container to bottom of body tag. I changed the dialog code to stay dialog to asp.net form but still it's out of updatepanel. Is there any solution or more compatible dialog that doesn't break asp.net form lifecycle? Thanks ...

Downscaled versions of jQuery or Prototype - JS framework selection

While considering the JS framework for my next project, I can see the scale clearly tipping towards jQuery, however, Prototype is getting good reviews, too. The issue I am thinking of is how to downscale these to have only the functionality I REALLY need. The latest jQuery seems to be 55k compressed, for instance, and I clearly need onl...

Extracting ajax return data in JQuery

I have done jQuery and Ajax , but I am not able to get the response into a Div element. This is the code: Index.html $.ajax({ type:"POST", url: "ajax.php", data:"id="+id , success: function(html){ $("#response").html(data); } }); It is receiving the response to my <div id="response"></div>. The ...

Fix or workarount for jQuery dialog in IE6 - major layout issues when the dialog contains a form

I'm working with a jQuery dialog that contains a form. In ie6, there are a couple unexplained inches of padding above the form. When I eliminate the form from the markup, the most serious layout problems go away. I've tried it with no theme (default), Flora, and my themeroller theme and they all seem to have the same problem. I've tried...

Javascript (jQuery) performance measurement and best practices (not load time)

I'll say right off the bat that this question is NOT about load times; I know about YSlow, the Firebug profiler, and whatever best practices and tools googlage reveals about page component load times. I am asking what good profiling tools or libraries or add-ons there are for measuring actual execution of Javascript (specifically jQuery...

how to check if a jquery plugin is loaded

Is there any way to check if a particular plugin is available? Imagine that you are developing a plugin that depends on another plugin being loaded. For example i want the jQuery Validation plugin to use the dateJS library to check if a given date is valid. What would be the best way to detect, in the jQuery Valdation plugin if the dat...

Iterating through an array while performing a request for each entry

Here is my issue. I have an array containing the name of cities that I need to lookup the weather for. So I'm looping through each city and performing an AJAX request to retrieve the weather. var LOCATION = 'http://www.google.com/ig/api?weather='; $( document ).ready( function() { for( var cityIdx = 0; cityIdx < cities.length; city...

jQuery UI - a swap function that hides and unhides elements by selector

Preface: I have jQuery and jQuery UI included on a page. I have this function defined: function swap(sel) { if (1 == 1) { $(sel).hide('drop',{direction:'left'}); } } How do I fix the (1 == 1) part to test to see if the element is already hidden and then bring it back if it is. I'm sure this is easy,...

Sending a value from javascript to jsp (with jquery)

Hi, right now i have a jsp page that allows to sort some items, when is ready and a link is clicked a javascript function converts all the info into xml (text in a variable), after this i need to send this xml to the jsp page again, i tried putting the info in a hidden input and submiting the form, sending with $.post and a few more jque...

Using jQuery, can you have two external scripts that use the $(document).ready(function() ?

I want to split up the jQuery .js file into two, but I have noticed some of the features arent working when I split it up. Is it because I have two external scripts that start with: $(document).ready(function(){ Is that not possible? ...

Capturing mouse-clicks in the DOM with JQuery?

Background I'm using POST form submissions instead of links with concatenated arguments inside a Web application, so I can exercise control over input. Unfortunately this means users can't use the quick shortcuts they know to open links in new windows, like control-clicking or middle-clicking. Problem I've got what seems to be a work...

Jquery video tutorial resources

Is there any place where I can find JQuery video tutorials from novice level to master level? The books I saw mostly assume you are very familiar with CSS syntax. If there is any video tutorial resource for CSS, that would be awesome too. ...

ajax Return Data Not working in JQuery

Dear all I have developed code with ajax and JQuery , I have Got Response from my.php, I have Tried to extract the Values of response ,Here the code My.php ?php echo '<div id="title">My Title </div>'; echo '<div id="message"> My message </div>'; ?> I Try to extract Title and Message SO My Code is Below <script t...

How do you return error messages from AJAX calls using jQuery and ASP.NET MVC?

If I have an ASP.NET MVC controller action that is called from a jQuery .ajax call that needs to throw an error, how do I do so? I know I can create a JSON object and pass it an "error" property, but what if the response from the .ajax call isn't expected to be JSON but HTML instead? ...

mozilla client side XSLT not displaying. (Using jQuery too)

I want to use firebug to debug and help be quickly finish some XSLT layout issues, but I cannot get the following code to perform and display the client side XSLT in Firebox (everything is fine in IE): $().ready(function() { var oXMLHTTP var oXSLT if ($.browser.mozilla){ oXMLHTTP = document.implementation.createDocument(...

Radio Button Check w/ jQuery

What would be the best way to loop through all radio buttons on my page and alert the user if one of them is unchecked for a particular question? Note: there are multiple questions on one page. <li> <fieldset> <h3>What music do you listen to?</h3> <ul class="answerList"> <li> <input type="radi...

How can I avoid a "blinking" progress div on a fast result with jQuery ajax?

I am using jQuery for my AJAX calls to an ASP.NET backend using this approach. I am using .ajaxStart and .ajaxStop to show and hide a progress indicator. When the AJAX request finishes very quickly, the progress indicator "blinks" because it is not displayed long enough. One possible solution would be to display only after a minimum ti...

IE designMode Showing display:none Divs

I've done a lot of research on this,but I'm unable to solve this problem. I've got a Div with several Divs within it that I want to hide before switching on a TinyMCE instance. I'm doing this via jQuery - $(".drop").hide() This works fine, and every browser engine except Trident (IE) hides them. If I inspect the elements in IE, th...

Checking to see what item is selected in an HTML select list via jQuery

How do I get the actual value (or text) of the item selected in an HTML select box? Here are the main methods I've tried... document.getElementById('PlaceNames').value $("#PlaceNames option:selected").val() $("#PlaceNames option:selected").text() And I've tried various variations on these. All I ultimately want to do is get t...

How to pass values from one page to another in jQuery

I have two Pages of JQuery...Page1 & Page2 and I'm able to get Input In Page1 The somval=1000$ The page 1 user enters the somevalue.I have stored in Value var val=somval; Now In second Page I need to Get the Result of somvalue in page 1. of course two pages using My1.js My2.js respectively How to share the values from one jQuery ...