Jump to content

knimbus

Members
  • Posts

    53
  • Joined

  • Last visited

Everything posted by knimbus

  1. Error: getElementById is not definedSource File: http://knimbus.com/Line: 92well, thats the error...the line I put in instead of the alert line wasgetElementById('fw-paragraph').innerHTML="Welcome back " + username + "!";As I said i am new to all of this so if someone would like to use the link in the error to check the paragraph id for me i would be thankful.
  2. OK, ill try that Mr, fluent in Java but not too sure guy.
  3. Hi, I am very new too Javascript and I started reading the tutorial on this site... I really like the idea of the welcome cookie so I copied the code into notepad and edited it so as instead of it displaying as alert("Welcome back '+username+'!") (I have not included curly brackets for if statement) it would display as document.write("Welcome back '+username+'!") I hoped that this would make the message appear in the paragraph I wrote the html into (I am using the freewebs sitebuilder) but it meant that after I set the cookie i would get the message from the site, but on a blank page. Can someone point me in the right direction please?Also, I can't try it now (unless i cleared my cookies) but I am sure my alert box to set the cookie looked different, but maybe thats because I was using I.E to test.
×
×
  • Create New...