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.
The forum of the forums
2 posters

    Script Tag

    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Script Tag Empty Script Tag

    Post by TamDonCo 21/9/2016, 10:20

    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>
    SSYT
    SSYT
    Forumember


    Male Posts : 77
    Reputation : 15
    Language : RO-10, EN-3, FR-1
    Location : Romania

    Script Tag Empty Re: Script Tag

    Post by SSYT 1/10/2016, 01:07

    Try it ajax form to load and cache
    TamDonCo
    TamDonCo
    Forumember


    Posts : 427
    Reputation : 2
    Language : English

    Script Tag Empty Re: Script Tag

    Post by TamDonCo 1/10/2016, 06:52

    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

      Current date/time is 23/9/2024, 03:23