¡@

Home 

2014/10/16 ¤W¤È 12:05:47

jquery Programming Glossary: node.attr

Modifying document.location.hash without page scrolling

http://stackoverflow.com/questions/1489624/modifying-document-location-hash-without-page-scrolling

node while the hash is being set and then adding it back on. hash hash.replace ^# '' var node '#' hash if node.length node.attr 'id' '' document.location.hash hash if node.length node.attr 'id' hash Step 2 Some browsers will trigger the scroll based.. hash hash.replace ^# '' var node '#' hash if node.length node.attr 'id' '' document.location.hash hash if node.length node.attr 'id' hash Step 2 Some browsers will trigger the scroll based on where the ID'd node was last seen so you need to help them.. set its ID to the hash and then roll everything back hash hash.replace ^# '' var fx node '#' hash if node.length node.attr 'id' '' fx ' div div ' .css position 'absolute' visibility 'hidden' top document .scrollTop 'px' .attr 'id' hash .appendTo..

how to append json variable as child nodes using “jstree” jquery plugin - no ajax

http://stackoverflow.com/questions/7914365/how-to-append-json-variable-as-child-nodes-using-jstree-jquery-plugin-no-aja

data 'A node' state 'closed' attr id 'A' ajax type 'POST' data action 'getChildren' url function node var nodeId node.attr 'id' id A return 'yuorPathTo GetChildrenScript ' nodeId success function new_data where new_data node children e.g... node' state 'closed' attr id 'group_A' ajax type 'POST' data action act.GET_GROUPREPORTS url function node var nid node.attr 'id' id group_A nid nid.substr nid.lastIndexOf '_' 1 return module.getDBdata_path nid success function data var rid..