jquery

Problem with ASP.NET Web Service and JQuery Client

Am I missing something? I am trying to create a web service and consumer in asp.net, using JSON with JQuery, but I'm not having any luck. I can get JQuery to call the service, and get the service to reply, but the response always goes through the "error" callback in JQuery. When I view the response in FireBug, it appears to be XML, not J...

[jQuery UI Tabs] : How to cache AJAX responses (to be displayed the next time the user selects a tab) ?

I populate my tabs contents using AJAX calls with the tabs widget from jQuery UI library. My code loks like that : <script type="text/javascript"> $(function() { $("#tabs").tabs({ load: function(event, ui) { afterLoadProcessing(); } }); }); </script> ... <div id="tabs"> <ul> <li><a href="url1">tab1...

What would be the jquery equivalent of 'Dive into python'?

I need to , well, dive into client side programming. Is there an equivalent to 'Dive into python' for jquery? I see that jquery 1.4 has been released. Does this change anything w.r.t answers? ...

Onblur, what is the next control which will gain focus?

I am firing some code onblur() of a textbox. But I want to do something different if the user clicked on the cancel button to cause that onblur(). Is there a way within the onblur() event handler function to know what the control is that is about to receive focus and react acordingly? -Joseph ...

Virtual Scrolling / Paging

Hi all, I was wondering if anyone know of examples out there on how to page a List of data via scrolling. (i.e. like yahoo mail) Thanks ...

Can you set an Interval on button clicks?

$('.button').click(); The above code works great to click all buttons on the page at once, but I am trying to fire off clicks every half or second or so until the jQuery Object has looped i.e. $(function(){ $('.button').each(function(){ setInterval('$(this).click()', 500); }); }); Can some one tell me how I can d...

Applying jquery-ui droppable on nested lists.

Hi there, I am trying to use jquery droppable on a nested list, applying a change to the background colour of the li on hover. The problem is that it is only applying to the first item in a list. The alert is still alerting the text within the list item though. Any ideas why this would be happening? $("#mailbox li").droppable({ ...

Jquery working on local server but not working on main server

Hi all good day. I worked on codeigniter with jquery validate plugin and upload plugin its working fine on local server but not working on my http server its getting the the jquery path correctly but not working.The page link is: http://www.bdshop247.com/StoneBollards/admin/admins/add_product Please help me on this matter. ...

jquery toggle input classes in only 1 TR table row

I have a table with a number of rows each row contain several input fields, example <tr id='1'> <td><input id='a' class='inputa'></td> <td><input id='ab' class='inputa'></td> <td><input id='abc' class='inputa'></td> </tr> <tr id='2'> <td><input id='b' class='inputa'></td> <td><input id='bc' class='inputa'></td> <td><input id='bcd'...

Unable to change global variable from local function

I'm trying to have a jQuery.getJSON() call change a global variable with the JSON array it returns var photo_info ; //Advance to the next image function changeImage(direction) { jQuery('img#preview_image').fadeOut('fast'); jQuery('#photo_main').css('width','740px'); if (direction == 'next') { ...

jQuery script not working when page viewed on localhost

I'm just starting to playing around on a Mac for the first time and have created a very simple html page that uses jQuery to do a simple text swap when an h1 tag is clicked. When I don't view the page through the webserver and just open it directly in Safari (file:///Applications/xampp/xamppfiles/htdocs/test/mypage.html) it works as ex...

jQuery remove() is moving my div blocks... how can I fix their positions?

I'm using jQuery to refresh content in container DIV. When the refresh link is clicked, I call jQuery to remove() the content DIVs and then load() to re-create them and the content. The problem is I have menus and navigation at the bottom and when I refresh the content, all the bottom nav gets pushed up temporarily after the DIVs are re...

JavaScript key listener disabled when inside a text form

I have a key listener assigned to the arrow keys to navigate a slideshow. But I want to disable the key listener, temporarily, while a user is typing inside an input field. How can I do that? My current code looks like this: //Listen to the keys function checkKey(e) { switch (e.keyCode) { case 37: changeImage('pre...

Why doesn't filterJSON work with more complex JSON hierarchy?

I would like to use jQuery filterJSON with flickr, and I found that it does render remote JSON files and not only local ones as shown in its author's demo page. When replacing the default path to local JSON file with remote Twitter JSON file, it renders fine. BUT when using other JSON feeds like the flickr JSON in the code below, returns...

jQuery iterating over a function

Pretty new to jquery and having a bit of a problem with a function I wrote, very similar to this problem, and if that's anything to go on then apparently I have a closure problem. As Peter Bailey put it in the above thread, this is what's happening: Iterate over some values Define/assign a function in that iteration that uses iterated ...

jQuery: $("#" + $(this).attr('id') + "_div")

I'm trying to modify a name-related element. I'm taking values from a drop-down and displaying them in a div. Their ids are: selected_terms selected_terms_div I have a number of these pairs and I was hoping to write generalized code instead of hard-coding it (I figure it'll be useful later). This code isn't working: $("#" + $(this).at...

How to call Webservice through jquery?

Hi! How to call webservice through jquery... I tried following code.. $(document).ready(function() { $("#sayHelloButton").click(function(event){ $.ajax({ type: "POST", url: "C:/Webservice/Service.asmx/HelloToYou", data: "{'name': '" + $('#name').val()...

Problem in IE 8

Hi Calling my image code refresh using following code Here "captchaController.do" is the springController. <img name="captchaImage" id="captchaImage" src="captchaController.do" width="150px" height="30px">&nbsp;<A href="#" class="standardLink" name="refreshImage" id="refreshImage" onClick="javascript:refreshImageCode();">Refresh</A...

403 Forbidden Error

When I'm accessing web service from jquery, I'm getting the 403 forbidden error.. I published and created in the virtual directory too. Wat's the cause of this error and how to rectify it? I've added the webservice in the same solution.. This is my following code.. $(document).ready(function() { $("#sayHelloButton").click(f...

how to close client pop up windows

How do I close all child popup windows which are already opened using jquery, after the user logs out? ...