jquery Programming Glossary: apparently
Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go is flaky. There are cases where the Google copy is blocked apparently in Iran for instance . Would I set up a timer and check for..
How to call .ajaxStart() on specific ajax calls http://stackoverflow.com/questions/1191485/how-to-call-ajaxstart-on-specific-ajax-calls .getJSON and .ajax calls. I have tried chaining them but apparently that is no good. .getJSON .ajaxStart function 'kill preloader'..
How to show all rows in the jqGrid? http://stackoverflow.com/questions/1237096/how-to-show-all-rows-in-the-jqgrid So the jqGrid developers are aware of this problem and apparently are planning to fix it in a future release. Unfortunately this..
If a DOM Element is removed, are its listeners also removed from memory? http://stackoverflow.com/questions/12528049/if-a-dom-element-is-removed-are-its-listeners-also-removed-from-memory all bound events too. In older versions of jQuery remove apparently had some memory leak issues itself although these issues were..
Hide options in a select list using jQuery http://stackoverflow.com/questions/1271503/hide-options-in-a-select-list-using-jquery in jQuery 1.3. The first isn't working because you're apparently expecting variable interpolation. Try this #edit field service..
Error handling in getJSON calls http://stackoverflow.com/questions/1740218/error-handling-in-getjson-calls event success or failure and for better or worse that's apparently by design. After searching their bug tracker there's a patch..
jQuery scrollTop() doesn't seem to work in Safari or Chrome (Windows) http://stackoverflow.com/questions/1830080/jquery-scrolltop-doesnt-seem-to-work-in-safari-or-chrome-windows do so. In Chrome and Safari however the call to scrollTop apparently does nothing at all. All the numbers are OK and the target refers..
jQuery .search() to any string http://stackoverflow.com/questions/1854493/jquery-search-to-any-string jQuery documentation for this function I fail at googling apparently. javascript jquery string share improve this question search..
What are techniques to get around the IE file download security rules? http://stackoverflow.com/questions/2064882/what-are-techniques-to-get-around-the-ie-file-download-security-rules In this case I think IE is happy because the content was apparently directly requested by the user which is by the way a ridiculously..
onHide() type event in jQuery http://stackoverflow.com/questions/2857900/onhide-type-event-in-jquery tried this .bind 'hide' function console.log 'asdasda' But apparently that doesn't work. Edit Just to clarify it's being hidden using..
How do I catch jQuery $.getJSON (or $.ajax with datatype set to 'jsonp') error when using JSONP? http://stackoverflow.com/questions/309953/how-do-i-catch-jquery-getjson-or-ajax-with-datatype-set-to-jsonp-error-w event success or failure and for better or worse that's apparently by design. After searching their bug tracker there's a patch..
Combined total for multiple jQuery-UI Sliders http://stackoverflow.com/questions/3486371/combined-total-for-multiple-jquery-ui-sliders total this .slider option value Need to do this because apparently jQ UI does not update value until this event completes total..
AJAX Page Download progress http://stackoverflow.com/questions/399641/ajax-page-download-progress event. I found this thread detailing an attempt but apparently the code works in several browsers but not IE. The suggestion..
jquery: event.stopImmediatePropagation() vs return false http://stackoverflow.com/questions/5302903/jquery-event-stopimmediatepropagation-vs-return-false is an extension from jQuery update apparently it is part of the DOM Level 3 Events specification . Note return..
Uncaught TypeError: Object #<Object> has no method 'movingBoxes' http://stackoverflow.com/questions/5355805/uncaught-typeerror-object-object-has-no-method-movingboxes of the error Any help would be appreciated EDIT So apparently I had this script type text javascript src .. .. Scripts jquery..
How to send FormData objects with Ajax-requests in jQuery? http://stackoverflow.com/questions/6974684/how-to-send-formdata-objects-with-ajax-requests-in-jquery values and the FormData instance that I'm passing in is apparently incompatible. Now since it is possible to pass a FormData instance..
jQuery .live() vs .on() method for adding a click event after loading dynamic html http://stackoverflow.com/questions/8752321/jquery-live-vs-on-method-for-adding-a-click-event-after-loading-dynamic-ht html I am using jQuery v.1.7.1 where the .live method is apparently deprecated. The problem I am having is that when dynamically..
jqPlot resizing http://stackoverflow.com/questions/10191122/jqplot-resizing the 'min' and 'max' dates for the date axis i.e. axis X . Apparently only when the 'min' and 'max' values are set the renderer will..
Using jQuery with Windows 8 Metro JavaScript App causes security error http://stackoverflow.com/questions/10859523/using-jquery-with-windows-8-metro-javascript-app-causes-security-error 1px float left opacity .55 ' a a input type 'checkbox' Apparently the security model for Metro apps forbids creating elements..
CORS with jQuery and XDomainRequest in IE8/9 http://stackoverflow.com/questions/11487216/cors-with-jquery-and-xdomainrequest-in-ie8-9 part of the problem was that I was using POST over HTTPS. Apparently XDomainRequest does not allow CORS over HTTPS. I can switch..
Why do the :not() and :has() selectors allow quoted arguments? http://stackoverflow.com/questions/12475595/why-do-the-not-and-has-selectors-allow-quoted-arguments do the not and has selectors allow quoted arguments Apparently as I've discovered while commenting on another answer jQuery..
jQuery + hide native tooltip + Resolved http://stackoverflow.com/questions/1299772/jquery-hide-native-tooltip-resolved stuff... jquery tooltip share improve this question Apparently the title attribute doesn't fall under the normal event handler...
Easiest/Lightest Replacement For Browser Detection jQuery 1.9? http://stackoverflow.com/questions/14365725/easiest-lightest-replacement-for-browser-detection-jquery-1-9 clients complain yesterday that some code stopped working. Apparently it comes down to plug ins using the now deprecated jQuery.browser..
jQuery memory leak with DOM removal http://stackoverflow.com/questions/1462649/jquery-memory-leak-with-dom-removal 2000 resetContent script div id content div body html Apparently even when calling the jQuery.remove function I still experience..
Prototyping Object in Javascript breaks jQuery? http://stackoverflow.com/questions/1827458/prototyping-object-in-javascript-breaks-jquery a z ig function all letter return letter.toUpperCase Apparently G.replace is undefined. While it's obvious that there's something..
Is there a case insensitive jQuery :contains selector? http://stackoverflow.com/questions/187537/is-there-a-case-insensitive-jquery-contains-selector a .text .toUpperCase .indexOf m 3 .toUpperCase 0 Edit Apparently accessing the DOM directly by using a.textContent a.innerText..
JSON stringify missing from jQuery 1.4.1? http://stackoverflow.com/questions/2277405/json-stringify-missing-from-jquery-1-4-1 stringify missing from jQuery 1.4.1 Apparently jQuery has the ability to decode a given object or string into..
jQuery fadeIn fadeOut - IE8 does not fade http://stackoverflow.com/questions/2766735/jquery-fadein-fadeout-ie8-does-not-fade jquery fadein fadeout share improve this question Apparently there's a workaround Simply set the absolute relative positioned..
Event on a disabled input http://stackoverflow.com/questions/3100319/event-on-a-disabled-input on a disabled input Apparently a disabled input is not handled by any event am I wrong Is there..
Changing an element's ID with jQuery http://stackoverflow.com/questions/347798/changing-an-elements-id-with-jquery jQuery I need to change an element's ID using jQuery. Apparently these don't work jQuery this .prev li .attr id newid jQuery..
Retrieving file names out of a multi-file upload control with javascript http://stackoverflow.com/questions/3654179/retrieving-file-names-out-of-a-multi-file-upload-control-with-javascript
jQuery keyboard events http://stackoverflow.com/questions/5519936/jquery-keyboard-events fires the input value has not been updated yet. Edit Apparently I wasn't clear as to what I need. The function must be called..
Refresh a section after adding HTML dynamically to jquery mobile [duplicate] http://stackoverflow.com/questions/5562461/refresh-a-section-after-adding-html-dynamically-to-jquery-mobile set id newstuff div ' #newstuff .html l .page Update #2 Apparently this is now deprecated see below for some ideas on how to fix..
How to trigger $().ready() in jQuery? http://stackoverflow.com/questions/562229/how-to-trigger-ready-in-jquery be able to use the trigger method. .trigger ready EDIT Apparently this doesn't work because jQuery resets the ready event handlers..
Clone isn't cloning select values http://stackoverflow.com/questions/742810/clone-isnt-cloning-select-values system which explains the bug and provides a work around. Apparently it is too expensive to clone the select values so they won't..
Using Youtube's javascript API with jQuery http://stackoverflow.com/questions/786380/using-youtubes-javascript-api-with-jquery api events youtube share improve this question Edit Apparently calling addEventListener on the player object causes the script..
Codeigniter session bugging out with ajax calls http://stackoverflow.com/questions/7980193/codeigniter-session-bugging-out-with-ajax-calls Found this http codeigniter.com forums viewthread 102456 Apparently it doesn't play well with ajax. One solution is to disallow..
Best way to use Google's hosted jQuery, but fall back to my hosted library on Google fail http://stackoverflow.com/questions/1014203/best-way-to-use-googles-hosted-jquery-but-fall-back-to-my-hosted-library-on-go of jQuery if the Google attempt fails I'm not saying Google is flaky. There are cases where the Google copy is blocked apparently in Iran for instance . Would I set up a timer and check for the jQuery object What would be the danger of both copies coming..
How to call .ajaxStart() on specific ajax calls http://stackoverflow.com/questions/1191485/how-to-call-ajaxstart-on-specific-ajax-calls out. I am trying to attach them to or insert them in other .getJSON and .ajax calls. I have tried chaining them but apparently that is no good. .getJSON .ajaxStart function 'kill preloader' jquery ajax progress bar preloader share improve this..
How to show all rows in the jqGrid? http://stackoverflow.com/questions/1237096/how-to-show-all-rows-in-the-jqgrid scroll 1. In the future we will correct this behavior. So the jqGrid developers are aware of this problem and apparently are planning to fix it in a future release. Unfortunately this post was from over a year ago... At this time all I can recommend..
If a DOM Element is removed, are its listeners also removed from memory? http://stackoverflow.com/questions/12528049/if-a-dom-element-is-removed-are-its-listeners-also-removed-from-memory can see the remove method removes not only the element but all bound events too. In older versions of jQuery remove apparently had some memory leak issues itself although these issues were later attributed to be a Javascript problem and not jQuery..
Hide options in a select list using jQuery http://stackoverflow.com/questions/1271503/hide-options-in-a-select-list-using-jquery For what it's worth the second form with the @ doesn't exist in jQuery 1.3. The first isn't working because you're apparently expecting variable interpolation. Try this #edit field service sub cat value option value title .hide Note that this will..
Error handling in getJSON calls http://stackoverflow.com/questions/1740218/error-handling-in-getjson-calls that don't return a successful result never trigger any event success or failure and for better or worse that's apparently by design. After searching their bug tracker there's a patch which may be a possible solution using a timeout callback...
jQuery scrollTop() doesn't seem to work in Safari or Chrome (Windows) http://stackoverflow.com/questions/1830080/jquery-scrolltop-doesnt-seem-to-work-in-safari-or-chrome-windows stuff to the right point in the window when it's told to do so. In Chrome and Safari however the call to scrollTop apparently does nothing at all. All the numbers are OK and the target refers to the right thing and the offsetParent is indeed the..
jQuery .search() to any string http://stackoverflow.com/questions/1854493/jquery-search-to-any-string .search new RegExp sometext i Also anyone have a link to the jQuery documentation for this function I fail at googling apparently. javascript jquery string share improve this question search is a String method. You are executing the attr function..
What are techniques to get around the IE file download security rules? http://stackoverflow.com/questions/2064882/what-are-techniques-to-get-around-the-ie-file-download-security-rules and ships it back in the HTTP response as an attached file. In this case I think IE is happy because the content was apparently directly requested by the user which is by the way a ridiculously flimsy way to tell good content from bad content . This..
onHide() type event in jQuery http://stackoverflow.com/questions/2857900/onhide-type-event-in-jquery know of an onHide event or something similar in jQuery I tried this .bind 'hide' function console.log 'asdasda' But apparently that doesn't work. Edit Just to clarify it's being hidden using CSS display none . I'm aware of the callback function but..
How do I catch jQuery $.getJSON (or $.ajax with datatype set to 'jsonp') error when using JSONP? http://stackoverflow.com/questions/309953/how-do-i-catch-jquery-getjson-or-ajax-with-datatype-set-to-jsonp-error-w that don't return a successful result never trigger any event success or failure and for better or worse that's apparently by design. After searching their bug tracker there's a patch which may be a possible solution using a timeout callback...
Combined total for multiple jQuery-UI Sliders http://stackoverflow.com/questions/3486371/combined-total-for-multiple-jquery-ui-sliders current total var total 0 sliders.not this .each function total this .slider option value Need to do this because apparently jQ UI does not update value until this event completes total ui.value var max availableTotal total Update each slider..
AJAX Page Download progress http://stackoverflow.com/questions/399641/ajax-page-download-progress bytes loaded . It only has start and complete events no progress event. I found this thread detailing an attempt but apparently the code works in several browsers but not IE. The suggestion they make is to show progress in other browsers and a simple..
jquery: event.stopImmediatePropagation() vs return false http://stackoverflow.com/questions/5302903/jquery-event-stopimmediatepropagation-vs-return-false event handlers in a W3C compatible browser whereas event.stopImmediatePropagation is an extension from jQuery update apparently it is part of the DOM Level 3 Events specification . Note return false does not prevent the event from bubbling up in normal..
Uncaught TypeError: Object #<Object> has no method 'movingBoxes' http://stackoverflow.com/questions/5355805/uncaught-typeerror-object-object-has-no-method-movingboxes for this plugin and i get this error And here is the description of the error Any help would be appreciated EDIT So apparently I had this script type text javascript src .. .. Scripts jquery 1.4.1.js script src Url.Content ~ Scripts jquery.movingboxes.js..
How to send FormData objects with Ajax-requests in jQuery? http://stackoverflow.com/questions/6974684/how-to-send-formdata-objects-with-ajax-requests-in-jquery a simple key value object representing form field names values and the FormData instance that I'm passing in is apparently incompatible. Now since it is possible to pass a FormData instance into xhr.send I hope that it is also possible to make..
jQuery .live() vs .on() method for adding a click event after loading dynamic html http://stackoverflow.com/questions/8752321/jquery-live-vs-on-method-for-adding-a-click-event-after-loading-dynamic-ht vs .on method for adding a click event after loading dynamic html I am using jQuery v.1.7.1 where the .live method is apparently deprecated. The problem I am having is that when dynamically loading html into an element using '#parent' .load http .....
jqPlot resizing http://stackoverflow.com/questions/10191122/jqplot-resizing this question To sort out your problem you must first set the 'min' and 'max' dates for the date axis i.e. axis X . Apparently only when the 'min' and 'max' values are set the renderer will use the value of 'tickInterval'. That sort of problem was..
Using jQuery with Windows 8 Metro JavaScript App causes security error http://stackoverflow.com/questions/10859523/using-jquery-with-windows-8-metro-javascript-app-causes-security-error line div.innerHTML link table table a href ' a' style 'top 1px float left opacity .55 ' a a input type 'checkbox' Apparently the security model for Metro apps forbids creating elements this way . This error doesn't cause any immediate issues for..
CORS with jQuery and XDomainRequest in IE8/9 http://stackoverflow.com/questions/11487216/cors-with-jquery-and-xdomainrequest-in-ie8-9 has exactly the same problem. Edit OK so I figured out that part of the problem was that I was using POST over HTTPS. Apparently XDomainRequest does not allow CORS over HTTPS. I can switch to HTTP but I really need POST. Edit2 See this issue on github..
Why do the :not() and :has() selectors allow quoted arguments? http://stackoverflow.com/questions/12475595/why-do-the-not-and-has-selectors-allow-quoted-arguments do the not and has selectors allow quoted arguments Apparently as I've discovered while commenting on another answer jQuery rather its underlying selector engine Sizzle lets you quote..
jQuery + hide native tooltip + Resolved http://stackoverflow.com/questions/1299772/jquery-hide-native-tooltip-resolved var this this var title this.data 'title' ... do your other stuff... jquery tooltip share improve this question Apparently the title attribute doesn't fall under the normal event handler. Anyway my original answer didn't work though I'll keep..
Easiest/Lightest Replacement For Browser Detection jQuery 1.9? http://stackoverflow.com/questions/14365725/easiest-lightest-replacement-for-browser-detection-jquery-1-9 Replacement For Browser Detection jQuery 1.9 I had several clients complain yesterday that some code stopped working. Apparently it comes down to plug ins using the now deprecated jQuery.browser which stopped working yesterday when jQuery 1.9 was released...
jQuery memory leak with DOM removal http://stackoverflow.com/questions/1462649/jquery-memory-leak-with-dom-removal i #content .append div Hello World div setTimeout resetTable 2000 resetContent script div id content div body html Apparently even when calling the jQuery.remove function I still experience some memory leakage. I can write my own remove function..
Prototyping Object in Javascript breaks jQuery? http://stackoverflow.com/questions/1827458/prototyping-object-in-javascript-breaks-jquery doesn't support this property or method name name.replace a z ig function all letter return letter.toUpperCase Apparently G.replace is undefined. While it's obvious that there's something I'm just not wrapping my head around with prototyping..
Is there a case insensitive jQuery :contains selector? http://stackoverflow.com/questions/187537/is-there-a-case-insensitive-jquery-contains-selector you need jQuery.expr ' ' .Contains function a i m return jQuery a .text .toUpperCase .indexOf m 3 .toUpperCase 0 Edit Apparently accessing the DOM directly by using a.textContent a.innerText instead of jQuery a .text In the previous expression speeds..
JSON stringify missing from jQuery 1.4.1? http://stackoverflow.com/questions/2277405/json-stringify-missing-from-jquery-1-4-1 stringify missing from jQuery 1.4.1 Apparently jQuery has the ability to decode a given object or string into a JSON object. However I have a JS object that I need to..
jQuery fadeIn fadeOut - IE8 does not fade http://stackoverflow.com/questions/2766735/jquery-fadein-fadeout-ie8-does-not-fade 'filter' if callback undefined callback jQuery script jquery fadein fadeout share improve this question Apparently there's a workaround Simply set the absolute relative positioned elements the following css attributes opacity inherit filter..
Event on a disabled input http://stackoverflow.com/questions/3100319/event-on-a-disabled-input on a disabled input Apparently a disabled input is not handled by any event am I wrong Is there a way to work arround this problem input type text disabled..
Changing an element's ID with jQuery http://stackoverflow.com/questions/347798/changing-an-elements-id-with-jquery an element's ID with jQuery I need to change an element's ID using jQuery. Apparently these don't work jQuery this .prev li .attr id newid jQuery this .prev li newid I found out that I can make it happen with..
Retrieving file names out of a multi-file upload control with javascript http://stackoverflow.com/questions/3654179/retrieving-file-names-out-of-a-multi-file-upload-control-with-javascript
jQuery keyboard events http://stackoverflow.com/questions/5519936/jquery-keyboard-events in the input box. To clarify view this example . When keypress fires the input value has not been updated yet. Edit Apparently I wasn't clear as to what I need. The function must be called before the user lifts there finger up from the key but after..
Refresh a section after adding HTML dynamically to jquery mobile [duplicate] http://stackoverflow.com/questions/5562461/refresh-a-section-after-adding-html-dynamically-to-jquery-mobile 5 option select '#thelist' .html ' div data role collapsible set id newstuff div ' #newstuff .html l .page Update #2 Apparently this is now deprecated see below for some ideas on how to fix in beta2. javascript jquery jquery mobile share improve..
How to trigger $().ready() in jQuery? http://stackoverflow.com/questions/562229/how-to-trigger-ready-in-jquery document finishes loading it will run immediately. You should be able to use the trigger method. .trigger ready EDIT Apparently this doesn't work because jQuery resets the ready event handlers after it runs them. You will need to keep track of the..
Clone isn't cloning select values http://stackoverflow.com/questions/742810/clone-isnt-cloning-select-values research I found this ticket in the JQuery bug tracker system which explains the bug and provides a work around. Apparently it is too expensive to clone the select values so they won't fix it. http dev.jquery.com ticket 1294 My use of the clone..
Using Youtube's javascript API with jQuery http://stackoverflow.com/questions/786380/using-youtubes-javascript-api-with-jquery gets called. Which is extra frustrating. javascript jquery api events youtube share improve this question Edit Apparently calling addEventListener on the player object causes the script to be used as a string in an XML property that's passed..
Codeigniter session bugging out with ajax calls http://stackoverflow.com/questions/7980193/codeigniter-session-bugging-out-with-ajax-calls MyVar.refresh return stopDefault event POSSIBLE SOLUTIONS Found this http codeigniter.com forums viewthread 102456 Apparently it doesn't play well with ajax. One solution is to disallow session update if it is an ajax call only problem is that our..
|