Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: Child call back to parent in JavaScript? Please help.
From: Jason_Schubring
Date: Thu, 6 Apr 2000 20:52:35 +0100



<crabby John>
>>This is the *third* time I've posted this. I assume there is a simple yes or
no
>>answer. If I'm being too succint, or if my question does not make sense,
please
>>let me know and I'll eloborate.

>>What I need is this: when the user clicks on the button, I need to open
>>different URL in the original browser (that contains the javascript function).
</crabby John>


This is the *fourth* time I have posted this solution in the past 2 weeks. ;-)

You can find lots of answers at http://i-technica.com/flash/flashlist.html.

Here is your answer (thanks a TON to Helen T. for archiving this stuff!!):


Subject: open target url with javascript
Date: 3/21/00
Contributed by: Jason Schubring

Q: I want when a button is clicked in the navigator for it to load the
appropriate page in the opener window.

A: In the head of the HTML doc, I put together this bit of script:

<.script language="JavaScript">
function targetWin(url) {
window.opener.location=(url);
}

In the Get URL pass the URL to the function like this:
On (Release)
Get URL ("javascript:targetWin('">http://www.yoursitehere.com');")
End On
This should take care of it. Tested in both IE and NS.





flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]