PDA

View Full Version : geturl doesnt seem to work


Frankstolpe
01-14-2003, 04:51 PM
i have the site http://people.zeelandnet.nl/evdstolpe
the navbar is an swf file.
i attached the onrelease geturl code to the buttons
please help me with this one

thanks
frank

binkyboo
01-14-2003, 04:57 PM
How's your directory structure set up? Are you sure it's stad.htm and not stad.html. The code is syntactically correct. Make sure your mainFrame is titled 'body' too.

Frankstolpe
01-14-2003, 05:29 PM
they are all htm
this is my frameset:


----------

<HTML>
<HEAD>
<TITLE> </TITLE>
</HEAD>

<FRAMESET ROWS="72,*" border="0">
<FRAME SRC="titelbalk.htm" NAME="titelbalk" marginwidth="10" marginheight="10" FRAMEBORDER="0" scrolling="no" NORESIZE>

<FRAMESET rows="*" COLS="161,*,160" border="0">
<FRAME SRC="menu.htm" NAME="menu" FRAMEBORDER="0" scrolling="no" NORESIZE>
<FRAME SRC="body.htm" NAME="body" FRAMEBORDER="0" NORESIZE>
<FRAME SRC="framerechts.htm" NAME="framerechts" marginwidth="5" marginheight="5" FRAMEBORDER="0" scrolling="no" NORESIZE>
</FRAMESET>
</FRAMESET><noframes></noframes>
</HTML>
-------

binkyboo
01-14-2003, 05:58 PM
Is your stad.htm page in the same directory as your navigation.swf?

Frankstolpe
01-14-2003, 05:59 PM
yes
they are all on the same level

binkyboo
01-14-2003, 06:23 PM
I don't know what to tell ya. Your code is right. Try re-publishing your htm pages and physically put in the .htm. If that doesn't work someone else is going to have to tackle this because I'm all out of ideas.

cheez
01-15-2003, 02:52 AM
If you are trying to access these pages on your local machine you need full length path to the files as the URL. If you tried putting this on the 'net and it doesn't work then it's probably not path if everything is in the same directory.

If you have only tried on your local machine then do the following:

1. place your "cultuur.htm" webpage into an EASY directory such as straight into the root C folder. The path would be this:

C:\cultuur.htm

2. When you call getURL for local files the slash "\" has to go the other way, consistent with html.
on (release) {
getURL("C:/cultuur.htm", "body");
}
Moving your htm to C: is only temporary. Writing out full-length path is a bear especially if you have folder names with spaces so this just eliminates potential problems while you trouble-shoot. ;)

I am severely hoping this makes sense!

Good luck,
Cheez

binkyboo
01-15-2003, 01:17 PM
cheez,

When testing on my local machine I've never had to put in the full length path of my files. I experienced something similar. What I had to do what re-publish the pages and physically put in the .html extension rather than letting Dreamweaver assign one.

Frankstolpe
01-15-2003, 01:46 PM
ill try it later on this week
kinda busy with my "tentamens"
dutch kind of exams

thanks for the help

Frankstolpe
01-15-2003, 04:36 PM
i think i fixed the problem

i made the menu.htm in where the swf file is located in dreamweaver.

i made a completely different swf file, but with the same name and updated it onto the ftp.

i made a new menu.htm with dreamweaver and it somehow did work.

thanks for your help

cheez
01-16-2003, 10:09 PM
Thanks for the tip B-boo ;)

Originally posted by binkyboo
cheez,

When testing on my local machine I've never had to put in the full length path of my files. I experienced something similar. What I had to do what re-publish the pages and physically put in the .html extension rather than letting Dreamweaver assign one.