473,396 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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="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
2 1778
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yabba | last post by:
How can I differentiate 2 windows on the same machine opened to the same .asp session??? Client-side Javascript is fine and I don't need to worry about anyone defeating it. I info as to *HOW*...
1
by: bob | last post by:
Hi Everyone, I've tried looking at loads of sites but none have helped me so I hope someone here can. I'm bringing up a webpage with a table which i want to send to excel via a button without...
13
by: Richard H | last post by:
Hi, I am building a site for a client which has an enquiry form on it. Normally I would something like PHP to send the form but the client doesn't want to pay for a server that supports PHP, so...
1
by: mhawkins19 | last post by:
I have a form built and on the onclick event I validate all of the fields and then if the form is ok, on the submit event I run a javascript function to set a cookie and download a file from the...
4
by: dysfunctional | last post by:
Hi there, I'm a complete zero at javascript in need of a hero. I run a free, non-commercial site which includes a searchable database of hotels in Morocco. Find the page at...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: Lisa Pearlson | last post by:
Hi, My php application (on Apache/Linux) needs to do the following: The PHP script receives a request from a client (binary), asking for certain records of data. My PHP script loops through...
1
by: 1388-2/HB | last post by:
Is JavaScript able to send/listen for data on a specific port? I'm seeking a solution to real time data interaction with my web server that doesn't require refreshing the page. I.e., a chat room,...
4
by: Thomas Eichner | last post by:
Hi, does anybody know a public website which offers a service that displays all data send by a browser (or an app calling the website), especially HTTP GET and POST data, browser data etc.? I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.