From: Thomas 'PointedEars' Lahn on
venu madhav wrote:

> Hans-Georg Michna wrote:
>> venu madhav wrote:
>> > <a class="innerliks_sub1" href='/ems/cgi-bin/wips/wips_dashboard.cgi?
>> > current_time='+Math.round(new Date().getTime()) target="icc"
>> > onClick="sethelplink('dashboard')"> Dashboard </a>
>> > Can some one help me how to pass the value to that cgi? Pls let me
>> > know if you need any clarifications.
>>
>> What is sethelplink supposed to do? Or do you just want a
>> time-dependent string in the URL and sethelplink is unrelated?
>
> Thanks for the replies.. sethelplink() function is not related to what
> we're doing but should be there.
> [...]
>
>> Depending on circumstances, an alternative could be to modify
>> href through JavaScript already after the page is loaded.
>> Doesn't look as enticing though.
>> [...]
>
> But here the problem is there is a target defined for the href. If
> you see "target=icc", that is where the target page loads into. "icc"
> is a frame. So How can I load the page into this icc in the Java
> script function

1. There is no "Java script"; the language is called JavaScript, one word.
(And it has little, if anything, to do with Java.)

2. Which function are you referring to?

3. You do not have to do anything to load the "page" into the frame
named "icc"; the `target' attribute already takes care of that.

However, if with client-side scripting the URI of the target resource
should be different than without scripting, you can modify the value
of the `href' attribute as suggested before.

4. As an alterative, it is possible to use the `window.frames' collection
to change the source of a frame, provided that the Same Origin
Policy (same protocol, same host name, same port) is met. For example:

<... onclick="window.frames['icc'].location = this.href
+ "?" + (new Date()).getTime();
return false"
>...</...>

Please trim your quotations to the relevant minimum. Please do not
quote signatures. And please read the FAQ before posting here again:

<http://jibbering.com/faq/#posting>


PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee