473,624 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
9 1687
On 4 Mar 2004 21:39:03 -0800, Devin <do********@hot mail.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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
On 4 Mar 2004 21:39:03 -0800, do********@hotm ail.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><inp ut type="Button" value="Floor plan"
onClick="InfoW indow=window.op en('Final%20Dra fts/Cholla.htm','In foWindow','tool bar=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
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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
It seems "Stephen Poley" wrote in
comp.infosystem s.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
"Keld R. Hansen" <ne**@www.heart ware.dk> wrote in message news:<40******* *****@www.heart ware.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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
"Daniel R. Tobias" <da*@tobias.nam e> wrote in message news:<x_******* *************@a delphia.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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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
do********@hotm ail.com (Devin) wrote in message news:<e4******* *************** ****@posting.go ogle.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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%20Draf ts/Cholla.htm','In foWindow','tool bar=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><inpu t type="Button" value="Floor plan"
onClick="InfoWi ndow=window.ope n('Final%Drafts/Octillo.htm','I nfoWindow','too lbar=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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5095
by: Matthew | last post by:
I am not the most talented programmer to grace the earth by a long shot. But I've got a gripe I need to air about the .NET implementaion of Visual Basic. I can live with alot of the major changes to the structure and syntax of the code but I thought the purpose of re-engineering the damn thing would result in improved performance all around, well the .NET seems to really suck doing things graphically on forms that VB6 Seemed to do fine....
1
3376
by: Stacey | last post by:
Hi, I'm hoping for a bit of advise-- I have a (relatively, from the point-of-view of this dilettante) complex script that attempts to preload certain images in order to trigger one of a series of six slideshows (rather than try to articulate, have a look here): http://www.slack.net/~stacey/stestbed/homejs.jsp Clicking any of the six blocks of text along the sides will begin a loop of the corresponding slideshow.
2
8037
by: nsgi_2004 | last post by:
Hello, I've noticed System.Drawing.Bitmap. I'm wondering if there is an equivalent class that works with jpegs, or at least loads jpegs and converts them to bitmaps. Thanks in advance.
5
20281
by: Vin | last post by:
Hi, I am using the following code to draw whatever the user draws using x,y. // draws lines directly on a winform. CreateGraphics().DrawLine(APen, x, y, OldX, OldY); Now how do I save the drawing on to a bmp file on my harddisk? C# code in this regard would be very helpful. I tried all forums but invain.
11
5287
by: Detlef Hüttenbach | last post by:
Whereas loading tiffs and pngs from file into an Image WebControl work, the images aren't shown when loaded from streams: In a WebForm, the image's property "ImageUrl" is set to a handler, and this handler gets the image from a database. Please check the various image formats. (The images are stored in a SQL database as Image type.) I post you a demo HTTP handler below. I guess, it's the ViewState which messes up (in Windows Forms I...
5
1532
by: Cenk Genisol | last post by:
Hi NG, I am relatively new to Web developement and have some questions to you. I've got a Masterpage where some graphics are embedded by CSS. They format the borders of tables, which store page content so it's just an optical background. During the process of loading the page on the client, pages which implement the above mentioned masterpage are build very excursive. That looks
2
2433
by: brianflannery | last post by:
Greetings! My situation is this. I currently have a database of which in a form displays jpeg pictures (one at a time) which are linked to the db and stored in a separate folder. I have set up a report with an image control do display/print 4 pictures on a page. When the report opens (in preview mode) the "loading image" dialog flashes 4 times (once for each picture) which isn't a huge deal, but is annoying. There have been several...
2
3749
by: JoeC | last post by:
I have successfully saved and re-loaded binary data but I am having some trouble with some data: I wrote a binary graphics object and it takes data in a BYTE form. Here is the data I have and how I save then load it: static BYTE bits = {0xff,0xff, 0x00,0x00, 0x7f,0xfe, 0x7f,0xfe, 0x7f,0xfe, 0x7f,0xfe, 0x7f,0xfe, 0x7e,0x7e, 0x7e,0x7e, 0x7f,0xfe, 0x7f,0xfe, 0x7f,0xfe,
2
2719
by: msch.prv | last post by:
I have been experimenting with VWD Express Extension 3.5 and noticed that quite often it takes up to 1..2 min to load external js or css files. This occurs often after rebuilding the site. The problem seems to be linked to retrieving small ( approx 200 bytes) graphics files, as evidenced in Firefox' Firebug tracing graphics. Currently, the script manager is included in the master page, the external js file in the header section, and the...
6
4006
by: vunet | last post by:
This may be a strange question from a non-technical person who asked me to make his whole site and images load all at once. I.e. the completely loaded site would show up immediately even with a big background image. I explained that images are taking longer to load because of the size than anything else but this person insists on the request. Am I missing something here or there is actually a way to load the whole website all at once other...
0
8233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8170
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8675
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8334
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7158
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2604
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.