jquery Programming Glossary: snip
Change fullcalendar event source after load http://stackoverflow.com/questions/10940182/change-fullcalendar-event-source-after-load color 'blue' textColor 'white' className 'loads' snip '#fullcalendar' .fullCalendar header left 'title' center 'agendaDay..
browser.msie error after update to jQuery 1.9.1 http://stackoverflow.com/questions/14892095/browser-msie-error-after-update-to-jquery-1-9-1 error after update to jQuery 1.9.1 I use the following snip of a script if .browser.msie .browser.version 9 extra Math.floor..
jQueryMobile uncaught exception when REMOVING checkboxradio http://stackoverflow.com/questions/17003064/jquerymobile-uncaught-exception-when-removing-checkboxradio i followed the demo found here Ugly Mongrel Here's a snip of my JS function var pbNum ' input checked checked id component..
Require.js bug random Failed to load resource http://stackoverflow.com/questions/17026036/require-js-bug-random-failed-to-load-resource single page apps of course. All in one file require.config snip require 'mymodule' function mymodule do stuff 2 Use an inline..
CKEditor instance in a jQuery dialog http://stackoverflow.com/questions/2539855/ckeditor-instance-in-a-jquery-dialog jquery.js script Javascript '#ad_content' .ckeditor snip '#ad_div' .dialog modal true resizable false draggable false..
How Can I Render a Partial View via AJAX? http://stackoverflow.com/questions/3992789/how-can-i-render-a-partial-view-via-ajax side event is called passing through the JSON object .. snip heaps of jQuery select function event ui ui is a JSON object..
How can I make my jquery draggable / droppable code faster? http://stackoverflow.com/questions/552951/how-can-i-make-my-jquery-draggable-droppable-code-faster this .css 'background color' null drop function event ui snip removed code here to save space. script The HTML table is.. div class draggable_div id 'div 0 1 14482' content div td snip all the other cells removed for brevity tr snip all the other.. div td snip all the other cells removed for brevity tr snip all the other rows removed for brevity table Note it doesn't..
Save data using AJAX and CakePHP http://stackoverflow.com/questions/6285006/save-data-using-ajax-and-cakephp If you want to render any view at all it's probably just a snip of markup for an ajax callback so you probably want to place..
Jquery can't get my head around this http://stackoverflow.com/questions/6495156/jquery-cant-get-my-head-around-this box this.updatePropertyMarkerBox function self BarsID ... snip ... Loop and add event handler for var i 0 i self.bars BarsIndex..
Autocomplete applying value not label to textbox http://stackoverflow.com/questions/7642855/autocomplete-applying-value-not-label-to-textbox user hovers over choices #customer search .autocomplete snip select function event ui event.preventDefault #customer search..
javascript/jquery countdown timer with JSfiddle example? http://stackoverflow.com/questions/8031680/javascript-jquery-countdown-timer-with-jsfiddle-example later to clearInterval var interval setInterval function snip 'span' .html minutes ' ' seconds if parseInt minutes 10 0 parseInt..
Change fullcalendar event source after load http://stackoverflow.com/questions/10940182/change-fullcalendar-event-source-after-load cache true error function alert 'something broke with loads...' color 'blue' textColor 'white' className 'loads' snip '#fullcalendar' .fullCalendar header left 'title' center 'agendaDay agendaWeek month' right 'today prev next' defaultView..
browser.msie error after update to jQuery 1.9.1 http://stackoverflow.com/questions/14892095/browser-msie-error-after-update-to-jquery-1-9-1 error after update to jQuery 1.9.1 I use the following snip of a script if .browser.msie .browser.version 9 extra Math.floor Math.random 3000 It works fine with jQuery 1.8.3 . Now..
jQueryMobile uncaught exception when REMOVING checkboxradio http://stackoverflow.com/questions/17003064/jquerymobile-uncaught-exception-when-removing-checkboxradio prior to initialization attempted to call method 'refresh' i followed the demo found here Ugly Mongrel Here's a snip of my JS function var pbNum ' input checked checked id component pbnum ' _val ' name component pbnum ' ' type checkbox value..
Require.js bug random Failed to load resource http://stackoverflow.com/questions/17026036/require-js-bug-random-failed-to-load-resource subsequent require's from your data main script Applies to single page apps of course. All in one file require.config snip require 'mymodule' function mymodule do stuff 2 Use an inline script right after the require.js script tag Instead of having..
CKEditor instance in a jQuery dialog http://stackoverflow.com/questions/2539855/ckeditor-instance-in-a-jquery-dialog script script type text javascript src includes ckeditor adapters jquery.js script Javascript '#ad_content' .ckeditor snip '#ad_div' .dialog modal true resizable false draggable false position 'center' 'center' width 600 height 500 hide 'slide'..
How Can I Render a Partial View via AJAX? http://stackoverflow.com/questions/3992789/how-can-i-render-a-partial-view-via-ajax one of the items that is shown in the autocomplete a client side event is called passing through the JSON object .. snip heaps of jQuery select function event ui ui is a JSON object ui.item.id ui.item.name Now my question is from this client..
How can I make my jquery draggable / droppable code faster? http://stackoverflow.com/questions/552951/how-can-i-make-my-jquery-draggable-droppable-code-faster .css 'background color' '#ccffcc' out function event ui this .css 'background color' null drop function event ui snip removed code here to save space. script The HTML table is like this as generated by PHP table id 'main_table' border.. 1962' content div td td class draggable_td id 'td 0 1 1962' div class draggable_div id 'div 0 1 14482' content div td snip all the other cells removed for brevity tr snip all the other rows removed for brevity table Note it doesn't seem to work.. 0 1 1962' div class draggable_div id 'div 0 1 14482' content div td snip all the other cells removed for brevity tr snip all the other rows removed for brevity table Note it doesn't seem to work at all in IE 7 so perhaps I'm just doing something..
Save data using AJAX and CakePHP http://stackoverflow.com/questions/6285006/save-data-using-ajax-and-cakephp want Cake's default view rendering behavior just a guess. If you want to render any view at all it's probably just a snip of markup for an ajax callback so you probably want to place it in an element rather than a full blown view function save_column_order..
Jquery can't get my head around this http://stackoverflow.com/questions/6495156/jquery-cant-get-my-head-around-this of alerting 1 2 or 3 it alerts 3 3 3. Updates bar preview box this.updatePropertyMarkerBox function self BarsID ... snip ... Loop and add event handler for var i 0 i self.bars BarsIndex .markers.length i Add click event #bmi self.containerId..
Autocomplete applying value not label to textbox http://stackoverflow.com/questions/7642855/autocomplete-applying-value-not-label-to-textbox to prevent ui.item.value from being placed in the input as the user hovers over choices #customer search .autocomplete snip select function event ui event.preventDefault #customer search .val ui.item.label #selected customer .val ui.item.label..
javascript/jquery countdown timer with JSfiddle example? http://stackoverflow.com/questions/8031680/javascript-jquery-countdown-timer-with-jsfiddle-example this question setInterval returns an identity you can use later to clearInterval var interval setInterval function snip 'span' .html minutes ' ' seconds if parseInt minutes 10 0 parseInt seconds 10 0 clearInterval interval 1000 And to avoid..
|