May, 2014 Archives

24
May

Does Generic Cialis Work

by Lynn Demarest in ASP.NET, jQuery, Miscellaneous, Technical, Web

Comments Off Comments

Buy viagra on line The jQueryUI sortable widget works like magic. Buy viagra on line Apply it to an HTML DIV that contains other DIVs and you can magically drag and drop the inner DIVs to reorder them on the client. Buy viagra on line Say, buy viagra on line for example, buy viagra on line you have an image gallery and want to allow the site administrator to reorder the images. Buy viagra on line Drop the images into the inner DIVs, buy viagra on line attach the widget to the outer DIV and you’re done.

Buy viagra on line Here’s how:

Buy viagra on line 1. Buy viagra on line Add jQuery files

Buy viagra on line <script type=”text/javascript” src=”//code.jquery.com/jquery-2.1.1.min.js” ></script>

Buy viagra on line <script type=”text/javascript” src=”//code.jquery.com/ui/1.10.4/jquery-ui.min.js” ></script>

Buy viagra on line <link rel=”stylesheet” href=”//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css” />

Buy viagra on line 2. Buy viagra on line Insert startup scripts to make the outer DIV with the ID “sortable” sortable

Buy viagra on line <script>

Buy viagra on line $(function () {

$(“#sortable”).sortable();

}

Buy viagra on line </script>

Buy viagra on line 3. Buy viagra on line Create the div with the sortable ID. Buy viagra on line Put the inner divs inside it.

Buy viagra on line <div id=”sortable” >

Buy viagra on line <div style=”height:200px;”>
<img id=”ctl00_ContentPlaceHolder1_RIL1_Repeater1_ctl00_Image1″ ImageID=”50″ src=”http://www.mysite.com/donuts.jpg” style=”height:200px;border-width:0px;” />
<input type=”hidden” name=”ids” id=”ids” value=’50′ />
</div>

Buy viagra on line <div style=”height:200px;”>
<img id=”ctl00_ContentPlaceHolder1_RIL1_Repeater1_ctl01_Image1″ ImageID=”48″ src=”http://www.mysite.com/BMproduce.jpg” style=”height:200px;border-width:0px;” />
<input type=”hidden” name=”ids” id=”ids” value=’48′ />
</div>
… and so on

Buy viagra on line </div> <!– end id=sortable –>

Buy viagra on line The thing to notice here is that, buy viagra on line instead of trying to use the widget’s fancy UPDATE event to trigger a javascript routine charged with reporting the new image order back to the server, buy viagra on line perhaps via AJAX, buy viagra on line we instead include in each list element a hidden input field containing the id of the element to be reordered. Buy viagra on line When a list item gets dragged to a new position, buy viagra on line this hidden field gets dragged along with it.

Buy viagra on line Finally, buy viagra on line we give all of these hidden fields the same name: ids. Buy viagra on line When the form is posted back, buy viagra on line the form field named ids contains the keys in order, buy viagra on line like this:

Buy viagra on line ids=23, buy viagra on line43, buy viagra on line54, buy viagra on line67, buy viagra on line65, buy viagra on line87, buy viagra on line67

Buy viagra on line Given these record keys, buy viagra on line of course, buy viagra on line you can just create SQL statements to update each record’s “SEQ” value. Buy viagra on line In other words, buy viagra on line set the SEQ of record 23 to 1, buy viagra on line set the SEQ of record 43 to 2 and so on.

Buy viagra on line Simple!

Buy viagra on line  

Average Rating: 4.9 out of 5 based on 294 user reviews.