Link to home
Start Free TrialLog in
Avatar of bapasba
bapasba

asked on

HREF and two targets

The following code snippet is from an events calendar that I've been working on for some time:

Write_TD "<A HREF=events.asp?date="& Server.URLEncode(dToday) & " CLASS='TODAY1' target='bottom'> " & intPrintDay & "</A>", "HL"

Question:
How do I add code that will allow HREF to target two frames instead of just one?

Currently, the HREF tag targets only the events.asp page.

I need HREF to target two pages ("events.asp" in an Iframe called "bottom" simultaneously with a page called "date.asp" in an Iframe called "middle").

Note:  CLASS='TODAY1' and "HL" are used in conjunction with an embedded CSS. The URLEncode string provides date information which when the link is clicked sends the date to the events.asp page.

I've already tried and failed using JavaScript with an "onClick" function, and I've tried the following code which only generates javascript errors:

<head>
<script language=javascript>
<!--
function go(p1,p2)
{
parent.frame1.location.href=p1;
parent.frame2.location.href=p2;
}
//-->
</script>
</head>

<body>

<a href=javascript:go('page1.asp','page2.asp')


Any help would be greatly appreciated.  
ASKER CERTIFIED SOLUTION
Avatar of rcmb
rcmb

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
SOLUTION
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