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 10/12/2016, 03:05

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 10/12/2016, 13:53; 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 10/12/2016, 03:19

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 : 51489
Reputation : 3519
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 10/12/2016, 03:21

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 10/12/2016, 03:24

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 : 51489
Reputation : 3519
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 10/12/2016, 03:25

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 10/12/2016, 03:28

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 : 51489
Reputation : 3519
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 10/12/2016, 03:30

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 10/12/2016, 03:40

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 : 51489
Reputation : 3519
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 10/12/2016, 03:43

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 10/12/2016, 03:44

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 : 51489
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Script Src

Post by SLGray 10/12/2016, 03:45

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 10/12/2016, 03:45; 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 : 51489
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Script Src

Post by Draxion 10/12/2016, 03:45

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 10/12/2016, 03:46

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 : 51489
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Script Src

Post by Draxion 10/12/2016, 03:48

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 10/12/2016, 03:49

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 10/12/2016, 03:50

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 : 51489
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Script Src

Post by Draxion 10/12/2016, 03:52

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 10/12/2016, 03:52

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 10/12/2016, 03:53

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 : 51489
Reputation : 3519
Language : English
Location : United States

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

Back to top Go down

Solved Re: Script Src

Post by Draxion 10/12/2016, 03:55

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 10/12/2016, 13:52

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 10/12/2016, 14:17

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