On 12/28/05, Bruce McKenzie <[EMAIL PROTECTED]> wrote:
> Here's what I take to be the relevant bits in what I got from the
> scripts quoted at the bottom of the page:
>
...SNIP...
> <form>
> <input id="rm" name="rm" value="answer" type="hidden">
The Sortable object doesn't use the enclosing form to send the
request, so using a hidden field will not work (as you have found out)
> <script type="text/javascript">
> <!--
> Sortable.create( 'sortablelist_1', { containment:
> ["sortablelist_1","sortablelist_2"], onUpdate: function () { new
> Ajax.Request( '', { parameters:
> Sortable.serialize('sortablelist_1'),asynchronous: 1 } ) }, type: '' } )
The 'parameters' option above is what it used to generate the query
string of the request. What you need to do is add to it.
Ajax.Request( '', {
parameters: 'rm=answer&' + Sortable.serialize('sortablelist_1'),
asynchronous: 1
} ) }, type: '' } )
I haven't tested that, but have done similar things in the past.
> > I have found that in some instances it is easier to just learn the
> > prototype.js library and write the JavaScript directly, instead of
> > using the HTML::Prototype helper methods.
> >
>
> Well -- of course, that's just what I'm trying so hard to avoid :-)
> JavaScript is never easier for me. I suppose it would be if I studied
> the prototype lib though.
That is the problem with code wrappers. They make things simpler, but
are hardly ever as powerful as the original library :-)
> > Also, to make handling runmodes much much easier, I use
> > CGI::Application::Dispatch and embed the runmode in the PATH_INFO.
>
> Yes -- this works great, thanks.
And that is why I use CA::Dispatch in all my apps. It really
simplifies a lot of things for me.
Cheers,
Cees
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]