Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

tep_image_button problem with Internet Explorer


ApollonE

Recommended Posts

Hello to all

 

I have a problem with internet explorer i think is some kind of bug with tep_image_button i can't click the buttons in shopping cart and everywhere with tep_image_button code, tep_image_submit works fine but it's only for forms. Can i change something to fix that?

 

In Mozila Firefox all is ok.

 

Thanks

Link to comment
Share on other sites

It will be problems with your code, there is no issue with that in the core.

 

The problem is usually due to failing to close foms correctly.

 

 

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

when i'm select the button i can't click it but when i'm trying to push the ENTER button works ok in internet explorer

why that

 

a solution please.

 

thanks

code from html_outputif anyone knows about that

 

function tep_image_button($image, $alt = '', $parameters = '', $oscOrig = false) {
   global $language;

if($oscOrig == true){
  return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
}else{
  if(!tep_browser_detect('MSIE')){
	$image_button = '<table border="0" cellpadding="0" cellspacing="0"><tr>';
	$image_button .= '<td><img src="'. DIR_WS_IMAGES . 'az_button1_left.gif" border="0" align="absmiddle" /></td>';
	$image_button .= '<td valign="middle" class="az_button" style="vertical-align:middle;">'.$alt.'</td>';
	$image_button .= '<td><img src="'. DIR_WS_IMAGES . 'az_button1_right.gif" border="0" align="absmiddle" /></td>';
	$image_button .= '</tr></table>';
  }else{
	$image_button = '<div class="az_button" style="display:inline;">';
	$image_button .= '<img src="'. DIR_WS_IMAGES . 'az_button1_left.gif" border="0" align="absmiddle" />';
	$image_button .= $alt;
	$image_button .= '<img src="'. DIR_WS_IMAGES . 'az_button1_right.gif" border="0" align="absmiddle" />';
	$image_button .= '</div>';
  }
  return $image_button;
}
 }

Link to comment
Share on other sites

Sam is right.

 

Usually when a button doesn't work it's because your form tags are screwed.

 

But the problem isn't in the code you posted.

 

I'd need your URL to help any further.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Is this IE8 you're using? If so, try switching the browser to "emulate IE7 mode" and see if it works then. If it does, the problem is that code written for "MSIE" is expecting to do things the "wrong way" for IE6 and 7. Unfortunately, IE8 by default now is fairly standards-compliant (acts like Firefox or Opera), which often breaks code written for older IE versions.

 

If it works with IE7 emulation, find a way to add the following meta tag to all pages:

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

 

If this doesn't do it, the problem is elsewhere.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...