Add script

Add script was created by anazititis

Posted 7 years 5 months ago #38858
Hi,
i created a page with page creator and added on it four horizontal tabs, how can i insert a script in a tab?
The script is an affiliate link for Hotels Combined (a search box).
I use the JCE editor, and what i did, was to switch editor to Source Code Editor and insert the script. On the back end of the JCE editor i can now see the script, but i cannot see it on the front end.
Thanks and regards from Cyprus.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Add script

Posted 7 years 5 months ago #38862
Hi
in the page options, check that you enabled the "content plugins" option to YES
this will trigger the content plugins in the page
CEd

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by anazititis on topic Add script

Posted 7 years 5 months ago #38892
Hi Cedric,
thank you for your answer,
i enabled the content plugins, but still i have problem. I cannot see the text link on top of the page [TOGGLE EDITOR} and so i cannot insert the script. To fix this, i installed the free version of the sourcerer plugin by (ex NoNumber) Regular Labs. I can now see a blank area in the tab but not the search box.
My website is cyprusholidaysguide.com, you can see this at the top of the page, while at the bottom of the page i added the javascript directly into the page from the page's JCE editor, (as i can see and use the toggle editor link) and so the search box looks and works perfectly at the bottom of the page. Any ideas much appreciated :)
Last Edit:7 years 5 months ago by anazititis
Last edit: 7 years 5 months ago by anazititis.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Add script

Posted 7 years 5 months ago #38893

I can now see a blank area in the tab but not the search box.

give me the page url where it is loade in the page
this is a problem when using tabs,the scripts have some difficulties to initialize but this shall be fixed in the script, not in the tabs

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Replied by anazititis on topic Add script

Posted 7 years 5 months ago #38895
the url is cyprusholidaysguide.com as i mention below, do you need admin access as well?
Last Edit:7 years 5 months ago by anazititis
Last edit: 7 years 5 months ago by anazititis.

Please Log in or Create an account to join the conversation.

Replied by ced1870 on topic Add script

Posted 7 years 5 months ago #38896
ok my bad :)
I see the tabs lol

in the source code I see this

document.write(" www.hotelscombined.com/SearchBox/122744 " >);

in script tags, so your script is loaded
I can not do more here as the problem is not related to the tabs, but to the way it is loaded
try to load it on domready, or add a event trigger on the tab to launch the instance of your script

Joomlack Webmaster and Developer

by ced1870

Please Log in or Create an account to join the conversation.

Time to create page: 0.768 seconds

Fast and powerful creation, customizable and responsive.

Read More

We have 660 guests and no members online