Javascript random quotes - why can't I have two of them?

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

Javascript random quotes - why can't I have two of them?

Post by alan_sh »

I'm using the ready-to-use javascripts to have randon quotes displayed when the page loads.

No issues if I just have one on a page. But if I have two (I copied one to create the second), only one of the, shows up when I review or publish.

They have different ID's. So, is this a limitation? or is it something I've done?

Alan
User avatar
BaconFries
 
 
Posts: 5867
Joined: Thu Aug 16, 2007 7:32 pm

Re: Javascript random quotes - why can't I have two of them?

Post by BaconFries »

They have different ID's. So, is this a limitation? or is it something I've done?
The limitation is you can only have one script (javascript) per page. So no you haven't done anything wrong.
User avatar
Pablo
 
Posts: 23222
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Javascript random quotes - why can't I have two of them?

Post by Pablo »

You are correct, some scripts can only be used once per page.
Note that this is also documented in the help.
alan_sh
 
 
Posts: 1820
Joined: Tue Jan 01, 2019 5:50 pm

Re: Javascript random quotes - why can't I have two of them?

Post by alan_sh »

Thanks

Alan
Post Reply