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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!