Reply
 
Thread Tools Search this Thread Display Modes
  #21  
Old 08-02-2012, 11:06 AM
Eugene Rimmer's Avatar
Eugene Rimmer Eugene Rimmer is offline
Ecwid Team
 
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,560
Default

Quote:
Originally Posted by Work of Your Hand View Post
Hi, so it turns out that I had an identical problem, and I put the code from https://gist.github.com/977052 into my site header. Now, on Chrome, it works every time after the first (that is, after updating the page, the first time I open it, no javascript runs, but it does work the second time), but it doesn't work at all in IE9. Any idea what the problem is?

Here is the specific product in my store that I've added javascript to the description for, if it helps.

EDIT: Turns out that it doesn't work every time after the first on Chrome - it seems to be really random whether it works or not. Still getting absolutely nothing on IE.
You shouldn't put the script from that gist into header - rather, please, place it after the code of the Ecwid widgets (safest place - just before the closing </body> of your site).
__________________
Eugene Efimochkin, Team
_________________________
Shipping methods are not showing up? Here is how to set it up properly!
Have a question? Look up the answer at our help portal!

⬇ Click Thanks, please, if this reply helped you.
Reply With Quote
The Following User Says Thank You to Eugene Rimmer For This Useful Post:
Work of Your Hand (08-02-2012)
  #22  
Old 01-09-2013, 07:43 PM
BRR Publications's Avatar
BRR Publications BRR Publications is offline
 
Join Date: Dec 2011
Posts: 6
Default Same problem with script not working

I followed the directions above for adding the gist file on my server. I have then embedded the <script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script> to audio files inside my store - CD "Love Lifted Me" http://www.billriceranch.org/store/m...
They work on the first page load, but then go to another product using the same code without reloading the store - like the very next CD "All for Thee" http://www.billriceranch.org/store/m...
and the player is still running with the previous item's songs, but doesn't refresh to the new item's files.

Any suggestions?
Reply With Quote
  #23  
Old 01-10-2013, 03:12 PM
Maya's Avatar
Maya Maya is online now
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 3,992
Send a message via Skype™ to Maya
Default

Quote:
Originally Posted by BRR Publications View Post
I followed the directions above for adding the gist file on my server. I have then embedded the <script type="text/javascript" src="http://webplayer.yahooapis.com/player.js"></script> to audio files inside my store - CD "Love Lifted Me" http://www.billriceranch.org/store/m...
They work on the first page load, but then go to another product using the same code without reloading the store - like the very next CD "All for Thee" http://www.billriceranch.org/store/m...
and the player is still running with the previous item's songs, but doesn't refresh to the new item's files.

Any suggestions?
The thing is that Ecwid.OnPageLoaded method of Javascript API is not called when customer moved between product detailed pages using navigation arrows. I have reported our engineers about it. They will solve this problem as soon as possible.

As a temporary workaround, I suggest you to disable navigation arrows as described here: http://kb.ecwid.com/w/page/51354751/...
__________________
Maria Nikiforova, Ecwid Team

------------------
Welcome to our Knowledge Base with a lot of answers, tips and receipts!

Please, rate my reply here
Reply With Quote
  #24  
Old 01-10-2013, 04:02 PM
BRR Publications's Avatar
BRR Publications BRR Publications is offline
 
Join Date: Dec 2011
Posts: 6
Default Problem not in navigation buttons only

This problem exists when clicking to the other product via the store menu above not just the arrow navigation. I have disabled the arrows as you described and the problem still exists. Thanks for working on this!
Reply With Quote
  #25  
Old 01-15-2013, 11:42 AM
Maya's Avatar
Maya Maya is online now
Ecwid Team
 
Join Date: Feb 2010
Location: Ecwid headquarter
Posts: 3,992
Send a message via Skype™ to Maya
Default

Quote:
Originally Posted by BRR Publications View Post
This problem exists when clicking to the other product via the store menu above not just the arrow navigation. I have disabled the arrows as you described and the problem still exists. Thanks for working on this!
The problem is caused by Yahoo! Player work. It loads only once - when your HTML page, where your store is installed, loaded and doesn't reloads when you move from one page to another inside your store. The thing is that, in fact, you stays inside one HTML page.

I suggest you to use another player, which can be executed each time, when new product page is loaded.
__________________
Maria Nikiforova, Ecwid Team

------------------
Welcome to our Knowledge Base with a lot of answers, tips and receipts!

Please, rate my reply here
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:23 AM.
Powered by vBulletin® Version 3.8.6. Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.