Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Click to enlarge


Guest

Recommended Posts

Posted

I am getting a runtime error when I click the image to enlarge it!

 

I have searched to try and find an answer but didnt see one!

 

any ideas? Only contrib I have is the STS one... It was working after that but who knows when it stopped working

 

could it be because different items are using the same image?

 

thanks for the help in advance...

Posted

It appears as though your product_info.php file is not generating the javascript for the popup window.

 

Look at product_info.php right after the <link rel........> line around line 27 and make sure the following code is there.

<script language="javascript"><!--

function popupWindow(url) {

  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,

menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,

screenX=150,screenY=150,top=150,left=150')

}

//--></script>

 

HTH

Tom

  • 1 month later...
Posted

:huh: I am having the same problem , I have checked for missing javascript, but its there so I don't know why it should have an error. Help!

Posted

Camille,

 

Is the javascript showing in the HTML source if you view it from your browser? What kind of error is it? What browser/OS? Reproducible on other browser/OS combinations?

 

Someone might be able to look into this more if you posted a link to your osCommerce site, particularly to one of the pages that is throwing the error.

 

Hth,

Matt

  • 1 month later...
Posted

Hi guys,

I had this problem yesterday and it took me ages to sort it out!

I found the javascript function call was there, but the function declaration was not. Which was confusing, as the original code (before parsing in STS) contained the required function declaration. The cure - which may not be a panacea for everyone's problem - is actually this...

 

Did you remove that commented bit at the top that you thought didn't do anything?

The <-- $headcontent--> bit?

 

Put it back.

 

If that ain't it, sorry. Best I can do!

 

Nik

Archived

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

×
×
  • Create New...