Quick Search


Tibetan singing bowl music,sound healing, remove negative energy.

528hz solfreggio music -  Attract Wealth and Abundance, Manifest Money and Increase Luck



 
Your forum announcement here!

  Free Advertising Forums | Free Advertising Board | Post Free Ads Forum | Free Advertising Forums Directory | Best Free Advertising Methods | Advertising Forums > Free Advertising Forums Directory > General Free Advertising Forums

General Free Advertising Forums This is a list of general free advertising forums. Also referred to as free classfied ad forums.

Reply
 
Thread Tools Search this Thread Display Modes
Old 05-17-2011, 04:18 PM   #1
huaiping0619
 
Posts: n/a
Default Tory Burch Boots 5hKpBill Krueger’s TechBlog Blo

Creating a sortable list using mootools is great fun and all, but what most people really need to do is save the state of that list once the sorting is complete. In the current revision of mootools,Tory Burch Boots, there is no serialize function that will output the order of the list as can be found in the Sortable class in Scriptaculous.
A couple of people have commented on my original Sortable List example expressing the need for this serialize function and Jessica from jesirose.com posted a function on her blog that accomplishes serialization for her specific needs.
I checked around on the mootools forums and didn’t see any posts on the topic, so I went ahead and wrote a serialize function that could be added to the Sortables class:
serialize: function(element, options){ var str = []; var key = encodeURIComponent(options.key || element.id); var elements = $A(element.getElements(options.tag || '')); elements.each(function(el, i) { str.push(key+'['+i+']='+el.id); }); return str.join('&');
}
This function takes in an element which is the parent element for all of the Sortable List items that you want serialized. You can also pass in two optional params in the options object:
key - the string to use as the key in the key/value pair
tag - the type of tag that should be serialized under the parent element
If you do not specify a key or a tag, the id of the passed-in element will be used as the key and all tags under the the parent element will be serialized, regardless of their type. For a quick example,That's A Fabulous Handbag Louis Vuitton Monogram Canvas Etoile Shopper, say you have a block of HTML like the following:
<div id="container"> <div id="listitem1">ListItem 1</div> <div id="listitem2">ListItem 2</div> <div id="listitem3">ListItem 3</div>
</div>
If you want to serialize that list in the onComplete function of your Sortables object, you can use the following code:
this.serialize($('container'),Tory Burch Flats, {key: 'exampleKey',Tory Burch On Sale, tag: 'div'});
This would generate a serialized output of the format:
exampleKey[0]=listitem1&exampleKey[1]=listitem2&exampleKey[2]=listitem3
The output above can be passed through an Ajax POST request and provide the necessary information needed on the backend to update a database storing the state of the list. I’ve posted the example on the mootools forums as well and I think it should be included in Sortables, but for now you’ll have to add this to your own implementation of the Sortables class to use the functionality.

This entry was posted on Thursday,Tory Burch Sales 3nLeTory Burch Horseshoe Hobo - P, November 9th,tory burch shoes sale sale are a sweater, 2006 at 9:22 pm and is filed under Mootools, JavaScript. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
  Reply With Quote

Sponsored Links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 10:47 AM.

 

Powered by vBulletin Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Free Advertising Forums | Free Advertising Message Boards | Post Free Ads Forum