¡@

Home 

2014/10/16 ¤W¤È 12:08:12

jquery Programming Glossary: set

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

copy is blocked apparently in Iran for instance . Would I set up a timer and check for the jQuery object What would be the..

HTML-encoding in JavaScript/jQuery

http://stackoverflow.com/questions/1219860/html-encoding-in-javascript-jquery

functions function htmlEncode value create a in memory div set it's inner text which jQuery automatically encodes then grab.. appended to the document. On the htmlEncode function I set the innerText of the element and retrieve the encoded innerHTML.. the encoded innerHTML on the htmlDecode function I set the innerHTML value of the element and the innerText is retrieved...

How can I get jQuery to perform a synchronous, rather than asynchronous, AJAX request?

http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a-synchronous-rather-than-asynchronous-ajax-re

to get a synchronous Ajax request. Then your callback can set some data before your mother function proceeds. Here's what..

jQuery Mobile: Markup Enhancement of dynamically added content

http://stackoverflow.com/questions/14550396/jquery-mobile-markup-enhancement-of-dynamically-added-content

and footer has a constant height content div can be easily set to cover full available space with a little css trick #content.. added Panels and contents 21.05.2013 Added another way of setting full content height 20.06.2013 Added new chapter Markup..

How to set/unset cookie with jQuery?

http://stackoverflow.com/questions/1458724/how-to-set-unset-cookie-with-jquery

to set unset cookie with jQuery How to set a cookie named ' test '.. to set unset cookie with jQuery How to set a cookie named ' test ' and value.. to set unset cookie with jQuery How to set a cookie named ' test ' and value ' 1 ' And especially how to..

How do I “think in AngularJS” if I have a jQuery background?

http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background

and controller functions. AngularJS comes with an entire set of tools to make this very easy with ngClass we can dynamically..

Is there a jQuery DOM change listener?

http://stackoverflow.com/questions/2844565/is-there-a-jquery-dom-change-listener

I need a way simply observe changes in DOM state. I could set up polling but that seems sloppy. javascript jquery google..

Get real image width and height with JavaScript in Safari/Chrome?

http://stackoverflow.com/questions/318630/get-real-image-width-and-height-with-javascript-in-safari-chrome

pic img need to remove these in of case img element has set width and height pic.removeAttr width pic.removeAttr height.. webkit share improve this question Webkit browsers set the height and width property after the image is loaded. Instead..

XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

http://stackoverflow.com/questions/3595515/xmlhttprequest-error-origin-null-is-not-allowed-by-access-control-allow-origin

wapi data get_photos v 1 key dummykey tag test offset 0 length 20 callback processImages minx 30 miny 0 maxx 0 maxy.. wapi data get_photos v 1 key dummykey tag test offset 0 length 20 callback processImages minx 30 miny 0 maxx 0 maxy.. wapi data get_photos v 1 key dummykey tag test offset 0 length 20 minx 30 miny 0 maxx 0 maxy 150 callback ' .get url..

jQuery callback on image load (even when the image is cached)

http://stackoverflow.com/questions/3877027/jquery-callback-on-image-load-even-when-the-image-is-cached

share improve this question If the src is already set then the event is firing in the cache cased before you get the..

How do I check a checkbox with jQuery?

http://stackoverflow.com/questions/426258/how-do-i-check-a-checkbox-with-jquery

.checked true or .myCheckBox .selected true I wish to set the value. Is such a thing built into jQuery javascript jquery.. so you need to use .attr . To check the checkbox by setting the value of the checked attribute do '.myCheckbox' .attr..

jQuery Set Cursor Position in Text Area

http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area

Set Cursor Position in Text Area How do you set the cursor position in a text field using jQuery I've got a.. I want the users cursor to be positioned at a certain offset when they focus on the field. The code should look kind of like.. look kind of like this '#input' .focus function this .setCursorPosition 4 What would the implementation of that setCursorPosition..

How do I check if the mouse is over an element in jQuery?

http://stackoverflow.com/questions/1273566/how-do-i-check-if-the-mouse-is-over-an-element-in-jquery

100 jquery mouseover share improve this question Set a timeout on the mouseout to fadeout and store the return value..

jQuery Validate - require at least one field in a group to be filled

http://stackoverflow.com/questions/1300994/jquery-validate-require-at-least-one-field-in-a-group-to-be-filled

Each field is kept if it has a value return this .val Set to true if there are enough else to false .length numberRequired..

How to disable/enable an input with jQuery?

http://stackoverflow.com/questions/1414365/how-to-disable-enable-an-input-with-jquery

The .prop function doesn't exist but .attr does similar Set the disabled attribute. input .attr 'disabled' 'disabled' To..

jQuery loading images with complete callback

http://stackoverflow.com/questions/2392410/jquery-loading-images-with-complete-callback

function #myImage .hide Hide it .one 'load' function Set something to run when it finishes loading this .fadeIn Fade.. this .fadeIn Fade it in when loaded .attr 'src' newImage Set the source so it begins fetching .each function Cache fix for..

How can I determine if an image has loaded, using Javascript/jQuery?

http://stackoverflow.com/questions/263359/how-can-i-determine-if-an-image-has-loaded-using-javascript-jquery

true function Hides scrollbars so we can resize properly. Set with JS instead of CSS so that page doesn't break with JS disabled...

apply !important CSS style using jQuery

http://stackoverflow.com/questions/2655925/apply-important-css-style-using-jquery

CSSStyleDeclaration var style this.get 0 .style Getter Setter if typeof styleName 'undefined' if typeof value 'undefined'.. typeof styleName 'undefined' if typeof value 'undefined' Set style property var priority typeof priority 'undefined' priority..

Get Cursor Position within a Text Input field

http://stackoverflow.com/questions/2897155/get-cursor-position-within-a-text-input-field

var iCaretPos 0 IE Support if document.selection Set focus on the element oField.focus To get cursor position get..

JQuery datepicker- 2 inputs/textboxes and restricting range

http://stackoverflow.com/questions/330737/jquery-datepicker-2-inputs-textboxes-and-restricting-range

function customRange input var min new Date 2008 11 1 1 Set this to your absolute minimum date dateMin min dateMax null.. absolute minimum date dateMin min dateMax null dayRange 6 Set this to the range of days you want to restrict to if input.id.. if dateMin min dateMin min else dateMax new Date Set this to your absolute maximum date else if input.id txtEndDate..

resize font to fit in a div (on one line)

http://stackoverflow.com/questions/3401136/resize-font-to-fit-in-a-div-on-one-line

the number of iterations considerably by doing this Set a starting font size. get test DIV's width. calculate width..

How to programmatically disable page scrolling with jQuery

http://stackoverflow.com/questions/3656592/how-to-programmatically-disable-page-scrolling-with-jquery

would like to disable scrolling of the body My idea is to Set body overflow hidden Capture the current scrollTop scrollLeft.. current scroll position don't forget horizontal axis . Set overflow to hidden probably want to retain previous overflow..

Set value of textarea in jQuery

http://stackoverflow.com/questions/415602/set-value-of-textarea-in-jquery

value of textarea in jQuery I am attempting to set a value..

Unexpected token ILLEGAL in webkit

http://stackoverflow.com/questions/4404526/unexpected-token-illegal-in-webkit

500 Slide transition speed pauseTime 3000 startSlide 0 Set starting Slide 0 index directionNav true Next Prev directionNavHide..

jQuery Set Cursor Position in Text Area

http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area

Set Cursor Position in Text Area How do you set the cursor position..

Browser Memory Usage Comparison: inline onClick vs. using JQuery .bind()

http://stackoverflow.com/questions/5303471/browser-memory-usage-comparison-inline-onclick-vs-using-jquery-bind

type has its own class name using the custom formatter . Set the icon's data to its parameters in the afterInsertRow JQGrid..

how to bind fancybox to dynamic added element?

http://stackoverflow.com/questions/9081571/how-to-bind-fancybox-to-dynamic-added-element

is 1 Upgrade to jQuery v1.7.x if you haven't yet 2 Set your script using jQuery API on the focusin event. To make it..

How to select empty inputs (value=“”) using jQuery

http://stackoverflow.com/questions/10651349/how-to-select-empty-inputs-value-using-jquery

input.required .val .addClass error But that seems to SET the value rather than checking it. Any ideas javascript jquery..

jQuery ajax seems to alter SVG data sent to coldfusion server

http://stackoverflow.com/questions/13216397/jquery-ajax-seems-to-alter-svg-data-sent-to-coldfusion-server

the data into a table. CFQUERY NAME postSVG UPDATE myTable SET svg '#form.myInfo#' WHERE ID 1 CFQUERY SVG2PNG.cfm When I attempt..

jQuery Mobile: Sending data from one page to the another

http://stackoverflow.com/questions/14776387/jquery-mobile-sending-data-from-one-page-to-the-another

2013 at 11 58 AM Server version 5.5.20 PHP Version 5.3.10 SET SQL_MODE NO_AUTO_VALUE_ON_ZERO SET time_zone 00 00 40101 SET.. PHP Version 5.3.10 SET SQL_MODE NO_AUTO_VALUE_ON_ZERO SET time_zone 00 00 40101 SET @OLD_CHARACTER_SET_CLIENT @@CHARACTER_SET_CLIENT.. SQL_MODE NO_AUTO_VALUE_ON_ZERO SET time_zone 00 00 40101 SET @OLD_CHARACTER_SET_CLIENT @@CHARACTER_SET_CLIENT 40101 SET @OLD_CHARACTER_SET_RESULTS..

jQuery UI Sortable, then write order into a database

http://stackoverflow.com/questions/15633341/jquery-ui-sortable-then-write-order-into-a-database

_POST 'item' as value Execute statement UPDATE Table SET Position i WHERE EntityId value i Example on jsFiddle. share..

dynamic drop down box?

http://stackoverflow.com/questions/16924082/dynamic-drop-down-box

'mysql host localhost dbname test' 'root' '' objDb exec 'SET CHARACTER SET utf8' sql SELECT FROM `category` WHERE `master`.. localhost dbname test' 'root' '' objDb exec 'SET CHARACTER SET utf8' sql SELECT FROM `category` WHERE `master` 0 statement.. 'mysql host localhost dbname test' 'root' '' objDb exec 'SET CHARACTER SET utf8' sql SELECT FROM `category` WHERE `master`..

jQuery voting system

http://stackoverflow.com/questions/3722874/jquery-voting-system

if this .hasClass up Do backend query and checking here SET error alert Voted Up else if this .hasClass down Do backend.. if this .hasClass down Do backend query and checking here SET error alert Voted Down removes all the votes this .parent..

JQuery UI Saving Sortable List

http://stackoverflow.com/questions/7342727/jquery-ui-saving-sortable-list

be updated. i 0 while i count query UPDATE _POST 'order' SET order neworder item i WHERE id batchid i i I'm not sure why.. mysql_select_db my_db con mysql_query UPDATE table SET order order WHERE id id mysql_close con that should do it i..

JSON.parse: unexpected character

http://stackoverflow.com/questions/9688870/json-parse-unexpected-character

selectassocSql sql i 0 resSelect array mysql_query SET NAMES 'utf8' result mysql_query sql while row mysql_fetch_assoc..

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

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 through Not really looking for..

HTML-encoding in JavaScript/jQuery

http://stackoverflow.com/questions/1219860/html-encoding-in-javascript-jquery

html encode share improve this question I use these functions function htmlEncode value create a in memory div set it's inner text which jQuery automatically encodes then grab the encoded contents back out. The div never exists on the.. Basically a div element is created in memory but it is never appended to the document. On the htmlEncode function I set the innerText of the element and retrieve the encoded innerHTML on the htmlDecode function I set the innerHTML value of.. htmlEncode function I set the innerText of the element and retrieve the encoded innerHTML on the htmlDecode function I set the innerHTML value of the element and the innerText is retrieved. Check a running example here . share improve this answer..

How can I get jQuery to perform a synchronous, rather than asynchronous, AJAX request?

http://stackoverflow.com/questions/133310/how-can-i-get-jquery-to-perform-a-synchronous-rather-than-asynchronous-ajax-re

the Jquery docs you specify the async option to be false to get a synchronous Ajax request. Then your callback can set some data before your mother function proceeds. Here's what your code would look like if changed as suggested beforecreate..

jQuery Mobile: Markup Enhancement of dynamically added content

http://stackoverflow.com/questions/14550396/jquery-mobile-markup-enhancement-of-dynamically-added-content

Get correct maximum content height In case page header and footer has a constant height content div can be easily set to cover full available space with a little css trick #content padding 0 position absolute important top 40px important.. Added 3rd party plugins chapter 20.05.2013 Added Dynamically added Panels and contents 21.05.2013 Added another way of setting full content height 20.06.2013 Added new chapter Markup overrding problems 29.06.2013 Added an important note of WHEN..

How to set/unset cookie with jQuery?

http://stackoverflow.com/questions/1458724/how-to-set-unset-cookie-with-jquery

to set unset cookie with jQuery How to set a cookie named ' test ' and value ' 1 ' And especially how to unset jquery cookies.. to set unset cookie with jQuery How to set a cookie named ' test ' and value ' 1 ' And especially how to unset jquery cookies share.. to set unset cookie with jQuery How to set a cookie named ' test ' and value ' 1 ' And especially how to unset jquery cookies share improve this question See..

How do I “think in AngularJS” if I have a jQuery background?

http://stackoverflow.com/questions/14994391/how-do-i-think-in-angularjs-if-i-have-a-jquery-background

largely independent from its implementation in the link and controller functions. AngularJS comes with an entire set of tools to make this very easy with ngClass we can dynamically update the class ngBind allows two way data binding ngShow..

Is there a jQuery DOM change listener?

http://stackoverflow.com/questions/2844565/is-there-a-jquery-dom-change-listener

separate content script in chrome extension webpage script I need a way simply observe changes in DOM state. I could set up polling but that seems sloppy. javascript jquery google chrome extension share improve this question Edit This answer..

Get real image width and height with JavaScript in Safari/Chrome?

http://stackoverflow.com/questions/318630/get-real-image-width-and-height-with-javascript-in-safari-chrome

in Safari Following works with Firefox 3 IE7 and Opera 9 var pic img need to remove these in of case img element has set width and height pic.removeAttr width pic.removeAttr height var pic_real_width pic.width var pic_real_height pic.height.. side is not an option. javascript jquery safari google chrome webkit share improve this question Webkit browsers set the height and width property after the image is loaded. Instead of using timeouts I'd recommend using an image's onload..

XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

http://stackoverflow.com/questions/3595515/xmlhttprequest-error-origin-null-is-not-allowed-by-access-control-allow-origin

Chrome's console XMLHttpRequest cannot load http www.panoramio.com wapi data get_photos v 1 key dummykey tag test offset 0 length 20 callback processImages minx 30 miny 0 maxx 0 maxy 150 . Origin null is not allowed by Access Control Allow Origin... shows the problem .ready function var url 'http www.panoramio.com wapi data get_photos v 1 key dummykey tag test offset 0 length 20 callback processImages minx 30 miny 0 maxx 0 maxy 150' .get url function jsonp var processImages function data.. Use this instead .ready function var url 'http www.panoramio.com wapi data get_photos v 1 key dummykey tag test offset 0 length 20 minx 30 miny 0 maxx 0 maxy 150 callback ' .get url function data can use 'data' in here... javascript jquery..

jQuery callback on image load (even when the image is cached)

http://stackoverflow.com/questions/3877027/jquery-callback-on-image-load-even-when-the-image-is-cached

this but it doesn't work jquery image events load jquery events share improve this question If the src is already set then the event is firing in the cache cased before you get the event handler bound. To fix this you can loop through checking..

How do I check a checkbox with jQuery?

http://stackoverflow.com/questions/426258/how-do-i-check-a-checkbox-with-jquery

with jQuery I want to do something like this .myCheckBox .checked true or .myCheckBox .selected true I wish to set the value. Is such a thing built into jQuery javascript jquery checkbox share improve this question It certainly is.. false jQuery 1.5 and below The .prop function is not available so you need to use .attr . To check the checkbox by setting the value of the checked attribute do '.myCheckbox' .attr 'checked' 'checked' and for un checking by removing the attribute..

jQuery Set Cursor Position in Text Area

http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area

Set Cursor Position in Text Area How do you set the cursor position in a text field using jQuery I've got a text field with content and I want the users cursor to be positioned.. field using jQuery I've got a text field with content and I want the users cursor to be positioned at a certain offset when they focus on the field. The code should look kind of like this '#input' .focus function this .setCursorPosition 4.. a certain offset when they focus on the field. The code should look kind of like this '#input' .focus function this .setCursorPosition 4 What would the implementation of that setCursorPosition function look like If you had a text field with..

How do I check if the mouse is over an element in jQuery?

http://stackoverflow.com/questions/1273566/how-do-i-check-if-the-mouse-is-over-an-element-in-jquery

hideTip oi setTimeout function if IsMouseOver oi oi .fadeOut 100 jquery mouseover share improve this question Set a timeout on the mouseout to fadeout and store the return value to data in the object. Then onmouseover cancel the timeout..

jQuery Validate - require at least one field in a group to be filled

http://stackoverflow.com/questions/1300994/jquery-validate-require-at-least-one-field-in-a-group-to-be-filled

form var validOrNot selector element.form .filter function Each field is kept if it has a value return this .val Set to true if there are enough else to false .length numberRequired The elegent part this element needs to check the others..

How to disable/enable an input with jQuery?

http://stackoverflow.com/questions/1414365/how-to-disable-enable-an-input-with-jquery

true input .prop 'disabled' false jQuery 1.5 and below The .prop function doesn't exist but .attr does similar Set the disabled attribute. input .attr 'disabled' 'disabled' To enable again input .removeAttr 'disabled' In any version of..

jQuery loading images with complete callback

http://stackoverflow.com/questions/2392410/jquery-loading-images-with-complete-callback

function var newImage images 002.jpg Image name a.tnClick .click function #myImage .hide Hide it .one 'load' function Set something to run when it finishes loading this .fadeIn Fade it in when loaded .attr 'src' newImage Set the source so it.. function Set something to run when it finishes loading this .fadeIn Fade it in when loaded .attr 'src' newImage Set the source so it begins fetching .each function Cache fix for browsers that don't trigger .load if this.complete this .trigger..

How can I determine if an image has loaded, using Javascript/jQuery?

http://stackoverflow.com/questions/263359/how-can-i-determine-if-an-image-has-loaded-using-javascript-jquery

var isPhotoLoaded false function photoLoaded isPhotoLoaded true function Hides scrollbars so we can resize properly. Set with JS instead of CSS so that page doesn't break with JS disabled. body .css overflow hidden var REAL_WIDTH 1 var REAL_HEIGHT..

apply !important CSS style using jQuery

http://stackoverflow.com/questions/2655925/apply-important-css-style-using-jquery

0 Ensure we have a DOM node if typeof node 'undefined' return CSSStyleDeclaration var style this.get 0 .style Getter Setter if typeof styleName 'undefined' if typeof value 'undefined' Set style property var priority typeof priority 'undefined'.. var style this.get 0 .style Getter Setter if typeof styleName 'undefined' if typeof value 'undefined' Set style property var priority typeof priority 'undefined' priority '' style.setProperty styleName value priority else Get..

Get Cursor Position within a Text Input field

http://stackoverflow.com/questions/2897155/get-cursor-position-within-a-text-input-field

0 oField.value.length. function doGetCaretPosition oField Initialize var iCaretPos 0 IE Support if document.selection Set focus on the element oField.focus To get cursor position get empty selection range var oSel document.selection.createRange..

JQuery datepicker- 2 inputs/textboxes and restricting range

http://stackoverflow.com/questions/330737/jquery-datepicker-2-inputs-textboxes-and-restricting-range

customRange dateFormat dd M yy firstDay 1 changeFirstDay false function customRange input var min new Date 2008 11 1 1 Set this to your absolute minimum date dateMin min dateMax null dayRange 6 Set this to the range of days you want to restrict.. input var min new Date 2008 11 1 1 Set this to your absolute minimum date dateMin min dateMax null dayRange 6 Set this to the range of days you want to restrict to if input.id txtStartDate if #txtEndDate .datepicker getDate null dateMax.. .datepicker getDate dateMin.setDate dateMin.getDate dayRange if dateMin min dateMin min else dateMax new Date Set this to your absolute maximum date else if input.id txtEndDate dateMax new Date Set this to your absolute maximum date..

resize font to fit in a div (on one line)

http://stackoverflow.com/questions/3401136/resize-font-to-fit-in-a-div-on-one-line

loop optimization You could optimize your while loop to decrease the number of iterations considerably by doing this Set a starting font size. get test DIV's width. calculate width factor between orig_div and test_div. adjust font size by this..

How to programmatically disable page scrolling with jQuery

http://stackoverflow.com/questions/3656592/how-to-programmatically-disable-page-scrolling-with-jquery

disable page scrolling with jQuery Using jQuery I would like to disable scrolling of the body My idea is to Set body overflow hidden Capture the current scrollTop scrollLeft Bind to the body scroll event set scrollTop scrollLeft to.. way I've found to do this is similar to what you described Grab current scroll position don't forget horizontal axis . Set overflow to hidden probably want to retain previous overflow value . Scroll document to stored scroll position with scrollTo..

Set value of textarea in jQuery

http://stackoverflow.com/questions/415602/set-value-of-textarea-in-jquery

value of textarea in jQuery I am attempting to set a value in a textarea field using jquery with the following code textarea#ExampleMessage..

Unexpected token ILLEGAL in webkit

http://stackoverflow.com/questions/4404526/unexpected-token-illegal-in-webkit

Specify sets like 'fold fade sliceDown' slices 15 animSpeed 500 Slide transition speed pauseTime 3000 startSlide 0 Set starting Slide 0 index directionNav true Next Prev directionNavHide true Only show on hover controlNav false 1 2 3... keyboardNav..

jQuery Set Cursor Position in Text Area

http://stackoverflow.com/questions/499126/jquery-set-cursor-position-in-text-area

Set Cursor Position in Text Area How do you set the cursor position in a text field using jQuery I've got a text field with..

Browser Memory Usage Comparison: inline onClick vs. using JQuery .bind()

http://stackoverflow.com/questions/5303471/browser-memory-usage-comparison-inline-onclick-vs-using-jquery-bind

answers thank you so much Build the icon image each icon type has its own class name using the custom formatter . Set the icon's data to its parameters in the afterInsertRow JQGrid event. Apply the delegate handler to buttons of specific..

how to bind fancybox to dynamic added element?

http://stackoverflow.com/questions/9081571/how-to-bind-fancybox-to-dynamic-added-element

easiest way to bind fancybox v1.3.x to dynamically added elements is 1 Upgrade to jQuery v1.7.x if you haven't yet 2 Set your script using jQuery API on the focusin event. To make it work you need to find the parent element of your elements..

How to select empty inputs (value=“”) using jQuery

http://stackoverflow.com/questions/10651349/how-to-select-empty-inputs-value-using-jquery

event using jQuery So far I have tried jQuery #sender_container input.required .val .addClass error But that seems to SET the value rather than checking it. Any ideas javascript jquery jquery selectors share improve this question jQuery..

jQuery ajax seems to alter SVG data sent to coldfusion server

http://stackoverflow.com/questions/13216397/jquery-ajax-seems-to-alter-svg-data-sent-to-coldfusion-server

POST data myInfo lclSVG On the myAction.cfm page I update the data into a table. CFQUERY NAME postSVG UPDATE myTable SET svg '#form.myInfo#' WHERE ID 1 CFQUERY SVG2PNG.cfm When I attempt to query and use the svg data I get an error Invalid byte..

jQuery Mobile: Sending data from one page to the another

http://stackoverflow.com/questions/14776387/jquery-mobile-sending-data-from-one-page-to-the-another

www.phpmyadmin.net Host localhost Generation Time Feb 02 2013 at 11 58 AM Server version 5.5.20 PHP Version 5.3.10 SET SQL_MODE NO_AUTO_VALUE_ON_ZERO SET time_zone 00 00 40101 SET @OLD_CHARACTER_SET_CLIENT @@CHARACTER_SET_CLIENT 40101 SET.. Generation Time Feb 02 2013 at 11 58 AM Server version 5.5.20 PHP Version 5.3.10 SET SQL_MODE NO_AUTO_VALUE_ON_ZERO SET time_zone 00 00 40101 SET @OLD_CHARACTER_SET_CLIENT @@CHARACTER_SET_CLIENT 40101 SET @OLD_CHARACTER_SET_RESULTS @@CHARACTER_SET_RESULTS.. 2013 at 11 58 AM Server version 5.5.20 PHP Version 5.3.10 SET SQL_MODE NO_AUTO_VALUE_ON_ZERO SET time_zone 00 00 40101 SET @OLD_CHARACTER_SET_CLIENT @@CHARACTER_SET_CLIENT 40101 SET @OLD_CHARACTER_SET_RESULTS @@CHARACTER_SET_RESULTS 40101 SET..

jQuery UI Sortable, then write order into a database

http://stackoverflow.com/questions/15633341/jquery-ui-sortable-then-write-order-into-a-database

dynamic drop down box?

http://stackoverflow.com/questions/16924082/dynamic-drop-down-box

box and the index script is shown as php try objDb new PDO 'mysql host localhost dbname test' 'root' '' objDb exec 'SET CHARACTER SET utf8' sql SELECT FROM `category` WHERE `master` 0 statement objDb query sql list statement fetchAll PDO FETCH_ASSOC.. index script is shown as php try objDb new PDO 'mysql host localhost dbname test' 'root' '' objDb exec 'SET CHARACTER SET utf8' sql SELECT FROM `category` WHERE `master` 0 statement objDb query sql list statement fetchAll PDO FETCH_ASSOC catch.. 'value' id _GET 'id' value _GET 'value' try objDb new PDO 'mysql host localhost dbname test' 'root' '' objDb exec 'SET CHARACTER SET utf8' sql SELECT FROM `category` WHERE `master` statement objDb prepare sql statement execute array value..

jQuery voting system

http://stackoverflow.com/questions/3722874/jquery-voting-system

var parentId this .parent div .attr id var error false if this .hasClass up Do backend query and checking here SET error alert Voted Up else if this .hasClass down Do backend query and checking here SET error alert Voted Down removes.. query and checking here SET error alert Voted Up else if this .hasClass down Do backend query and checking here SET error alert Voted Down removes all the votes this .parent div .children .removeClass current if error this .addClass..

JQuery UI Saving Sortable List

http://stackoverflow.com/questions/7342727/jquery-ui-saving-sortable-list

use the count to create an incremental loop for each item to be updated. i 0 while i count query UPDATE _POST 'order' SET order neworder item i WHERE id batchid i i I'm not sure why the order I get for each item will not change. Any Ideas.. username password if con die 'Could not connect ' . mysql_error mysql_select_db my_db con mysql_query UPDATE table SET order order WHERE id id mysql_close con that should do it i didn't test it as it is an example connection. the actual script..

JSON.parse: unexpected character

http://stackoverflow.com/questions/9688870/json-parse-unexpected-character

character The function to return result of sql public function selectassocSql sql i 0 resSelect array mysql_query SET NAMES 'utf8' result mysql_query sql while row mysql_fetch_assoc result resSelect i row i mysql_free_result result return..