Flasher Archive

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


Subject: Re: OT - javascript in ative desktop components
From: Aaron Cushing
Date: Wed, 22 Jul 1998 19:13:24 +0100


I have an Active Desktop Component which I created as a sort of launchpad
for some web pages. A couple of the links use javascript to load windows
with the specied size, content, and options (no menubar, toolbars, etc.).
When I make the link run the javascript program directly (<a
href="javascript:sendapage()">), it loads a new blank object with
"javascript:sendapage()" in the location field, then gives me an error
stating "Object Required". The required object is in the component itself.
I then tried using an onClick event to run the javascript function. That at
least executed the script, but it still loads another blank window, since
you need to put something in the href attribute. Even typing href="" still
loads a window, with the contents of the folder on the server which contains
quick.html (the html file for the desktop component). Is there some way
around this? I need to control the size of the windows being loaded, but I
can't have extra windows distracting the user. The script executes
perfectly when the page is loaded normally (not as a desktop item). The URL
to the page itself is <http://www.zapinc.com/home/quick.html>http://www.zapinc.com/home/quick.html. The URL to the
active desktop CDF file is <http://www.zapinc.com/home/quick.cdf>http://www.zapinc.com/home/quick.cdf. The link
in question is the next to last image on the bottom row (the pager with the
red arrow over it).


We had a very similar problem last week.
The way we handle this is to define a JavaScript function to call the new
page in a new window with whatever attributes you want to set up, then call
that function like this:
<a NAME="anchor"> </a>
<a href="#anchor" onClick=" functionName ">load the new window and page</a>

Pretty, simple, and nice to look at.

Aaron
==================================
Aaron Cushing, Crescent Studios
"We Deliver"
http://www.c-studios.com
==================================

Replies
  Re: OT - javascript in ative desktop com, John Croteau

Replies
  OT - javascript in ative desktop compone, Sean Robertson

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