Thanks to all this thread can now be closed.  I am now reading and
writing cookies with the correct values.  I can post what I have done
if anyone one would like me to.

Fintch

On Sep 10, 9:17 am, Diodeus <[EMAIL PROTECTED]> wrote:
> onUpdate needs to be an anonymous function:
>
> Sortable.create('blocks', {dropOnEmpty: true, overlap:'horizontal',
> constraint:false, onUpdate:  function() {document.cookie=
> "BlockOrder="+Sortable.sequence('blocks')+myDate(365)+";
> path=/";} });
>
> On Sep 9, 4:26 pm, fintch2309 <[EMAIL PROTECTED]> wrote:
>
> > I am trying to set acookieduring the onUpdate and it is not
> > working.  Please see the code below and as always any help is
> > appreciated.
> > ...
> > ul id="blocks" class="block">
> >    <li id="block_1" style="background:none;padding:0;">{content
> > block='Recent Updates'}</li>
> >    <li id="block_2" style="background:none;padding:0;">{content
> > block='Search'}</li>
> >    <li id="block_3" style="background:none;padding:0;">{content
> > block='Calendar'}</li>
> >    <li id="block_4" style="background:none;padding:0;">{content
> > block='News'}</li>
> >    <li id="block_5" style="background:none;padding:0;">{content
> > block='Sales & Marketing'}</li>
> >    <li id="block_6" style="background:none;padding:0;">{content
> > block='After 5'}</li>
> >    <li id="block_7" style="background:none;padding:0;">{content
> > block='Productivity'}</li>
> >    <li id="block_8" style="background:none;padding:0;">{content
> > block='Business'}</li>
> > </ul>
>
> > <script type="text/javascript" language="javascript">
> > function myDate(days){
> >    var date = new Date();
> >    date.setTime(date.getTime()+(days*24*60*60*1000));
> >    var expires = "; expires="+date.toGMTString();
> >    return expires;}
>
> > Sortable.create('blocks', {dropOnEmpty: true, overlap:'horizontal',
> > constraint:false, onUpdate:  document.cookie=
> > "BlockOrder="+Sortable.sequence('blocks')+myDate(365)+"; path=/"; });
>
> > </script>
> > ...
> > Thanks again,
> > Fintch
>
> > On Aug 20, 9:50 am, Diodeus <[EMAIL PROTECTED]> wrote:
>
> > > new Draggable(thiselement,{endeffect:function(e){updatePos($(e).id)}})
>
> > > Then the updatePos function will then need to grab the position and
> > > save the value in acookie.
>
> > > On Aug 20, 10:21 am, fintch2309 <[EMAIL PROTECTED]> wrote:
>
> > > > Does anyone have an example of this?
> > > > Thanks,
> > > > Fintch
>
> > > > On Aug 19, 11:50 am, Diodeus <[EMAIL PROTECTED]> wrote:
>
> > > > > Yes, You have to fetch the positions, encode them into a string, build
> > > > > thecookie. On reload, decode thecookie, position the objects.
>
> > > > > On Aug 19, 11:44 am, fintch2309 <[EMAIL PROTECTED]> wrote:
>
> > > > > > Is there a way to go and save the positions of a draggable or a
> > > > > > sortable in acookieor a database so that the location of the items
> > > > > > is the same for when a user returns to the site.  I am trying to 
> > > > > > setup
> > > > > > a page like an igoogle page where those items stay in place time and
> > > > > > time again even after a user leaves the page and it is unique for 
> > > > > > each
> > > > > > user.
>
> > > > > > Thanks,
> > > > > > Fintch- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to