By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,306 Members | 1,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,306 IT Pros & Developers. It's quick & easy.

Loading graphics-failed

P: n/a
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre

<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>
Jul 20 '05 #1
Share this Question
Share on Google+
9 Replies


P: n/a
On 4 Mar 2004 21:39:03 -0800, Devin <do********@hotmail.com> wrote:
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre

<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>

First strike - inspect the htm files. Fault is likely there.

Second strike - put the first htm file in the second's code and see if it
opens that. Scientifically separate the code from the file in that way -
if the first file opens fine in the second code, the code's not to blame,
the file is.
Jul 20 '05 #2

P: n/a
On 4 Mar 2004 21:39:03 -0800, do********@hotmail.com (Devin) wrote:
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
Don't know, but Neal has given you some suggestions.

However, you have several other problems.
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre


- This will only work for readers who have Javascript enabled. 10%-20%
do not (for good reasons). See
http://www.xs4all.nl/~sbpoley/webmatters/whatnojs.html
As you don't seem to be doing anything that intrinsically requires
Javascript, now would be a good time to replace the button with a link.

- Do you really need a new window at all? Do you have a clear reason why
the reader needs to see both the new and old windows at the same time?

- scrollbars=no is appalling. Don't ever use it. It has two possible
effects: (1) the user cannot get to part of the page, or (2) nothing.
Which do you want to achieve?

- resizable=no isn't much better.

- The <u> element is not closed. Does it do anything anyway? (Not in my
browser)

- Not much point in putting a PRE element around something with no text.

All in all, this seems to provide further evidence (if any were needed)
that the best place for FrontPage is the dustbin.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #3

P: n/a
Devin wrote:
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre

<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>


Blah.. blah... usual warnings about JavaScript, and popup windows...
Blah... blah...

Now to the problem itself:

The first one specifies the file name as 'Final%20Drafts/Cholla.htm',
whereas the second one specifies it as 'Final%Drafts/Octillo.htm'

See any obvious difference between these (besides the .htm name)?

What does the '%' character mean in the second file name? It means a
character whose ASCII value is specified in hexadecimal in the following
two characters - DR in this case. That's an illegal hexadecimal number,
and thus is unsupported (and unpredictable).

I assume you wanted to specify 'Final%20Drafts/Octillo.htm' as the file
name for the second button...
Jul 20 '05 #4

P: n/a
Devin wrote:
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre

<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>


Blah.. blah... usual warnings about JavaScript, and popup windows...
Blah... blah...

Now to the problem itself:

The first one specifies the file name as 'Final%20Drafts/Cholla.htm',
whereas the second one specifies it as 'Final%Drafts/Octillo.htm'

See any obvious difference between these (besides the .htm name)?

What does the '%' character mean in the second file name? It means a
character whose ASCII value is specified in hexadecimal in the following
two characters - DR in this case. That's an illegal hexadecimal number,
and thus is unsupported (and unpredictable).

I assume you wanted to specify 'Final%20Drafts/Octillo.htm' as the file
name for the second button...
Jul 20 '05 #5

P: n/a
Devin wrote:
I'm using frontpage as the editor.
That's your first mistake... FrontPage sucks! Real Men write HTML by
hand! :-)
The first button opens a new
browser and loads the jpg for each button.
That's your second mistake. Opening up new browser windows is generally
regarded as annoying.
The second button opens the
new browser but don't load up the graphics. Why?
Maybe due to some of your several syntax errors...
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre
1) The <u> element is never closed (and must be closed before the <pre>
element to be properly nested)

2) You're missing the closing ">" character in the </pre> tag.
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>


3) 'Final%Drafts' is probably supposed to be 'Final%20Drafts', where %20
is the hexadecimal code for the space character. (You're better off
using file and directory names that don't have spaces in them, so you
don't have characters in your URLs that need escaping.)

4) The <pre> element is never closed.

Furthermore, it's a bad idea to make your site navigation depend on
JavaScript, or the <input type="button"> element (which is not supported
in older browsers). Also, I believe Netscape browsers ignore <input>
elements when they're not within a <form> element.

I see no references to .jpg graphics in your code; probably, they're
loaded with <img> elements in the HTML documents referenced there.

--
== Dan ==
Dan's Mail Format Site: http://mailformat.dan.info/
Dan's Web Tips: http://webtips.dan.info/
Dan's Domain Site: http://domains.dan.info/
Jul 20 '05 #6

P: n/a
It seems "Stephen Poley" wrote in
comp.infosystems.www.authoring.html:
- scrollbars=no is appalling. Don't ever use it. It has two possible
effects: (1) the user cannot get to part of the page, or (2) nothing.
Which do you want to achieve?


What a well-turned phrase!

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/
Jul 20 '05 #7

P: n/a
"Keld R. Hansen" <ne**@www.heartware.dk> wrote in message news:<40************@www.heartware.dk>...
Devin wrote:
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre

<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>


Blah.. blah... usual warnings about JavaScript, and popup windows...
Blah... blah...

Now to the problem itself:

The first one specifies the file name as 'Final%20Drafts/Cholla.htm',
whereas the second one specifies it as 'Final%Drafts/Octillo.htm'

See any obvious difference between these (besides the .htm name)?

What does the '%' character mean in the second file name? It means a
character whose ASCII value is specified in hexadecimal in the following
two characters - DR in this case. That's an illegal hexadecimal number,
and thus is unsupported (and unpredictable).

I assume you wanted to specify 'Final%20Drafts/Octillo.htm' as the file
name for the second button...


That did it! I can't believe I missed it. I reviewed those lines over
and over. Good eye-thanks a million!
Jul 20 '05 #8

P: n/a
"Daniel R. Tobias" <da*@tobias.name> wrote in message news:<x_********************@adelphia.com>...
Devin wrote:
I'm using frontpage as the editor.


That's your first mistake... FrontPage sucks! Real Men write HTML by
hand! :-)
The first button opens a new
browser and loads the jpg for each button.


That's your second mistake. Opening up new browser windows is generally
regarded as annoying.
The second button opens the
new browser but don't load up the graphics. Why?


Maybe due to some of your several syntax errors...
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre


1) The <u> element is never closed (and must be closed before the <pre>
element to be properly nested)

2) You're missing the closing ">" character in the </pre> tag.
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>


3) 'Final%Drafts' is probably supposed to be 'Final%20Drafts', where %20
is the hexadecimal code for the space character. (You're better off
using file and directory names that don't have spaces in them, so you
don't have characters in your URLs that need escaping.)

4) The <pre> element is never closed.

Furthermore, it's a bad idea to make your site navigation depend on
JavaScript, or the <input type="button"> element (which is not supported
in older browsers). Also, I believe Netscape browsers ignore <input>
elements when they're not within a <form> element.

I see no references to .jpg graphics in your code; probably, they're
loaded with <img> elements in the HTML documents referenced there.


That solved it! Both your posting and Keld's about 'Fina%20Drafts'
syntax was causing it. Just about everyone's expressions with passion
in their postings is freakin' hillarous but convincing! I also will
seriously consider dumping frontpage as I've seen some syntax that
seems silly. Thanks! Devin
Jul 20 '05 #9

P: n/a
do********@hotmail.com (Devin) wrote in message news:<e4**************************@posting.google. com>...
I'm using frontpage as the editor. The first button opens a new
browser and loads the jpg for each button. The second button opens the
new browser but don't load up the graphics. Why?
<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%20Drafts/Cholla.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=685, height=640, left=10, top=10'); return
false;"></pre

<pre><u><input type="Button" value="Floor plan"
onClick="InfoWindow=window.open('Final%Drafts/Octillo.htm','InfoWindow','toolbar=no,
location=no, directories=no, status=no, menubar=no, scrollbars=no,
resizable=no, width=635, height=685, left=10, top=10'); return
false;"></u>


I appreciate everyone suggestions and the problem was the syntax
'Final%20Drafts'. Thanks again! Devin
Jul 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.