yep thanks. sorted.
Oliver Jeeves wrote:
Kristian Nilssen wrote:
So how can I access a mason array using a _javascript_ indexer? (see the WHAT in
code sample) ...
var size = <% scalar @sortedfiles %>;
var imagearray = new Array(size);
// do the for loop in _javascript_, no
Kristian Nilssen wrote:
> So how can I access a mason array using a javascript indexer? (see the WHAT
> in
> code sample) ...
>
> var size = <% scalar @sortedfiles %>;
> var imagearray = new Array(size);
> // do the for loop in javascript, not perl
> // ..etc
> for(i=0 ; i
So how can I access a mason array using a _javascript_ indexer? (see the
WHAT in code sample) ...
var size = <% scalar @sortedfiles %>;
var imagearray = new Array(size);
// do the for loop in _javascript_, not perl
// ..etc
for(i=0 ; i<
I see. doh!
thanks.
K.
Michael Reece wrote:
> the perl is run at the time the javascript is generated (server-side),
> not when the javascript is executed (client-side).
>
> you cannot mix perl and javascript and get the behavior you are
> expecting. you'll need to use javascript variables th
the perl is run at the time the javascript is generated (server-
side), not when the javascript is executed (client-side).
you cannot mix perl and javascript and get the behavior you are
expecting. you'll need to use javascript variables there, not perl
variables.
however, you can still i
5 matches
Mail list logo