Re: [Proto-Scripty] not send data in URL?

2010-07-20 Thread Richard Quadling
On 20 July 2010 06:24, geoffcox  wrote:
> Hello
>
> I have this php code
>
> for ($count=0;$count echo " target='content'>BTEC First - Unit " . $units[$count] . "\n";
> }
>
> which sends the data to file index.php as part of the URL.
>
> Is it possible to use POST instead so that the path info is not
> visible to the user?
>
> I have thought of ajax/prototype but this would need the array data to
> be passed to JavaScript and not clear how to do this?
>
> Any other way?
>
> Cheers
>
> Geoff

You could have to create a form with am  for each
unit and folder and a bit of JS to turn an  into a form submitter -
or just use a button.

If you want to use ajax, then the same mechanism - create the form,
but use an ajax submitter to process the forms.

-- 
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.



[Proto-Scripty] not send data in URL?

2010-07-19 Thread geoffcox
Hello

I have this php code

for ($count=0;$countBTEC First - Unit " . $units[$count] . "\n";
}

which sends the data to file index.php as part of the URL.

Is it possible to use POST instead so that the path info is not
visible to the user?

I have thought of ajax/prototype but this would need the array data to
be passed to JavaScript and not clear how to do this?

Any other way?

Cheers

Geoff

-- 
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-scriptacul...@googlegroups.com.
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.