Developer forum

Forum » Development » popup window

Reply

HI!

 

I'm making a webshop and the customer wants to include a click for 'larger image' function.

I'v tried this:

 

<img  onclick="shopimagereplacer(this.src);" src="<!--@Ecom:Product.ImageMedium.Clean-->"/>
 

 

but the browser gives me a javascript  error saying that the function shopimagereplacer() is not defined.

 

the tag <!--@Javascripts--> is included in my master template

 

where can I see these Javascripts?

where should the larger images be stored?

 

This is the first ecommerce page I'v made in DW, so I'm kinda just learning as I go..

 

http://eskanor.net.dynamicweb.no/

 

 

-jan

 


Replies

 
Nicolai Høeg Pedersen
Reply
jan@magentamultimedia.no wrote:

HI!

 

I'm making a webshop and the customer wants to include a click for 'larger image' function.

I'v tried this:

 

<img  onclick="shopimagereplacer(this.src);" src="<!--@Ecom:Product.ImageMedium.Clean-->"/>
 

 

but the browser gives me a javascript  error saying that the function shopimagereplacer() is not defined.

 

the tag <!--@Javascripts--> is included in my master template

 

where can I see these Javascripts?

where should the larger images be stored?

 

This is the first ecommerce page I'v made in DW, so I'm kinda just learning as I go..

 

http://eskanor.net.dynamicweb.no/

 

 

-jan

 

Hi Jan
 

 

Don't know where you found the "shopimagereplacer" function - I don't know it.

 

Could it be a feature that a site has implemented it self? Do you have a link to where it works?

 

 
Reply
np wrote:
jan@magentamultimedia.no wrote:

HI!

 

I'm making a webshop and the customer wants to include a click for 'larger image' function.

I'v tried this:

 

<img  onclick="shopimagereplacer(this.src);" src="<!--@Ecom:Product.ImageMedium.Clean-->"/>
 

 

but the browser gives me a javascript  error saying that the function shopimagereplacer() is not defined.

 

the tag <!--@Javascripts--> is included in my master template

 

where can I see these Javascripts?

where should the larger images be stored?

 

This is the first ecommerce page I'v made in DW, so I'm kinda just learning as I go..

 

http://eskanor.net.dynamicweb.no/

 

 

-jan

 

Hi Jan
 

 

 

 

 

 

Don't know where you found the "shopimagereplacer" function - I don't know it.

 

Could it be a feature that a site has implemented it self? Do you have a link to where it works?

Hi!

 

I found it in the Product_Cars.html template,under ecom/products, thought it was part of the module.
 

I guess the best way is to implement my own imageViewer aspx page. Can I place the page anywhere I like and just use the <!--@include--> tag?

 

-jan

 

 

 

 

 
Nicolai Høeg Pedersen
Reply

Hi Jan

 

You cannot use @Include, but you can use <!--@LoadControl(Files/Systems/myControl.asxc)-->.

 

Or simply add some HTML to do it.

 
Reply
np wrote:

Hi Jan

 

You cannot use @Include, but you can use <!--@LoadControl(Files/Systems/myControl.asxc)-->.

 

Or simply add some HTML to do it.


 

The simplest would probably be a html page with som javascript to load the image from a query string. And a javascript to pop up this page. Anyway, its to hot to work today :)

 

-jan

 

You must be logged in to post in the forum