Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 06:54 PM
Devin
Guest
 
Posts: n/a
Default Loading graphics-failed

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>
  #2  
Old July 20th, 2005, 06:54 PM
Neal
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

On 4 Mar 2004 21:39:03 -0800, Devin <dovendaven@hotmail.com> wrote:
[color=blue]
> 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>[/color]


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.
  #3  
Old July 20th, 2005, 06:54 PM
Stephen Poley
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

On 4 Mar 2004 21:39:03 -0800, dovendaven@hotmail.com (Devin) wrote:
[color=blue]
>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?[/color]

Don't know, but Neal has given you some suggestions.

However, you have several other problems.
[color=blue]
><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[/color]

- 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/
  #4  
Old July 20th, 2005, 06:54 PM
Keld R. Hansen
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

Devin wrote:
[color=blue]
> 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>[/color]

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...
  #5  
Old July 20th, 2005, 06:54 PM
Keld R. Hansen
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

Devin wrote:
[color=blue]
> 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>[/color]

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...
  #6  
Old July 20th, 2005, 06:54 PM
Daniel R. Tobias
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

Devin wrote:[color=blue]
> I'm using frontpage as the editor.[/color]

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

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

Maybe due to some of your several syntax errors...
[color=blue]
> <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[/color]

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.
[color=blue]
> <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>[/color]

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/
  #7  
Old July 20th, 2005, 06:55 PM
Stan Brown
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

It seems "Stephen Poley" wrote in
comp.infosystems.www.authoring.html:[color=blue]
>- 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?[/color]

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/
  #8  
Old July 20th, 2005, 06:55 PM
Devin
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

"Keld R. Hansen" <news@www.heartware.dk> wrote in message news:<40484AEE.40706@www.heartware.dk>...[color=blue]
> Devin wrote:
>[color=green]
> > 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>[/color]
>
> 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...[/color]

That did it! I can't believe I missed it. I reviewed those lines over
and over. Good eye-thanks a million!
  #9  
Old July 20th, 2005, 06:55 PM
Devin
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

"Daniel R. Tobias" <dan@tobias.name> wrote in message news:<x_mdnQcUNPtc49XdRVn-hA@adelphia.com>...[color=blue]
> Devin wrote:[color=green]
> > I'm using frontpage as the editor.[/color]
>
> That's your first mistake... FrontPage sucks! Real Men write HTML by
> hand! :-)
>[color=green]
> > The first button opens a new
> > browser and loads the jpg for each button.[/color]
>
> That's your second mistake. Opening up new browser windows is generally
> regarded as annoying.
>[color=green]
> > The second button opens the
> > new browser but don't load up the graphics. Why?[/color]
>
> Maybe due to some of your several syntax errors...
>[color=green]
> > <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[/color]
>
> 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.
>[color=green]
> > <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>[/color]
>
> 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.[/color]

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
  #10  
Old July 20th, 2005, 06:55 PM
Devin
Guest
 
Posts: n/a
Default Re: Loading graphics-failed

dovendaven@hotmail.com (Devin) wrote in message news:<e41e0a25.0403042139.2e9a95d3@posting.google. com>...[color=blue]
> 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>[/color]

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

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles