Go Back   Computer Juice > Computer Software > Web Design & Programming
Register iSpy Downloads New Posts Donate Unanswered Posts Member List Search

Computer Juice raffle - Win PC hardware of your choice worth £500 / €680 / $1000 - Enter HERE!


Computer Juice - Forums - Help with bad code :(


Reply
 
Thread Tools
  #1  
Old 03-04-2008, 08:20 PM
Breaker3D's Avatar
CJ Member
 
Breaker3D is offline
 
Join Date: Feb 2008
Last Online: 12-05-2008 09:12 PM
Posts: 28
iTrader: (0)
Breaker3D is on a distinguished road
Default

Help with bad code :(


I'm new to this whole scene and wondered if anyone could help with quite a few errors I now have in my code. Thanks

<Link hidden. Register for free to see this link!>
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #2  
Old 04-04-2008, 09:22 AM
Mike0001's Avatar
CJ Donator
Intel Nvidia
Mike0001 is offline
 
Join Date: Aug 2007
Last Online: Yesterday 05:19 PM
Posts: 1,149
iTrader: (0)
Mike0001 is on a distinguished roadMike0001 is on a distinguished road
Default

Help with bad code :(


Originally Posted by Breaker3D View Post
I'm new to this whole scene and wondered if anyone could help with quite a few errors I now have in my code. Thanks

<Link hidden. Register for free to see this link!>


All this means is that the attributes you are using do not exist in XHTML (Strict).

For instance if you said:

<img roadsurface="asphalt" />
in HTML then the element img does not define an attribute roadsurface.


In general, you need a copy of the XHTML strict spec, which you can get from <Link hidden. Register for free to see this link!> and then just keep to it! If you want to be lax, don't use the strict version. Use transitional instead. If that doesn't solve the problem, you are using tags and attributes that have been invented by morons at Microsoft or the former Netscape, which only work in their own browsers. An example is
<font>
, which appears in no standard for anything! use
style="..."
instead or a stylesheet and a class.

As for the rest, tags must be nested correctly, so

<a><b> <c/><b><a>
is ok, but

<a><b><c></a></d></b>
is certainly not!
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...

Last edited by Mike0001 : 04-04-2008 at 09:28 AM.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #3  
Old 06-04-2008, 12:32 PM
Breaker3D's Avatar
CJ Member
 
Breaker3D is offline
 
Join Date: Feb 2008
Last Online: 12-05-2008 09:12 PM
Posts: 28
iTrader: (0)
Breaker3D is on a distinguished road
Default

Help with bad code :(


Right then, still a bit confused. There's something wrong with it because it's not displaying correctly in dreamweaver, which is making it quite hard to edit my site. I get this error on screen which says: </div> invalid markup. Thanks for the help.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #4  
Old 06-04-2008, 05:09 PM
spot's Avatar
spot  Wales
CJ Donator
Intel Nvidia
spot is offline
 
Join Date: Feb 2008
Last Online: 29-06-2008 04:34 PM
Posts: 525
iTrader: (0)
spot is on a distinguished roadspot is on a distinguished road
Default

Help with bad code :(


I can get it clean.

I changed the header to html4.01 transitional

I replaced all the space slash > with >

I removed all the </input>

There's two <form statements, I took out the GET

There's two </form>s and I took out the first of them

I dropped a border="0" from alt="PayPal - The safer, easier way to pay online."

The edited validated version is at <Link hidden. Register for free to see this link!> but I'm not suggesting you use it, just that it's clean so you can compare it back. I've no dea whether it works the way you intend it to.
__________________

My System: Tim

CPU(s):
Athlon 64 3500+
Motherboard:
Asus A8N-VM CSM
RAM:
Corsair PC3200 CL2 DDR-400 2GB
Graphics Card(s):
nVidia Geforce 6600 512MB
Sound Card:
Cherry RS 6000 M keyboard
Hard Drive(s):
Barracuda.7+ 2x200GB 58MB/s sustained
Optical Drive(s):
Samsung DVD-ROM TS-H352
Case / PSU:
Thermaltake Soprano
Cooling:
Stock
Network / Internet:
Telewest 2x20Mb/sec
Monitor(s):
SXGA flat panel
Operating System(s):
Slackware (2.6.24.3) (Fluxbox) (bash)

Want your system info in your signature?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #5  
Old 06-04-2008, 07:41 PM
Breaker3D's Avatar
CJ Member
 
Breaker3D is offline
 
Join Date: Feb 2008
Last Online: 12-05-2008 09:12 PM
Posts: 28
iTrader: (0)
Breaker3D is on a distinguished road
Default

Help with bad code :(


Wow that's great. Works superbly, not getting any errors in dreamweaver, looks very clean. Think I will most definately use this. Thanks alot for the help :)

Last edited by Breaker3D : 06-04-2008 at 07:41 PM.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #6  
Old 07-04-2008, 07:40 AM
Mike0001's Avatar
CJ Donator
Intel Nvidia
Mike0001 is offline
 
Join Date: Aug 2007
Last Online: Yesterday 05:19 PM
Posts: 1,149
iTrader: (0)
Mike0001 is on a distinguished roadMike0001 is on a distinguished road
Default

Help with bad code :(


Originally Posted by Breaker3D View Post
Wow that's great. Works superbly, not getting any errors in dreamweaver, looks very clean. Think I will most definately use this. Thanks alot for the help :)
Don't feel too confident though, as Dreamweaver sometimes introduces errors like this into the html!
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #7  
Old 07-04-2008, 08:14 AM
spot's Avatar
spot  Wales
CJ Donator
Intel Nvidia
spot is offline
 
Join Date: Feb 2008
Last Online: 29-06-2008 04:34 PM
Posts: 525
iTrader: (0)
spot is on a distinguished roadspot is on a distinguished road
Default

Help with bad code :(


I just went to download Dreamweaver since it's cropped up twice this week. It costs $400 to register an online copy! What on earth is it, the world's first Artificial Intelligence? It's an odd thing to buy, it strikes me. It sits between the user and his website and mediates what the user wants to achieve, to the extent that one has to learn the Dreamweaver package in order to generate a website. I'd have thought it would be both easier and more satisfying to learn the component web languages.

I'm sure I've got the wrong end of the stick, if someone can explain why Dreamweaver is a benefit I'd be grateful. I'm sure it's faster to implement a website than writing a one from scratch but nobody ever does that whatever approach they take to building one, everybody re-uses existing code. I used to get annoyed at Frontpage too. I even met someone once who saved some pages from Word as HTML and then asked me how to add things to it!
__________________

My System: Tim

CPU(s):
Athlon 64 3500+
Motherboard:
Asus A8N-VM CSM
RAM:
Corsair PC3200 CL2 DDR-400 2GB
Graphics Card(s):
nVidia Geforce 6600 512MB
Sound Card:
Cherry RS 6000 M keyboard
Hard Drive(s):
Barracuda.7+ 2x200GB 58MB/s sustained
Optical Drive(s):
Samsung DVD-ROM TS-H352
Case / PSU:
Thermaltake Soprano
Cooling:
Stock
Network / Internet:
Telewest 2x20Mb/sec
Monitor(s):
SXGA flat panel
Operating System(s):
Slackware (2.6.24.3) (Fluxbox) (bash)

Want your system info in your signature?
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #8  
Old 07-04-2008, 11:46 AM
Breaker3D's Avatar
CJ Member
 
Breaker3D is offline
 
Join Date: Feb 2008
Last Online: 12-05-2008 09:12 PM
Posts: 28
iTrader: (0)
Breaker3D is on a distinguished road
Default

Help with bad code :(


Well in my case dreamweaver is good because I just wanted a simple site which I could upload easily but the software provided by the host was terrible and didn't work at all.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #9  
Old 08-04-2008, 08:21 AM
Mike0001's Avatar
CJ Donator
Intel Nvidia
Mike0001 is offline
 
Join Date: Aug 2007
Last Online: Yesterday 05:19 PM
Posts: 1,149
iTrader: (0)
Mike0001 is on a distinguished roadMike0001 is on a distinguished road
Default

Help with bad code :(


Originally Posted by spot View Post
I just went to download Dreamweaver since it's cropped up twice this week. It costs $400 to register an online copy! What on earth is it, the world's first Artificial Intelligence? It's an odd thing to buy, it strikes me. It sits between the user and his website and mediates what the user wants to achieve, to the extent that one has to learn the Dreamweaver package in order to generate a website. I'd have thought it would be both easier and more satisfying to learn the component web languages.

I'm sure I've got the wrong end of the stick, if someone can explain why Dreamweaver is a benefit I'd be grateful. I'm sure it's faster to implement a website than writing a one from scratch but nobody ever does that whatever approach they take to building one, everybody re-uses existing code. I used to get annoyed at Frontpage too. I even met someone once who saved some pages from Word as HTML and then asked me how to add things to it!
Spot is spot on! If you want to use a gui rather than a text editor, download <Link hidden. Register for free to see this link!>

Don't expect standards-compliant code from commercial packages. <Link hidden. Register for free to see this link!> is worth investigating.
__________________
I think I am a signature, therefore I exist!
I believe a higher being has me as a signature...
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote

Please support this forum, donate towards our running costs.


Reply


Thread Tools

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with bad website code Keys767 Web Design & Programming 20 21-03-2008 11:23 PM
Code 10 lynne9999 Sound, Speakers & MP3 Players 7 31-01-2008 04:07 AM
WEP Code. ComputerGuy Networking, Modems & VoIP 4 20-01-2008 10:59 PM
does anyone know the php code for a rollover vikp l Web Design & Programming 2 27-10-2007 07:14 AM
error code 007 hendoc Windows Operating Systems 1 09-06-2007 02:09 AM



Copyright ©2006 - 2008 Computer Juice - Forums - Free PC Help, Support and Repairs.

Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc.