954,113 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

"<SCRIPT SRC>" javascript logon help

Ok, ive created a login script and i have saved it as login.js. See below:



Secure Area!Username:Password:

I have added the following to the page on which the login script should appear:

The script its self works, but it does not work from the login.js file. What am i doing wrong?

Greatful for any help you can give me,

NuGG

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

have you tried debugging it with an alert (to make sure the HTML is importing the script?) something like: alert("made it to such and such function"); and stick that in a function in the external.js file, and then in your HTML code, when you call the function (that is supposed to be in the external.js file) it should come up with an alert. This way, you know the browser is actually retrieving the javascript code.

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

you again?!

:)

Cheers, Ill give it a go...

NuGG
Junior Poster
111 posts since Feb 2005
Reputation Points: 10
Solved Threads: 1
 

I can remain silent if you would rather.... my name says it all. :)

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 

just a question though...does it matter to have the src="location of script" then?type="text/javascript"

also, have you tried removing the actualy from the script itself and save it to its own JS file, before that i was having issues getting it to work.

Killer_Typo
Master Poster
781 posts since Apr 2004
Reputation Points: 152
Solved Threads: 39
 

Can I make several users for this little script?
And if I can, how?

Hope it works


(And by the way, when I use it, it says on the status bar "Something's wrong on the site" How come?)

From Anders

Andy-Pandy
Newbie Poster
14 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

You're bumping a thread nearly 2 years old... it is doubtful you'll get a response from the original poster. Please start a new thread and ask your questions there.

tgreer
Made Her Cry
Team Colleague
2,118 posts since Dec 2004
Reputation Points: 227
Solved Threads: 37
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You