javascript rollover submit issue in M$IE

JavaScript and client side scripting.

Moderator: General Moderators

m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

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 »

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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

function getElem(id) &#123;  // fix for internet error 
  switch(id)&#123; 
  case 'verify': base=eval('document.'+verify); return base; break; 
  default: return (document.getElementById ? document.getElementById(id) : document.all&#1111;id]); break; 
  &#125; 
&#125;
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

ok. images and buttons becme submits... but here i make use oc cancel.....

http://www.findyourdesire.com/adddesire ... ho&fuid=48


how would you do that?

(it might say you need to login. let me know if it does. i'll copy the page code)
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

feyd wrote:

Code: Select all

function getElem(id) &#123;  // fix for internet error 
  switch(id)&#123; 
  case 'verify': base=eval('document.'+verify); return base; break; 
  default: return (document.getElementById ? document.getElementById(id) : document.all&#1111;id]); break; 
  &#125; 
&#125;
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....
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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.
Post Reply