Believe me I certainly don't want to ask a JS ques. here, I am reading
tutorials on the web!
I already accomplished reordering using PHP, I gave up on php since I
wasn't able to pass arrays betn. pages using header().
In PHP when user moves each element and submits up, down, top or bottom
there is server-client communication while in JS there will be
server-client comm. only at the end when a Done button is pressed.
i.e. SPEED :-)

> This sounds susspiciously like a Javascript question to me.  :)
>
> I wrote a PHP/Javascript system a while back that prints out an event
> calendar on a client page.  The Javascript is copy&paste so you can have the
> calendar show up on any web page anywhere in the world.  It works like
> this..
>
> The Javascript on the client's page redirects to the PHP script on my server
> with display_dates and clientid in the URL string.  Then the PHP script
> parses $_GET and extracts the requested data from the database.  Then the
> PHP script does a redirect back to the originating Javascript (known by
> $HTTP_REFERER) with the compressed data (again in the URL string).  The
> Javascript does some simple parsing and generates the calendar table based
> on the extracted values.
>
> This sounds a lot like what you want to do.  But how you parse the data in
> Javascript is obviously not a PHP question.  Are you're certain this
> reordering isn't something that can be done in PHP?  I guess my real
> question is what is the Javascript for?
>
> -Kevin
>
> ----- Original Message -----
> From: "Pushkar Pradhan" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, April 26, 2002 11:23 AM
> Subject: Re: [PHP] passing vars. betn. php and javascript
>
>
> > In my php I had 4 buttons, up, down, top and bottom:
> > After detecting which element and which button was clicked I changed the
> > element position by
> > using array_slice, shift, unshift, array_merge etc..
> > I'm not sure what I'll do it JS
>
> > > On Saturday 27 April 2002 00:56, Pushkar Pradhan wrote:
> > > > I need to pass an array from php to javascript,
> > > > change the ordering of the elements in javasc..
> > > > pass this reordered array back to php script?
> > > > Is it possible to do this and if so can anyone send me the basic code,
> > > > I've never written javascript? Thanks,
> > >
> > > How is the array reordered?
> > >
> > > --
> > > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> > > Open Source Software Systems Integrators
> > > * Web Design & Hosting * Internet & Intranet Applications Development *
> > >
> > > /*
> > > Maturity is only a short break in adolescence.
> > > -- Jules Feiffer
> > > */
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
> > -Pushkar S. Pradhan
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>

-Pushkar S. Pradhan


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to