Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > getting unversal coding advice

getting unversal coding advice
Thread Tools
qnc
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status: Offline
Reply With Quote
Jul 4, 2003, 09:04 AM
 
Are there any forums where people will look at code from a page and tell you why it won't work in different browsers and help a person in getting unversal browser coding advice?
qnctv.com
Take a look...
     
Dedicated MacNNer
Join Date: Aug 2002
Status: Offline
Reply With Quote
Jul 4, 2003, 11:08 AM
 
well, on www.w3.org they have an html validator which will tell you where your code isn't valid, if you still have problems you can post it here and we'll try and find work arounds for you

--will
     
Mac Elite
Join Date: Feb 2003
Location: columbus, oh
Status: Offline
Reply With Quote
Jul 4, 2003, 11:26 AM
 
Remember: IE for Windows has its own standards so if you use CSS, don't count on more than 60% of it working. A good example is http://www.macrabbit.com/cssedit.

If you use just HTML, the W3C validator will work just fine.
"Another classic science-fiction show cancelled before its time" ~ Bender

15.2" PowerBook 1.25GHz, 80GB HD, 768MB RAM, SuperDrive
     
Mac Enthusiast
Join Date: Jul 2002
Location: Leiden, Netherlands
Status: Offline
Reply With Quote
Jul 8, 2003, 06:47 AM
 
Originally posted by clam2000:
well, on www.w3.org they have an html validator which will tell you where your code isn't valid, if you still have problems you can post it here and we'll try and find work arounds for you

--will
The URL is validator.w3.org
     
qnc  (op)
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status: Offline
Reply With Quote
Jul 8, 2003, 06:55 AM
 
tried it and got

I was not able to extract a character encoding labeling from any of the valid sources for such information. Without encoding information it is impossible to validate the document. The sources I tried are:

The HTTP Content-Type field.
The XML Declaration.
The HTML "META" element.

I always assumed that I was coding in html javascript and css but not to any standard

I was preparing for xml but never got round to full code is it worth doing that now will older browsers see it.

is it worth doing object sensing i.e. dependant on browser gives a different format?

sorry I am a bit confused now?
qnctv.com
Take a look...
     
Senior User
Join Date: Mar 2002
Location: Chicago, IL
Status: Offline
Reply With Quote
Jul 8, 2003, 08:44 AM
 
The validator won't even try to check your page if it doesn't know what set of rules to check it against. You need something like this:
[php]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
[/php]

(Please note that this isn't PHP but I couldn't get the code tag to work)

This is for XHTML 1.0, you may need to use something else like HTML 4.01 Transitional depending on your code.

As for the actual code, it's best to just go ahead with XHTML at this point in my opinion. OptimusG4 is correct, however, about the sketchy support for CSS2 in IE.

The reason that the Document Type Definition is so important is that it is also how a browser will decide how to display your page.

If you need more help, or can't find the right DTD online let me know, I have a book at home with pretty much any DTD from HTML 4 up.
We need less Democrats and Republicans, and more people that think for themselves.

infinite expanse
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
Jul 8, 2003, 08:53 AM
 
For the moment, I would sugggest coding to HTML 4.01 Transitional, actually, simply because it is the easiest one to get to when you're starting from tag-soup. That will get you up, running, and compliant relatively quickly.

As for coding advice, you might want to try Dave Raggett's tutorial at http://www.w3.org/MarkUp/Guide/. It's basic, but it gets the job done.
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
     
qnc  (op)
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status: Offline
Reply With Quote
Jul 8, 2003, 09:09 AM
 
I put this at the top of the page and already it is looking better

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">

now need to find out why slide show is not working

soory have it on my desktop while I debug it for a while

any spot its???
qnctv.com
Take a look...
     
qnc  (op)
Mac Enthusiast
Join Date: May 2000
Location: London U.K.
Status: Offline
Reply With Quote
Jul 8, 2003, 09:14 AM
 
I addapted this banner program it works fine on ie and safari may be the mixed code


http://www.cgiscript.net/cgi-script/...wone&amp;id=23

validator is still not recognisisng the page when I upload it from my desktop
qnctv.com
Take a look...
     
   
Thread Tools
Forum Links
Forum 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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2