Click to See Complete Forum and Search --> : concerning linking from pop-up boxes


cityonfire
07-20-2005, 01:12 AM
hey all

new to the forums, i use htmlgoodies.com a lot for a reference site and usually it gets the job done as far as what i need, but i had a question concerning links in pop up boxes and when i clicked in the help section of htmlgoodies.com i was directed here...hopefully someone can assist me. basically i'm trying to create a pop-up box with entries that are links, that can take you to different parts of my site when clicked...the tutorial i'm working with can be found here http://www.htmlgoodies.com/beyond/java/article.php/3470761

this is my code, only slightly altered from that which is on the tutorial:


<applet code="link.class" width=150 height=70>
<param name="target" value="_top">
<param name="bgColor" value="white">
<param name="number" value="2">
<param name="link0" value="desired version\\not a link">
<param name="link1" value="v1.0\\index2.html">
<param name="link2" value="v2.0\\index3.html">
</applet>

ok, the problem...the code works fine if say, i put in a full link to an existing website for the value, ie <http://www.yahoo.com>
however, as you can see, i'd like to replace the true links with my .html files so that the choices actually take you to the appropriate page of my website...hope that was clear enough...any suggestions anyone?

thanks for taking the time

buntine
07-20-2005, 01:47 AM
What is the actual outcome when you try this?

You could, simply to conform to the design of the program, prefix your pages with their respective URL.

For example:

<param name="link0" value="desired version\\not a link">
<param name="link1" value="v1.0\\http://www.yoursite.com/index2.html">
<param name="link2" value="v2.0\\http://www.yoursite.com/index3.html">

Regards.

cityonfire
07-20-2005, 02:06 AM
yeah, i thought about doing that...i just thought that there might be an easier way, since my web address is kind of long, and i wouldn't be able to test that method without uploading the files to the ftp...

buntine
07-20-2005, 02:22 AM
What happens when you just supply the name of the file relative to the location of the HTML page houses the Applet?

cityonfire
07-20-2005, 04:09 PM
buntine-

sorry, i missed in your first post where you asked about what happens when i try this. i did try the applet, uploading only the pages accessed by the pop-up box links onto my ftp, and that works decently well in testing them, so i guess its adequate enough...it just becomes a pain when i need to change something in one of the linked pages....but as far as what happens when i target the .html files using the applet (if that's what you mean), absolutely nothing...in watching the status bar at the bottom of the browser window, upon clicking the link, it says "applet started" but that's all it does really...strange...i would think as long as the target is set to a file it would open it, no matter which type...then again applets are not my strong point. i guess the way i have it currently will work, i just thought maybe i was doing something incorrectly or there might be an easier way you know

thanks bud
david