SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    May 2001
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    calling external program

    Hi,
    I have a php script on Site A.

    I am trying to call this php script on Site B.

    This is my code:

    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    <script  TYPE="text/javascript" language="javascript" src="http://www.SITE-A.com/folder/test.php?id=5"> </script>
    </body>
    </html>
    It keeps giving me an undefined error. Why?

    Thanks.
    unregistered1.

  2. #2
    SitePoint Wizard stereofrog's Avatar
    Join Date
    Apr 2004
    Location
    germany
    Posts
    4,324
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think it's because the text retuned by SITE-A is not a valid javascript code.

  3. #3
    SitePoint Addict
    Join Date
    May 2001
    Posts
    217
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, it is just html that is being returned.

    Can Javascript be used this way?

    unregistered.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •