The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Another Stupid Javascript question. Again. by leejam2010-03-01 18:37:15
  So, uh... what's it doing wrong? :-P by bwkaz 2010-03-01 21:53:18
Knowing that generally helps. :-)

That being said, I do see one probable error; you have an = character instead of a + character, in one of your document.write calls.

I also see another possible error: there is no <input type='name'> tag. You want type='text' instead, with the name attribute set to something that your CGI can parse out.

This is also horrible javascript style (at least IMNSHO), since your browser could *easily* be interpreting the markup that you're trying to document.write() as real markup (which ends the script tag). The workaround for this is to (if you need to put the javascript inside the HTML, and not in a separate file) put the script inside an HTML comment block. And sometimes even a CDATA block. But without knowing what it's doing wrong, I don't know if that's a problem...
[ Reply ]
    It wasn't working at all. :) by leejam2010-03-01 22:01:48
      Uh. OK, I guess. :-) (n/t) by bwkaz2010-03-01 22:12:03

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)