how to send info from a php script to a server running javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • an96su@gmail.com

    how to send info from a php script to a server running javascript

    Hi,
    I'm new to php. i'm trying to send information from my php (client)
    script to a website that is running javascript.

    Here is an extract of the server's response to my initial http
    request. I need to know how to communicate further with the server.

    Thanks,
    anne


    <META name="descripti on" content="">

    <META name="keywords" content="">

    </HEAD>
    <script language="JavaS cript" type="text/javascript">
    if (top != self) top.location.re place(self.loca tion);
    </script>
    <link rel="shortcut icon" href="/system/images/mypage.ico">

    <FRAMESET
    FRAMEBORDER=0
    FRAMESPACING=0
    BORDER=0
    ROWS="90,*">
    <FRAME
    NAME="VIEW_TopF rame"

    ..........

  • Martin Mandl - m2m tech support

    #2
    Re: how to send info from a php script to a server running javascript

    On Mar 6, 6:13 am, an9...@gmail.co m wrote:
    Hi,
    I'm new to php. i'm trying to send information from my php (client)
    script to a website that is running javascript.
    >
    Here is an extract of the server's response to my initial http
    request. I need to know how to communicate further with the server.
    >
    Thanks,
    anne
    >
    <META name="descripti on" content="">
    >
    <META name="keywords" content="">
    >
    </HEAD>
    <script language="JavaS cript" type="text/javascript">
    if (top != self) top.location.re place(self.loca tion);
    </script>
    <link rel="shortcut icon" href="/system/images/mypage.ico">
    >
    <FRAMESET
    FRAMEBORDER=0
    FRAMESPACING=0
    BORDER=0
    ROWS="90,*">
    <FRAME
    NAME="VIEW_TopF rame"
    >
    .........
    Dear Anne,

    the JavaScript you posted should not harm you. It just checks if the
    page is part of a frame construct.

    It looks like that page does not hold the content you want to access,
    it just defines a frame of it's own. Have a look which pages are
    loaded there and try to use that url directly.

    Good luck
    Martin

    ------------------------------------------------
    online accounting on bash bases
    Online Einnahmen-Ausgaben-Rechnung

    ------------------------------------------------
    m2m server software gmbh


    Comment

    • Rik

      #3
      Re: how to send info from a php script to a server running javascript

      <an96su@gmail.c omwrote:
      I'm new to php. i'm trying to send information from my php (client)
      script to a website that is running javascript.
      >
      Here is an extract of the server's response to my initial http
      request. I need to know how to communicate further with the server.
      A perfect example of one of the reasons why frames are evil. You'll either
      have to check all the frame sources by parsing/matching the content of the
      return, ans send the request to all different urls, or investigate further
      what the exact url of the page is you want to communicate with.

      Communicating with pages using javascript can be very tricky: if they work
      with javascript disables, or you can figure out how to mimique the
      javascript behaviour it's OK, if javascript is actually required it's a
      nightmare, and certainly not something for a beginner.

      --
      Rik Wasmus
      Posted on Usenet, not any forum you might see this in.
      Ask Smart Questions: http://tinyurl.com/anel

      Comment

      Working...