Hi,
I'm trying to pass a value between 2 different frames. side_frame and main_frame. Now, I have an input field, which I'm trying to populate. The code I'm using is;
<a href="javascript:frames['main_frame'].form['edit_link'].catid.value=1234">
...but that gives me a syntax error. I'm pretty new to this JS stuff ... but I'm slowly getting there. Obviously not quite there yet =)
Would anyone mind sharing how to do this? I've tried other options, i.e;
javascript:document.catid.value=1234
... but that will only work with the local option, and not the one in the main_frame.
Any ideas are much appreciated :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
I'm trying to pass a value between 2 different frames. side_frame and main_frame. Now, I have an input field, which I'm trying to populate. The code I'm using is;
<a href="javascript:frames['main_frame'].form['edit_link'].catid.value=1234">
...but that gives me a syntax error. I'm pretty new to this JS stuff ... but I'm slowly getting there. Obviously not quite there yet =)
Would anyone mind sharing how to do this? I've tried other options, i.e;
javascript:document.catid.value=1234
... but that will only work with the local option, and not the one in the main_frame.
Any ideas are much appreciated :)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates

