by Kuma
6 replies
Can somebody help to let me know how I can integrate a line of javascript in my index.php:
<script src="popup/popup.js" type="text/javascript"></script>
I think it must be done with the echo construct???
Any help is welcome.
#javascript #php
  • Profile picture of the author blam
    Code:
    <?
    //something code
    ?>
    <script src="popup/popup.js" type="text/javascript"></script>
    <?
    //php continue ...
    ?>
    Signature

    net worker

    {{ DiscussionBoard.errors[1722953].message }}
  • Profile picture of the author Kuma
    Thanks blam - but that won´t work...
    {{ DiscussionBoard.errors[1723124].message }}
  • Profile picture of the author blam
    hmm, strangely
    php.net/manual/en/language.basic-syntax.phpmode.php
    Signature

    net worker

    {{ DiscussionBoard.errors[1723165].message }}
  • Profile picture of the author mattalways
    PM me your source code... I'm guessing you're adding the code in the wrong spot, or without \" on your quotes with a print or echo?
    Signature

    Quit wasting your money! If you need a website, get me to do it right! I'll probably even do it for less! Design/Development/Software, I'm your guy! matt@snidge.com
    {{ DiscussionBoard.errors[1724110].message }}
    • Profile picture of the author Kuma
      @blam
      It is working now! Mea culpa- forgot to rename the .js file!

      @mattalways

      thank you very much for your kindness
      Best regards and have a nice day
      Kuma
      {{ DiscussionBoard.errors[1725162].message }}
  • Profile picture of the author kaido
    PHP Code:
    echo '<script type="text/javascript"></script>'
    Signature

    {{ DiscussionBoard.errors[1759707].message }}

Trending Topics