[Skip to main content](#vessel-content)

#   javascript in product page

##

- **[loling](/forum/user/989-loling "View loling's Profile")**
- [![loling's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/989-loling "View loling's Profile") Topic Author
- [ Offline](/forum/user/989-loling)

Less More

- Posts: 51
- Thank you received: 0
-
-

15 years 7 months ago [\#13417](#13417) by [loling](/forum/user/989-loling "View loling's Profile")  *[javascript in product page](/forum/4-how-to/13417-javascript-in-product-page#13417 "Hi  Can we put javascript in product page?? As parts of product description.. I'm trying to make poduct FAQ which only questions will appear.. User may see the answer by clicking the question.. I'm using method from here   www.willmaster.com/blog/css/show-hide-div-layer.php  If i copy codes and paste them as html file, it works nicely. However it doesn't work when i pasted codes to product page-main information (I had toggle editor as html)  Help please")* was created by *[loling](/forum/user/989-loling "View loling's Profile")*

Hi

Can we put javascript in product page?? As parts of product description..
I'm trying to make poduct FAQ which only questions will appear.. User may see the answer by clicking the question..
I'm using method from here [ www.willmaster.com/blog/css/show-hide-div-layer.php](http://www.willmaster.com/blog/css/show-hide-div-layer.php)

If i copy codes and paste them as html file, it works nicely. However it doesn't work when i pasted codes to product page-main information (I had toggle editor as html)

Help please

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzNDE3LWphdmFzY3JpcHQtaW4tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 7 months ago [\#13470](#13470) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: javascript in product page](/forum/4-how-to/13417-javascript-in-product-page#13470 "Hi  Can we put javascript in product page?? As parts of product description.. I'm trying to make poduct FAQ which only questions will appear.. User may see the answer by clicking the question.. I'm using method from here   www.willmaster.com/blog/css/show-hide-div-layer.php  If i copy codes and paste them as html file, it works nicely. However it doesn't work when i pasted codes to product page-main information (I had toggle editor as html)  Help please")*

If you need to add javascript script code on the product page, you should directly add in the in product page view and not in the product description.
You can do that in the file show of the view product via the menu Display-&gt;Views.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzNDE3LWphdmFzY3JpcHQtaW4tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile")
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 7 months ago [\#13479](#13479) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: javascript in product page](/forum/4-how-to/13417-javascript-in-product-page#13479 "Hi  Can we put javascript in product page?? As parts of product description.. I'm trying to make poduct FAQ which only questions will appear.. User may see the answer by clicking the question.. I'm using method from here   www.willmaster.com/blog/css/show-hide-div-layer.php  If i copy codes and paste them as html file, it works nicely. However it doesn't work when i pasted codes to product page-main information (I had toggle editor as html)  Help please")*

Hi loling,

You might want to look at Tabs &amp; Slides module from Joomla Works. It works nicely inside a product description and you don't need to hack any code. I'm not sure that will fit your need, but from what you've said, it should work. I'm using both the tabs and the slides in product descriptions in a current project and have run into only one conflict when using Characteristics, but Nicolas gave me a fix for that.

Regards,
Ed

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzNDE3LWphdmFzY3JpcHQtaW4tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[hdracing](/forum/user/742-hdracing "View hdracing's Profile")**
- [![hdracing's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar742.jpg)](/forum/user/742-hdracing "View hdracing's Profile")
- [ Offline](/forum/user/742-hdracing)

Less More

- Posts: 242
- Thank you received: 0
-
-
- [](http://www.HighDesertVideo.com)
-

15 years 7 months ago -  15 years 7 months ago [\#13480](#13480) by [hdracing](/forum/user/742-hdracing "View hdracing's Profile")  Replied by *[hdracing](/forum/user/742-hdracing "View hdracing's Profile")* on topic *[Re: javascript in product page](/forum/4-how-to/13417-javascript-in-product-page#13480 "Hi  Can we put javascript in product page?? As parts of product description.. I'm trying to make poduct FAQ which only questions will appear.. User may see the answer by clicking the question.. I'm using method from here   www.willmaster.com/blog/css/show-hide-div-layer.php  If i copy codes and paste them as html file, it works nicely. However it doesn't work when i pasted codes to product page-main information (I had toggle editor as html)  Help please")*

post deleted - above post got entered twice.

Last edit: 15 years 7 months ago by [hdracing](/forum/user/742-hdracing "View hdracing's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzNDE3LWphdmFzY3JpcHQtaW4tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[loling](/forum/user/989-loling "View loling's Profile")**
- [![loling's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/989-loling "View loling's Profile") Topic Author
- [ Offline](/forum/user/989-loling)

Less More

- Posts: 51
- Thank you received: 0
-
-

15 years 7 months ago [\#13481](#13481) by [loling](/forum/user/989-loling "View loling's Profile")  Replied by *[loling](/forum/user/989-loling "View loling's Profile")* on topic *[Re: javascript in product page](/forum/4-how-to/13417-javascript-in-product-page#13481 "Hi  Can we put javascript in product page?? As parts of product description.. I'm trying to make poduct FAQ which only questions will appear.. User may see the answer by clicking the question.. I'm using method from here   www.willmaster.com/blog/css/show-hide-div-layer.php  If i copy codes and paste them as html file, it works nicely. However it doesn't work when i pasted codes to product page-main information (I had toggle editor as html)  Help please")*

thanks nicolas,, it works

i will try tabs and slides ed

![=)](/smile.gif "=)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzEzNDE3LWphdmFzY3JpcHQtaW4tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
