Javascript Question

General ShopSite user discussion

Javascript Question

Postby Jason Price » Tue Aug 09, 2005 8:58 am

Hello -

I have a page template that is looping items that use a product template.

The product template will have a link that uses a javascript.

Where do I need to place the Javascript code in th HEAD of my product
template or my page template?

Basically I am just trying to call up a pop up window.

Thanks -

Jason
Jason Price
 

Re: Javascript Question

Postby jim » Tue Aug 09, 2005 9:22 pm

There is no "HEAD" for product templates (unless it is in the moreinfo
section) so the code should probably be in the Page template. Also if
you put it in the product template it would be included once for every
product on the page which probably isn't what you want.

Jim

Jason Price wrote:
Hello -

I have a page template that is looping items that use a product template.

The product template will have a link that uses a javascript.

Where do I need to place the Javascript code in th HEAD of my product
template or my page template?

Basically I am just trying to call up a pop up window.

Thanks -

Jason
jim
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 55 guests

cron