Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: asp page works with explorer but not netscape....


Message #1 by jon.holyoake@m... on Tue, 20 Jun 2000 11:26:53
help.....

just created a simple asp page which lets you enter your details into text boxes. it then saves them in a sql database ....

it works great on internet explorer but i've just tried it on netscape and the page wont load .... 

is there anything i have to put in to tell it to work with netscape as well as explorer.......



any ideas.... 



thanks.....

Message #2 by "Ken Schaefer" <ken.s@a...> on Tue, 20 Jun 2000 22:53:02 +1000
Netscape is far more picky in terms of insisting that you use properly

formed HTML tags.



If you open a tag like <table> you must have a closing </table> tag.



If you want to use form elements (eg <input>), you must put the elements

inside <form></form> tags.



If you use GET to pass variables by appending them to a URL, then you must

escape reserved characters using Server.URLEncode() - IE will do it

automatically for you.



If you have HTML tags, make sure that the attributes are delimited with "

marks:

<input type="text" name="t1" value="Blue and Green">



I suggest that you review your code to make sure that it contains properly

formed HTML tags. Get a good HTML reference if you're not sure what you're

doing wrong.



Netscape is a pain in the backside when it comes to adhering to standards,

but this is one area where it is way ahead of IE - namely it is far less

tolerant of lazy coding techniques.



Cheers

Ken



----- Original Message -----

From: <jon.holyoake@m...>

To: "ASP Databases" <asp_databases@p...>

Sent: Tuesday, June 20, 2000 11:26 AM

Subject: [asp_databases] asp page works with explorer but not netscape....





> help.....

> just created a simple asp page which lets you enter your details into text

boxes. it then saves them in a sql database ....

> it works great on internet explorer but i've just tried it on netscape and

the page wont load ....

> is there anything i have to put in to tell it to work with netscape as

well as explorer.......

>

> any ideas....

>

> thanks.....

>

> ---

> Wrox Professional Wireless Developer Conference, Amsterdam, July 10-12.

Covering application of WAP, XML, ASP, Java and C++ to wireless computing,

choose from 40+ technical sessions delivered by industry experts:

http://www.wroxconferences.com/ConferenceHome.asp?ConfID=9

> ---

> You are currently subscribed to asp_databases


$subst('Email.Unsub')

>

>



Message #3 by smartin@c... on Tue, 20 Jun 2000 10:01:28 -0400
Considering that all ASP returns to the browser is HTML code, the problem

has to be with your HTML, not with ASP.  Netscape is far more rigid in its

parsing of HTML than IE.  As a result, you have to make sure you're sending

back valid code.



One suggestion, run the page in IE and view the source.  Save that file and

run it though an HTML validator.  This will tell you where you have

non-standard HTML.  Then, go back to the ASP file and fix the problem there.



-Stephen



> -----Original Message-----

> Sent: Tuesday, June 20, 2000 7:27 AM

> To: ASP Databases

> Subject: [asp_databases] asp page works with explorer but not

> netscape....

> 

> 

> help.....

> just created a simple asp page which lets you enter your 

> details into text boxes. it then saves them in a sql database ....

> it works great on internet explorer but i've just tried it on 

> netscape and the page wont load .... 

> is there anything i have to put in to tell it to work with 

> netscape as well as explorer.......

> 

> any ideas.... 

> 

> thanks.....

> 

> 

  Return to Index