php forum
php mysql forum
php mysql smarty
 
Topic Options
#108345 - 05/29/01 04:55 PM javascript and validation woes...
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Working on validation of the template files and need a little help with this part:

Code:
code:


The validator is breaking on this, saying:
"Error: end tag for element "A" which is not open; try removing the end tag or check for improper nesting of elements" - it is giving that error for each instance of </a>.

Any idea on how to fix this? This is in public_common.pl
_________________________
- Allen wavey
- What Drives You?

Top
#108346 - 05/29/01 05:34 PM Re: javascript and validation woes...
Bob Offline
Member / Eejit

Registered: 10/31/00
Posts: 273
Sorry man, I can't really help, if I was to take a WILD guess, I would think A was reffering to the <a> tag, so, I would check your stylesheet or whatever, but, thats just a wild guess.
_________________________
If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating

Top
#108347 - 05/29/01 06:14 PM Re: javascript and validation woes...
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
RobbieB, your wild guess is wrong. smile most html validators don't validate any scripting, so you should be able to safely ignore that. what validator did you use on that?

<FONT COLOR="#000000" SIZE="1">[ May 29, 2001 06:15 PM: Message edited by: matt jacob ]</font>

Top
#108348 - 05/29/01 07:58 PM Re: javascript and validation woes...
Digital Boy Offline
Member

Registered: 05/30/00
Posts: 1871
Loc: Philadelphia
Correct me if I'm wrong, but I thought that document.writeln was a jscript function call, which is something slightly different.

Also Allen, I'd suggest that you do your form validation on the client side for faster processing. There are several ways to go about doing this, depending on what you want to accomplish.

- DB
_________________________
Matt Torbin
Web and Graphic Arts Engineer
Max Levy Autograph, Inc.
http://www.maxlevy.com/

Top
#108349 - 05/29/01 11:49 PM Re: javascript and validation woes...
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
smile Thanks everyone...

MJ, I am using http://validator.w3.org/ on our test forum.

DB, I am validating 6.1 code, don't have a lotta choice as to server/client...

This is code unchanged from here tho, if you "view source" you'll see what I mean. It's the inline javascript that checks to see if you are logged in yet, then writes that up top where it says

>> Hello, AllenAyres [ log out ]

It's in the public_common.pl file.

Just a couple of spots left to do on the main forum summary page, then I start going deeper, but getting the main page done makes the rest much easier since the code is re-used throughout.
_________________________
- Allen wavey
- What Drives You?

Top
#108350 - 05/30/01 06:34 AM Re: javascript and validation woes...
Digital Boy Offline
Member

Registered: 05/30/00
Posts: 1871
Loc: Philadelphia
Oh, CODE validation. I thought you were talking about form validation. Sorry!

- DB
_________________________
Matt Torbin
Web and Graphic Arts Engineer
Max Levy Autograph, Inc.
http://www.maxlevy.com/

Top
#108351 - 05/30/01 08:08 AM Re: javascript and validation woes...
Bob Offline
Member / Eejit

Registered: 10/31/00
Posts: 273
Quote:
quote:


well now isn't that just lovely. tipsy
_________________________
If I'm leavin' with a broken heart you're leavin' with a broken nose ... ~ Jettingham - Cheating

Top
#108352 - 06/01/01 12:38 PM Re: javascript and validation woes...
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Quote:
quote:


So, then how do you get to say it is validated code when everytime you run it through w3 it breaks on that? Link to an external .js file?
_________________________
- Allen wavey
- What Drives You?

Top
#108353 - 06/01/01 04:07 PM Re: javascript and validation woes...
Matt Jacob Offline
Master Hacker

Registered: 09/13/00
Posts: 4389
Loc: Tucson, Arizona
that would work just fine. or, just totally ignore all script validations that are showing.

Top



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks