Link to home
Start Free TrialLog in
Avatar of pankaj_garg
pankaj_gargFlag for India

asked on

Output of my perl having a link to a javascript method .....

Hi,
    I have a html page with 2 frames. The upper frame is the output of  a perl program. There is a link in upper frame which should call a javascript
method to change the source of my lower frame.  
   Now how do the output of my perl program have a link pointing to some javascript method in parent page.

Regards,
Pankaj
Avatar of jhurst
jhurst

This is not a perl problem but a Javascript one
ASKER CERTIFIED SOLUTION
Avatar of jhurst
jhurst

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pankaj_garg

ASKER

Hey Jhurst,
      Sorry for delayed reply, I was not in town.

Actually my problem is bit different, I have several
links in test1.html
like link1 , link2 ......linkn and depending on the
link you clicked on I have to change the source
file for the second frame ie change test2 to something
else.
 I have to develop something like a FAQ list , depending on the question you click, I have to display
the corresponding details from a file.

Pankaj
 
Hey Jhurst,
      Sorry for delayed reply, I was not in town.

Actually my problem is bit different, I have several
links in test1.html
like link1 , link2 ......linkn and depending on the
link you clicked on I have to change the source
file for the second frame ie change test2 to something
else.
 I have to develop something like a FAQ list , depending on the question you click, I have to display
the corresponding details from a file.

Pankaj
 
same method will work.  I have shown you how to access the objects of the other frame.  You can just:
<input type=button onClick=whatever() ...
and the whatever() can reach into the self.parent.frames and change the src values.