HTML/JavaScript help.

ok. That didn't work. I still get a full screen thing that says this page can not be displayed. COuld it by any chance have something to do with the JavaScript alert I have in the file I want opened?
 
No. alerts won't mess anything up, they are actually one of the best things for troubleshooting javascript.

What does it say in the address bar of the popup?

Try this..
Code:
<script type="text/javascript">
<!--
var closetime=0;

function Start(URL){
var windowprops="fullscreen=yes";
var preview=window.open(URL,"popWin",windowprops);
if (closetime) setTimeout("preview.close();", closetime*1000);
}

function popupWin(){
var url="JavaScript/file.html"
var delay=0;
timer = setTimeout("Start('"+url+"')", delay*1000);
window.status="";
}
//-->
</script>

Note, I haven't tested it. I'm not 100% sure what it is you're doing.
 
stormbind said:
What does it say in the address bar of the popup?

Erm there is no adress bar. It takes up the entire screen.

stormbind said:
Note, I haven't tested it. I'm not 100% sure what it is you're doing.

Then I should inform you. :) I created another HTML file called AOL2 that in the browser simply shows a red arrow, when you move your mouse over the arrow another HTML file is opened. This of course not being on the web just from files one my computer.
 
Ok, can you temporarily disable the fullscreen to read the address of the page it failed to load (to make sure the value for URL being passed properly between the functions)?
 
stormbind said:
Ok, can you temporarily disable the fullscreen to read the address of the page it failed to load (to make sure the value for URL being passed properly between the functions)?

C:\Documents and Settings\Owner\My Documents\My Received Files\new\HTML and java\JavaScript\project\JavaScript\file.html

Exaclty where the file is.
 
If there are no quotes around it, or some other small but critical booboo... then I'm clueless as to why the page won't load :(
 
Actually that URL is wrong now that I looked at it side by side with the one pulled from the file.

C:\Documents and Settings\Owner\My Documents\My Received Files\new\HTML and java\JavaScript\project\file.html

C:\Documents and Settings\Owner\My Documents\My Received Files\new\HTML and java\JavaScript\project\JavaScript\file.html
 
Change the line to read var url="file.html";
 
1. You shouldn't use all capitals in HTML. If you're using it to make it look different from the actual text, download an HTML editor that has syntax highlighting (that will highlight the HTML tags)

2. Insert a DOCTYPE! Without a doctype, the browser goes into "quirks mode" and has to guess to render the HTML. Because different browsers' quirk modes render things differently, the pages won't look the same on all browsers

3. Add character encoding to your <head>: <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
 
hbdragon88 said:
1. You shouldn't use all capitals in HTML. If you're using it to make it look different from the actual text, download an HTML editor that has syntax highlighting (that will highlight the HTML tags)

2. Insert a DOCTYPE! Without a doctype, the browser goes into "quirks mode" and has to guess to render the HTML. Because different browsers' quirk modes render things differently, the pages won't look the same on all browsers

3. Add character encoding to your <head>: <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

1. Was wondering about that....

2. Intresting. Thanks.

3. :crazyeye: :lol:
 
Back
Top Bottom