jquery

Want to use https request in phonegap application on iphone

Hi Guys I am trying to call https request in phonegap iphone app using jquery's method getJSON(),though it work fine in normal safari,but in mobile safari,it gives error like Download Failed-Safari cannot download this file Please suggest me... Thanks ...

JQuery Overlay Opacity and Text Problem

Hi there, I have an unordered list show a bunch of logos as blocks. When the user hovers over any logo I'm using a div to create a semi-transparent overlay, but on top of the overlay I would like to put some text with a button. Everything is working fine, but when I hover over the item the text tends to look like it's behind the over...

jQuery Datatable Filter Customisation

Howdy, I have a typical requirement when searching data dynamically in jQuery datatable. Is it possible to bind the search field with a button? What I mean is I don't want to redraw the table based on each character input. I wish to first enter the data in the field and then search the table by clicking the button. If anyone of you ha...

validate and submit multiple forms

I have a single page on which I have log in form, registration form and forgot password form. I could validate and submit log in form successfully, but when I tried to validate the registration form, it simply got submitted and did not validate. Can I validate multiple forms in a single page using jquery ? If we can how ? Thanks in advan...

jQuery appending html versus appending existing element

Hello. I have a string big_html and I want to add it to some div. I have observed a performance difference in the following: $('#some-div').append( big_html ); // takes about 100 ms //create it first var append_objs = $(big_html); $('#some-div').append( append_objs ); //takes about 150 ms Does anyone know why this happens ? Thank you...

creating well formed XML from not well formed XML

Hi, I am having to use the following XML returned from a web service: <?xml version="1.0" encoding="utf-8" ?> <root> <staticPage> <liStaticPageID>6165</liStaticPageID> <sTitle>Ethylene</sTitle> <sPageURL>Ethylene.htm</sPageURL> <sBody> <P>Ethylene is a colourless, odourless, extremely flammable compressed gas. I...

jQuery moving a div across the screen, bit by bit

So I have this code: $(document).ready(function() { $(document).keypress(function(e) { switch(e.which) { // user presses the "a" case 97: $('#character').css('left','+=40'); } } } The problem is that I can onl...

how to upload files using ajax in jquery, windows 7

how to upload files using ajax in jquery. system: windows 7, iis, asp.net, c# ...

using jQuery to remove markup above and below <html> </html>

I have a website on a free domain that has html mark-up added server side to produce web banners. This mark-up is placed above and below the main outer tag. Is it possible to have jQuery strip this out prior to the page rendering? ...

Ajax readystate 3 (Chrome / IE)

Hi Folks, I'm playing around with some comet and mxhr technologys. As it turns out, Chrome (5) does actually fire a readystate 3, but the responseText is always empty there. Until today I though only InternetExplorers (<8) would show that behavior. Am I wrong here? Can somebody confirm that Chrome does not fully support ajax readyst...

JQuery | Dialog: Link disappears after click

Hello, when I open a dialog box onclick the link disappears. function flugzeitenAnzeigen(myUrl) { $('.' + myUrl).load('http://www.mydomain.com/Flugzeiten_Anzeigen.aspx?flugid=' + myUrl +'').dialog({ width: 510, modal: true, title: 'Ihre voraussichtlichen Flugdaten' }); }; <a href="#" id="GridView1_ctl04_flugzeitenAnzeigen" tit...

jquery - jsonp overwrite callback get parameter

I'm writing a dynamic js that should send a request to an action, that is defined in the href attribute in a link. The link look like that: <a href="module/action?callback=MyCallback">show something</a> As you can see the link has a get param named callback. That is defined, because the request method should be as generic as possi...

Inserting flash swf using javascript jquery hover broken in ie6 and ie7

I have setup a page where I have an outer div with an image inside of it and a flash place holder. When I rollover the image, I would like to insert a flash video player (video player is written with as3). The functionality works perfectly in FF, Safari, Chrome but doesn't work in ie6 and ie7. I have tried all manner of css possitioning...

Does event delegation work with webdriver in firefox?

I'm using webdriver to test a site. Event delegation is being used across a number of links to load data via ajax: jQuery("body").delegate("a", "click", function adjustHref(event) { // callback }); In the test I...

Uploadify Source URL

I am using a script called Uploadify to upload multiple images. The script is a combination of Flash and jQuery functions, the Flash being an SWF uploader. The uploader then sends the image to a processing PHP script. In this script, we want to use JSON to return data to the original page. Is there any method that comes to mind that we...

JQuery Image load fails on MobiOne iPhone simulator

I dynamically update an image on a JQTouch site using the following code: $('#sv_map') .one('load', function() { $(this).fadeIn(); }) .attr('src', imgURL); Got the basics of this from here. sv_map is an image, and imgURL points to a valid, existing JPG file. This code works as exp...

jquery hover li>ul - keep visible until remove mouse from sub UL..

Code: $("ul.menu_body li:even").addClass("alt"); $('li a.menu_head').hover(function () { $('ul.menu_body').slideToggle('medium'); }, function(){ $('ul.menu_body').slideToggle('medium'); }); found this code somewhere on the web, originally it was a click event on "li a...

best method of detecting mobile browsers with javascript/jquery?

For a site I'm working on I'm implementing image preloading with javascript however i most certainly do not want to call my preload_images() function if someone is on slow bandwidth. For my market the only people with slow bandwidth are those using mobile internet on a smartphone. What's the best approach for detecting these users so i...

jQuery autocomplete: how can I remove one character from the inserted value when it doesn’t match?

I am using "jquery.autocomplete.js"(Version 1.1). My autocomplete configuration is multiple: true, multipleSeparator: ",", mustMatch: true, In my search list "javascript" is a value.So when I am typing "javas" it is showing the "javascript" value but when I am typing "javab" it is removing the whole word.It is happening for the "mustM...

jQueryUI Datepicker noWeekendsAndHolidaysAndWeekDay

I've got this answer working but I'd like to extend it: http://stackoverflow.com/questions/677976/jquery-ui-datepicker-disable-specific-days I'm stuck on adding this method to the solution: beforeShowDay: function(date){ var day = date.getDay(); return [(day != 5)]; } to noWeekendsAndHolidays. How can I add that i...