The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

How to apply javascript to specific forumotion pages?

View previous topic View next topic Go down

Solved How to apply javascript to specific forumotion pages?

Post by GAT:TEA on Wed Mar 07 2012, 05:29

Hello, I came across a topic on another support forum regarding selectors for forumotion pages. I was wondering how can we apply javascript to these pages? It's simple for pages like the homepage as you just tick the checkbox, but for something that requires if(document.url) or if(document.getElementbyId) is there no option?


Last edited by GAT:TEA on Wed Mar 07 2012, 07:21; edited 1 time in total

GAT:TEA
Forumember

Female Posts : 71
Reputation : 13
Language : English
Location : Chicago

Back to top Go down

Solved Re: How to apply javascript to specific forumotion pages?

Post by ankillien on Wed Mar 07 2012, 05:32

Hi,

You can do it by adding javascript to all pages. The script should be able to check current page URL and decide whether to run on that page or not.

ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

http://www.webartzforum.com/

Back to top Go down

Solved Re: How to apply javascript to specific forumotion pages?

Post by GAT:TEA on Wed Mar 07 2012, 07:12

Alright, thank you very much,ankillien , you've been very helpful. This is solved.

GAT:TEA
Forumember

Female Posts : 71
Reputation : 13
Language : English
Location : Chicago

Back to top Go down

Solved Re: How to apply javascript to specific forumotion pages?

Post by SLGray on Wed Mar 07 2012, 07:32

Topic Solved & Locked




When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36648
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum