jquery

Jquery Ajax calls crashing Internet Explorer?

I must admit, this is my first post on this site, so I apologise in advice if I do something wrong (formatting etc). Anyway, I'm creating a kind of mmo using javascript (and jQuery), and so far everything is running fine in Chrome, Safari, Firefox, etc. However, I've found that somewhere along the line, Internet Explorer crashes. By ...

jQuery select options with multiple values

Within a selector, how do I check if a value of an attribute contains 'a', 'b', or 'c' in a single line? Can you do for example: $('input[name]=a|b|c')? Well, I tested that and it didn't work. ...

jQuery: Look up table value

Basically I'm trying to create to use a table as a look-up table. Normally, I would do this server side, but in this case I just have an html table and the table is going to be inputted by the client. Basically, when filling out a form they give me two values which are in columns A & B. Then the form needs to do a calculation using the...

how can i auto align a div to <a> tag on document

i have a div i.e <div id="data_sprite">Jquery ajax data here</div> and it is invisible.... now suppose i have my first <a> tag on top of document and 2nd <a> tag on bottom of document... now what i want is that if i click on <a> on top of page the div auto align with its top right corner and when i click on <a> at bottom the div shou...

jQuery Scrollable inside WordPress Theme

Hi, Hoping someone can assist. I would like to use the following jQuery Scrollable plugin (which is displaying 5 photos per pane), from http://flowplayer.org/tools/demos/scrollable/plugins/index.html on a Page in my WordPress theme but in a way that will allow the WP Admin user to go into this page and add/remove any images they want w...

Simple AJAX request using jQuery not working on IE

Hi guys. This is my code, which sometimes works and sometimes doesn't. var resolve_ajax_login=function(){ $.ajaxSetup({cache:false }); var loginvar=$("#inputlogin").attr("value"); var senhavar=$("#inputsenha").attr("value"); $.post("../model/php/login_ajax.php", {login:loginvar, senha:senhavar}, function(respons...

jquery hide div if child div doesnt exist

Hi all, I was wondering how I could hide a div if the child div doesn't exist inside it. Each div will contain a h2 tag, but if the div doesn't include a div named "info" I'd like it to be hidden. Here's the structure: <div class="qaContainer"> (this div can stay as is, as it contains an "info" div) <h2>Testing Category 03</h2> <d...

jquery code working fine in firefox but giving error in IE "object expected error line 1 char 1"

This code working fine in FF but giving error in IE object expected error line 1 char 1 jquery code $(function () { $('#header_images img:gt(0)').hide(); setInterval(function () { $('#header_images :first-child').fadeOut().next('img').fadeIn().end().appendTo('#header_images'); }, 3000); }); this is added in exte...

jquery ui dialog title bar icon

How do you add an icon (floated to the left on the title bar, like windows in Windows) to a jQuery UI Dialog? ...

How do I handle multiple buttons in a jQuery ajaxform?

I'm using the ajaxform plugin for jQuery. I have a form with Save and Cancel buttons. How do I handle multiple buttons so that the Save button posts to a URL and the Cancel button reloads the form container with a read only view from a different URL? ...

How to refer the resultant xml file which is being constructed and saved from webservice file

This is my webservice code which performs constructs xml file and stores to particular destination ,Is this the correct way to store the resultant xml file ,or please let me know if their are any alternate procedure to do so. [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Sy...

Selecting text in div on mouseover

How can I select text when I mouse over a div? ...

change the background of a text When mousemove

How to change the background of a text When mousemove using jquery/Js? I need text highlighting for each character when the mouse is moved, not for the entire div and I want the previous mouse over event should also be highlighted. I am trying this on iphone safari browser. touchmove event is calling once not continuously. ...

can we return xml document to client side application instead of saving it at particular destination

I have a webservice webmethod which saves the xml output to destination [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Xml)] public XmlDocument GetList( string keyword1, string streetname, string lat, string lng, string radius) { XmlDocument xmlDoc = CreateXML( keyword1,streetname,lat,lng,radius); //save file to ...

jQuery VS Flash

MOST of what the Flash is capable of jQuery can do that too... plus jQuery has its own advantage of being light and its integration and interaction with HTML directly... forget about falsh games for a while.... just consider flash based websites only for website designs and their interaction i am thinking jQuery + AJAX is VERY ENOUGH...

Regex in jQuery

How to put a validation over a field which wouldn't allow only special characters, that means AB#,A89@,@#ASD is allowed but @#$^& or # is not allowed.I need the RegEx for this validation. ...

jquery margin problem with chrome 6

I have a problem with jquery (1.4.2) and chrome 6 margin-left:auto margin-right:auto $(id).css('margin-left'); $(id).css('margin-right'); both return a px value(ex: 327px) ...

Can someone explain to me why its impossible to invalidate cache in jquery?

I make an ajax call to retrieve a list and cache is set to true. Later, I insert a new item, and retrieve the list again, but this time I set cache to false. Jquery properly shows me the correct list. It is at this point when I would expect jquery to start caching this updated list with the newly inserted data. However, when I make anoth...

jQuery - can I "append" an additional parameter to every get/post request made

Hi, I would like to extend jQuery such that every post/get request made on the client side will have an additional parameter sent (always the same key : value). I need this to detect on the client side if the request was made through jQuery, since I have several js libs at work. The additional param is simply jquery : true. A typical re...

jQuery jFeed plugin working with the domain with www and without it

I use jQuery jFeed plugin to fetch rss feed from WordPress blog and show on the main page of the site. So, it works fine when I go to http://site-using-jfeed.com. But when go to http://www.site-using-jfeed.com, it doesn't load the feed and nothing is shown. I suppose there is something about cross-domain functionality. What can I do abou...