RE: javascript variables in embperl tag

2005-11-22 Thread Gerald Richter
> > I might use javascript's document.write, but I wonder if it's > possible in embperl space (maybe a new tag?), like > > var myarray=new Array(1,3,4,7); > [=myarray[0]=] instead of document.write > > which will do the same as > [-my @myarray=(1,3,4,7)-] > [+$myarray[0]+] > You cannot direc

Re: javascript variables in embperl tag

2005-11-18 Thread Derrick Spell
Well, I'm certainly not a javascript expert, but it seems to me that the issue here is how to make data pulled by embperl on the server side available to the javascript on the client side. I assume that there is a way to access submitted form data from javascript. You can put the data into

javascript variables in embperl tag

2005-11-18 Thread Ben Kim
This may be a basic question, but is there a way to manipulate javascript functions and variables within embperl syntax? (Would it be possible to add this if it does not exist?) For example, let's say I populated a large javascript array/hash from a database call, and want to resort, rearrange o