"script src" alternative ?

Discussion in 'JavaScript' started by Mackos, Jul 9, 2011.

  1. #1
    Hello!
    I have script that is called from other websites by
    <script src="mywebsite.php"></script>
    HTML:
    And in this website I want also put jquery library and something more how can I do it?
    I tried
    
    document.write('
    <script src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js\" type=\"text/javascript\"></script>
    <script type=\"text/javascript\" src=\"http://localhost/mywebsite.js\">document.submit();</script>
    
    HTML:
    But no luck.
     
    Mackos, Jul 9, 2011 IP