Click to See Complete Forum and Search --> : PopUp Window Maker


jcinsc
01-23-2003, 08:01 PM
Thank you in advance to all for your help. I am attempting to add a popup window to a web site I am creating.

I am not the most computer savvy person in the world, so please bear with me and I will try to explain what I have attempted and the results I am receiving.

Here is my bottom line question: In the code, or how do I do this – how do I make it so that the TXT file shows up in the popup window?

Here’s the details: I have created a web site. On the home page, there is a link to play a 26 second WAV file. Some people may not be able to hear the WAV file, so I have typed the words into a word processor and saved that file as a TXT file. The TXT file is on my computer in the same directory as all the other files which make up the web site, including the WAV file.

I have created a second link on the same page so that viewers who cannot hear the sound can click and read the words.

I have included the Popup Window Maker code which I downloaded from the Internet which lists http://javascript.internet.com as the creator of this code.

When all is said and done, when I click on the second link, a popup window opens but it only shows a “The page cannot be displayed” error message.

So, back to my bottom line question: In the code, or how do I do this – how do I make it so that the TXT file shows up in the popup window?

(Note: I have not yet uploaded the modified page to the web, but the URL for the web site I am working on is http://www.lastmem.com

I can be reached at e-mail: jcinsc@cox.net

Thank you.
Jim

jdavia
01-23-2003, 08:24 PM
It seems like you either did not change the name of the page in the code you downloaded or you did not make a page with the text in it for the song.

So: make a page and insert the text. save and name it.(That will be your pop-up window. Check the pop-up code for the window name, if it is not the one you just made, then rename it.

jcinsc
01-23-2003, 10:10 PM
Thanks JDavia. I made a new page in Front Page, typed in the text and saved it as an .HTM file. Named it Diane.HTM
Looked over the code again. Everywhere the code said "URL" I changed it to Diane.HTM, both in the head and also the body. Saved it. Went to run it and I now get an error message and don't even get the poppup window. I get a box labeled Internet Explorer Script Error.
The first line reads: An error has occurred in the script on this page.
Then, on separate lines:
Line: 17
Char: 21
Error: Expected ')'
Code: 0
URL: PVW1.HTM (Note: I have no pages with this name.)
Do you want to continue running script on this page?
Followed by YES and NO buttons.

If I click YES, I get the Preview page but clicking on the link does nothing.
If I click NO, I get the Preview page but then I get another Internet Explorer Script Error.
The first line reads the same as above.
Then, on separate lines:
Line: 1
Char: 1
Error: Object expected
Code: 0
URL: PVW6.HTM (Again, I have no such page.)

I can directly e-mail you the HTML page from this page if it will assist you.

Thank you.

Jim

jdavia
01-24-2003, 02:54 AM
I couldn't find your pop-up but here is a pop-up that will do it for you. You can set its height, width, and position on the page.(The bold text)to how you want it. I already added your link for you. Copy/Paste it in your page.

<A HREF="javascript:" onClick="win = window.open('diane.htm','','resizable=yes,scrollbars=yes,hide address=yes,hide menu=yes,height=400,width=650,left=270,top=200,left=10,top=110');
return true;" onClick=" win.window.close('diane.htm','','height= 120,width=270'); return true;">Read the Words</A>
<a href="javascript:location.reload()" target="_self">