Script Tag

Go down

Script Tag

Post by TamDonCo on Wed Sep 21, 2016 11:20 am

Is it possible we can catch script tag error ?

I have 1 js file but different links (2 different servers)

If link 1 has error then we load it on link 2

Code:
link 1 : <script type="text/javascript" " src="http://server1/test.js"></script>
link 2 : <script type="text/javascript" " src="http://server2/test.js"></script>
avatar
TamDonCo
Forumember

Posts : 313
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Re: Script Tag

Post by SSYT on Sat Oct 01, 2016 2:07 am

Try it ajax form to load and cache
avatar
SSYT
Forumember

Male Posts : 69
Reputation : 12
Language : RO-10, EN-3, FR-1
Location : Romania

http://help.forumgratuit.ro/forum

Back to top Go down

Re: Script Tag

Post by TamDonCo on Sat Oct 01, 2016 7:52 am

@SSYT wrote:Try it ajax form to load and cache

Does not work, the error comes before the code ... it relates to something likes Window OnError ... I need to research more
avatar
TamDonCo
Forumember

Posts : 313
Reputation : 2
Language : English

http://nhomcho.forummotion.com/

Back to top Go down

Back to top


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