Hi there,
I have set of scripts where I need to generate HTML pages with Perl (no problem so far)...but in these pages I am providing links to other generated pages. (still no problem).
Except on one page that is a 3 frame frameset, I am using a javascript function i wrote to change all 3 frames at once to link to another frameset with a different main frame content, (to make it look like the frameset has changed).
But although i wrote this bit javascript and it works when using static pages, it doesn't with these dynamic pages.
Part of the reason is that I need to pass variables from my perl script to links in my generated page that call the javascript - so that the javascript can then add these variables to the links it executes as parameters for the script that they're linking to. - yeah it seems like these values are really going the long way round to get to the target script, but because of the structure and layout I can't really control that.
BUT I stripped down my scripts to find the error, and I have found that if I do exactly as I am trying to do but making sure that the value I pass to my javascript is an integer (i.e. 3, 28, etc) it works...but my real values are strings (i.e. P002, P003, P004...etc), and these don't make it to the javascript function. When I mouse over the links to the javascript function, these string values have been interpolated by perl (as they are the result of a loop), but then I get errors when calling the javascript.
Are there known issues with this kind of thing or am I just doing it wrong.
Any help would be great.
Thanks
Jez

I have set of scripts where I need to generate HTML pages with Perl (no problem so far)...but in these pages I am providing links to other generated pages. (still no problem).
Except on one page that is a 3 frame frameset, I am using a javascript function i wrote to change all 3 frames at once to link to another frameset with a different main frame content, (to make it look like the frameset has changed).
But although i wrote this bit javascript and it works when using static pages, it doesn't with these dynamic pages.
Part of the reason is that I need to pass variables from my perl script to links in my generated page that call the javascript - so that the javascript can then add these variables to the links it executes as parameters for the script that they're linking to. - yeah it seems like these values are really going the long way round to get to the target script, but because of the structure and layout I can't really control that.
BUT I stripped down my scripts to find the error, and I have found that if I do exactly as I am trying to do but making sure that the value I pass to my javascript is an integer (i.e. 3, 28, etc) it works...but my real values are strings (i.e. P002, P003, P004...etc), and these don't make it to the javascript function. When I mouse over the links to the javascript function, these string values have been interpolated by perl (as they are the result of a loop), but then I get errors when calling the javascript.
Are there known issues with this kind of thing or am I just doing it wrong.
Any help would be great.
Thanks
Jez