The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Script Src

4 posters

Go down

Solved Script Src

Post by Kami-sama December 10th 2016, 1:05 am

Hello!

I have a very simple question.
How to/ where to add something like this:

Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

I have done this before by just adding it to templates.
Is there a way to add it to Javascript code I'm writing directly? How it would look there.

Thank you in advance!
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself


Last edited by Kami-sama on December 10th 2016, 11:53 am; edited 1 time in total
Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:19 am

Have you tried to add it to your forum's description?


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama December 10th 2016, 1:21 am

I don't use the description (deleted it).

Basically, I know that it will work if I add it to any template.
I was wondering if it can be added directly in the JQ or in the Portal widget I am using it in?
Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:24 am

Yes, you can add it to a widget.


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama December 10th 2016, 1:25 am

What about JavaScript it self?
It would seam to be the best place....
Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:28 am

What exactly does it do?


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama December 10th 2016, 1:30 am

Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:40 am

Do you see the part that starts with the dollar sign and the last part that end with the }); that is the JavaScript.


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama December 10th 2016, 1:43 am

Lol Yeah Very Happy I understand.

What I meant was, the JavaScript page in forumotion admin panel Very Happy

lol
Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:44 am

That is what you would add.


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:45 am

The only thing is that if you add it through JavaScript it will effect all hide/show buttons, including the one in the text editor.


Last edited by SLGray on December 10th 2016, 1:45 am; edited 1 time in total


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Draxion December 10th 2016, 1:45 am

HI there,

You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:46 am

The only thing is that it effects all hide/show buttons on the forum.


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Draxion December 10th 2016, 1:48 am

SLGray wrote:The only thing is that it effects all hide.show buttons on the forum.

The code that she showed, yes, but I am talking about this one.
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

All this does is allow all JQuery functions as a plug-in, it's not the show/hide effect itself.
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama December 10th 2016, 1:49 am

Draxion wrote:HI there,

You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

Oh great! Good to know that.
But talking in general, IF I want to install something it is best to do in the code/templates?
Or can I add the source like this to JavaScript page?
Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:50 am

Draxion wrote:
SLGray wrote:The only thing is that it effects all hide.show buttons on the forum.

The code that she showed, yes, but I am talking about this one.
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

All this does is allow all JQuery functions as a plug-in, it's not the show/hide effect itself.
But when I added it to my forum, the hide/show button in the text editor was open.


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Draxion December 10th 2016, 1:52 am

SLGray wrote:
Draxion wrote:
SLGray wrote:The only thing is that it effects all hide.show buttons on the forum.

The code that she showed, yes, but I am talking about this one.
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

All this does is allow all JQuery functions as a plug-in, it's not the show/hide effect itself.
But when I added it to my forum, the hide/show button in the text editor was open.

If you added the JQuery plug-in manually on your site, it isn't necessary since the plug-in is already in the default coding. It would just make other Jquery functions malfunction. If that hasn't to you yet, you are lucky. hah
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Script Src

Post by Draxion December 10th 2016, 1:52 am

Kami-sama wrote:
Draxion wrote:HI there,

You don't need to install this anywhere on the site since Forumotion uses JQuery by default.
Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

Oh great! Good to know that.
But talking in general, IF I want to install something it is best to do in the code/templates?
Or can I add the source like this to JavaScript page?

Yes, you can put the source in JavaScript but you need to specify where you want it to target.
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Script Src

Post by SLGray December 10th 2016, 1:53 am

I mean this:


Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>


Script Src Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Script Src

Post by Draxion December 10th 2016, 1:55 am

SLGray wrote:I mean this:


Code:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>

Yes, I know. That is the plug-in that allows all JQuery functions to function. Without it, no JQuery codes would work.
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: Script Src

Post by Kami-sama December 10th 2016, 11:52 am

Thank you all!

This is RESOLVED
Kami-sama
Kami-sama
Forumember

Female Posts : 407
Reputation : 12
Language : EN, RU, DE, LT
Location : Lithuania

http://hogas.huhohi.com/

Back to top Go down

Solved Re: Script Src

Post by Nemo December 10th 2016, 12:17 pm

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
Nemo
Nemo
Active Poster

Male Posts : 1203
Reputation : 119
Language : Greek, English, French

http://www.helpgr.forumgreek.com

Back to top Go down

Back to top

- Similar topics

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