Home » Forum
NoNumber!

Joomla!® Websites & Extensions
development  -  support  -  consultancy

I try to respond within 48 hours (excluding weekends).
If I haven't responded by then, feel free to post a reminder or bug me via email.

My last reply was: 17 Hours, 5 Minutes ago.

Welcome, Guest
Please Login or Register.    Lost Password?

2 JS in article, but only 1 runs?
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: 2 JS in article, but only 1 runs?
#7353
2 JS in article, but only 1 runs? 1 Year, 11 Months ago  
I'm trying to add 2 flash videos to a page via java script. When I put 1 on the page it works just fine. When I put both on the page only the first one alphabetically plays regardless of which one is first on the page.

click2grow.com/video-marketing.html

/media/video/MassageByJJ.FLV is the first one on the page, but when I put both java script codes in the same article only this one Plays:

/media/video/bellwether.FLV

Right now both JS code has been inserted using sourcer and I get the same problem. I contacted my hosting company and they said I'm missing a plugin for joomla to make them both run. That's when I tried sourcer and I'm still stuck.
Joshua McDonald
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
#7372
Re: 2 JS in article, but only 1 runs? 1 Year, 11 Months ago  
There is often a problem with placing multiple flash files on a page, because the script that runs them see them as the same.
Try using var so1 for the first and var so2 for the second...
(and change the so.write to so1.write and so2.write)
Peter van Westen
Admin
Posts: 9165
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
Need to contact me directly? Go to my contact page.
If you use any NoNumber! extensions, please post a rating and a review at the Joomla! Extensions Directory.
Are you happy with the support? Please consider buying a License Code to help me to continue development and support.
 
#7387
Re: 2 JS in article, but only 1 runs? 1 Year, 11 Months ago  
Peter, thanks so much for the quick reply. I tried what you suggested and it got the first one on the page to play instead of the last, but still not both. So I decided to change gears and just create a playlist instead of having two separate videos on the page. That seems to be working pretty well for me. Thanks again.
Joshua McDonald
Posts: 2
User OfflineClick here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
Moderators: Peter van Westen
hosting joomla
MaxCDN | Content Delivery Network | Accelerate your site to the max
Open Source Training | Online Joomla! Training and Support