JavaScript and client side scripting.
Moderator: General Moderators
m3rajk
DevNet Resident
Posts: 1191 Joined: Mon Jun 02, 2003 3:37 pm
Post
by m3rajk » Mon Jul 05, 2004 1:21 pm
Code: Select all
function getElem(id) { // fix for internet error
switch(id){
case 'verify': base=document.verify; return base; break;
default: return (document.getElementById ? document.getElementById(id) : document.allїid]); break;
}
}doesnt work either.
i figured hardwiring the one that needs it... but that's not working
m3rajk
DevNet Resident
Posts: 1191 Joined: Mon Jun 02, 2003 3:37 pm
Post
by m3rajk » Mon Jul 05, 2004 1:25 pm
feyd wrote: getting rollovers to work with the image is fairly simple
Code: Select all
<input type="image" src="whatever.png" onmouseover="roll(this)" onmouseout="out(this)" />i thought you meant button.. my bad.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Jul 05, 2004 1:30 pm
Code: Select all
function getElem(id) { // fix for internet error
switch(id){
case 'verify': base=eval('document.'+verify); return base; break;
default: return (document.getElementById ? document.getElementById(id) : document.allїid]); break;
}
}
m3rajk
DevNet Resident
Posts: 1191 Joined: Mon Jun 02, 2003 3:37 pm
Post
by m3rajk » Mon Jul 05, 2004 5:57 pm
feyd wrote: Code: Select all
function getElem(id) { // fix for internet error
switch(id){
case 'verify': base=eval('document.'+verify); return base; break;
default: return (document.getElementById ? document.getElementById(id) : document.allїid]); break;
}
}even that addidtion didnt work. figured it'd use that for the ones i haven't converted to make sure they work, but it's not working, so....
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Mon Jul 05, 2004 6:51 pm
you can process an onclick for it.. that's what I've done in the past. Although I still make it work, if the page get's submitted, since javascript may be off in the browser... Just make sure it has the correct name, and the script should handle it right.