Re: How to select from a popup_menu without clicking submit?

[email protected] (Ken Foskey)
Newsgroups perl.beginners.cgi
Message-ID <[email protected]>
On Mon, 2008-01-07 at 12:06 +0100, VarjĂş TamĂĄs wrote:
> This is exactly the point.  Javascript is run in the browser (remotely)
> while the perl script is run on the server (locally).  AJAX is the
> technique to make this two communicate without submitting the whole
> form.
> 
> Tamas Varju
> 
> 2008. 01. 7, hétfő keltezéssel 11.01-kor Marcus Claesson ezt írta:
> > Thanks for that, but from what I've heard it should be solvable using
> > Javascript event handlers. I just don't know the details of how to use
> > it successfully. I tried the following but got no result:
> > (if this IS the way forward I'd need the onChange (or similar) handler
> > to point to a 'Perl event' and not a 'Javascript event'...)
> > 
> > print $cgi->popup_menu(-name=>'list',
> >                        -id=>'list',
> >                        -values=>['L1','L2','L3']),
> >                        -onChange=>"alert('TESTING')";
> > 
> > /Marcus

To add to that.

AJAX uses javascript same as the above to insert it's calls.

I use AJAX for things like when the customer changes in the drop box I
use AJAX to query the database on the server and replace another drop
box on the browser (product codes specific for that client).

It looked to me that you wanted to track what the user was doing and
report centrally on the server.  If that is the case then you must bring
that information back somehow AJAX is just one way of doing this.

What are you actually trying to achieve?
What do you know up front?
How much does information change?

-- 
Ken Foskey
FOSS developer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.