By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,366 Members | 1,366 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,366 IT Pros & Developers. It's quick & easy.

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

P: n/a
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="description" content="">

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

</HEAD>
<script language="JavaScript" type="text/javascript">
if (top != self) top.location.replace(self.location);
</script>
<link rel="shortcut icon" href="/system/images/mypage.ico">

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

..........

Mar 6 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Mar 6, 6:13 am, an9...@gmail.com 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="description" content="">

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

</HEAD>
<script language="JavaScript" type="text/javascript">
if (top != self) top.location.replace(self.location);
</script>
<link rel="shortcut icon" href="/system/images/mypage.ico">

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

.........
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
http://www.ea-geier.at
------------------------------------------------
m2m server software gmbh
http://www.m2m.at

Mar 6 '07 #2

P: n/a
Rik
<an****@gmail.comwrote:
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
Mar 6 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.