Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Add script

Add script 21 Nov 2016 12:17 #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.

Add script 21 Nov 2016 13:18 #38862

  • ced1870
  • ced1870's Avatar
  • Away
  • Administrateur
  • Administrateur
  • Posts: 21237
  • Karma: 427
  • Thank you received: 2686
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

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

Joomlack Webmaster and Developer

Add script 22 Nov 2016 08:39 #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 :)

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

Last Edit: by anazititis.

Add script 22 Nov 2016 09:25 #38893

  • ced1870
  • ced1870's Avatar
  • Away
  • Administrateur
  • Administrateur
  • Posts: 21237
  • Karma: 427
  • Thank you received: 2686

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

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

Joomlack Webmaster and Developer

Add script 22 Nov 2016 10:41 #38895

the url is cyprusholidaysguide.com as i mention below, do you need admin access as well?

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

Last Edit: by anazititis.

Add script 22 Nov 2016 10:50 #38896

  • ced1870
  • ced1870's Avatar
  • Away
  • Administrateur
  • Administrateur
  • Posts: 21237
  • Karma: 427
  • Thank you received: 2686
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

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

Joomlack Webmaster and Developer
  • Page:
  • 1
Time to create page: 0.200 seconds

Fast and powerful creation, customizable and responsive.

Read More

Qui est en ligne

We have 381 guests and one member online