473,903 Members | 3,244 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Passing information to another page.

Hello,

I am doing this:

window.location ="page2.php?sub j="+subj+"&body ="+body;

to send information to another page.

However, I don't want that second page to show up or display in any way.
There is only behind-the-scenes work going on in that page.

How do I pass the information to that page so that it is only processed and
does not launch a window?

Thanks!
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Get freeware
http://www.vbmark.com
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Sep 8 '05 #1
10 2482

"vbMark" <no@email.com > wrote in message
news:Xn******** ************@19 9.45.49.11...
Hello,

I am doing this:

window.location ="page2.php?sub j="+subj+"&body ="+body;

to send information to another page.

However, I don't want that second page to show up or display in any way.
There is only behind-the-scenes work going on in that page.

How do I pass the information to that page so that it is only processed
and
does not launch a window?


use an iframe or frame to process a page server side.
Sep 8 '05 #2
"Zoe Brown" <zo***********@ N-O-S-P-A-A-Mtesco.net> wrote in message
news:U_******** **********@news fe1-gui.ntli.net...

"vbMark" <no@email.com > wrote in message
news:Xn******** ************@19 9.45.49.11...
Hello,

I am doing this:

window.location ="page2.php?sub j="+subj+"&body ="+body;

to send information to another page.

However, I don't want that second page to show up or display in any way.
There is only behind-the-scenes work going on in that page.

How do I pass the information to that page so that it is only processed
and
does not launch a window?


use an iframe or frame to process a page server side.


Or Ajax...

--
Dag.
Sep 8 '05 #3
Dag Sunde wrote:
How do I pass the information to that page so that it is only processed
and does not launch a window?
use an iframe or frame to process a page server side.
Or Ajax...


The joy of buzzwords. That is an Ajax technique. (Not so common as using
XMLHttpRequest, but better supported).

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 8 '05 #4
"David Dorward" <do*****@yahoo. com> wrote in message
news:df******** ***********@new s.demon.co.uk.. .
Dag Sunde wrote:
How do I pass the information to that page so that it is only processed
and does not launch a window? use an iframe or frame to process a page server side.

Or Ajax...


The joy of buzzwords. That is an Ajax technique. (Not so common as using
XMLHttpRequest, but better supported).


Er... And the difference is?

;-)

Using an iframe or frame is in my world a predecessor to what we call
Ajax today.

Ajax is just an acronym for " Asynchronous JavaScript and XML", and a name
for a concept, while "XMLHttpRequest " is the practical implementation of
one of its parts...

So when I said Ajax, It involves setting up an "XMLHttpRequest " object and
use it to call the said server page. Heeding the response is then optional.

--
Dag.
Sep 8 '05 #5
Dag Sunde wrote:
David Dorward wrote:
Dag Sunde wrote: <snip>
use an iframe or frame to process a page server side.
Or Ajax...


The joy of buzzwords. That is an Ajax technique. (Not so
common as using XMLHttpRequest, but better supported).


Er... And the difference is?

;-)

Using an iframe or frame is in my world a predecessor to what
we call Ajax today.

Ajax is just an acronym for " Asynchronous JavaScript and XML",


So something that could be done with a frame or an iframe, though XML
would probably not be the best choice of data representation in that
context.
and a name for a concept,
And an interesting concept, that has become almost entirely submerged in
the blurring of the term into a buzzword for any use of xml http
requests. (When you see "AJAX" libraries that include the (theoretically
redundant) option to configure for synchronous loading you know that the
term has lost most of its meaning.)
while "XMLHttpRequest " is the practical
implementation of one of its parts...

So when I said Ajax, It involves setting up an
"XMLHttpRequest " object and use it to call the said
server page.
So your say that XMLHttpRequest is just part of the process (and only
one of many possibilities as a data transfer method) and then directly
equate Ajax with the use of the XMLHttpRequest object?

Given that only specific configurations of IE 5+ (the most common
browser in use) support xml http requests in a general Internet context
(those with ActiveX enabled for the Internet security zone) I would
recommend exercising extreme caution in opting for the use of xml http
request on general web sites.
Heeding the response is then optional.


If it is one-way transmission of data to the server that is required (so
the response doesn't matter and can be any nominal data), and the data
transmitted is sufficiently small to be placed on a query string for a
GET request, the assigning a new URL to the - src - of an Image object,
or IMG element, probably has the widest general support. (returning a
one pixel transparent GIF makes the process safe, invisible and
lightweight).

Richard.
Sep 9 '05 #6
Well, besides an HttpRequest, what are the other possibilities of data
transmission and specifically, what other possibilities did not exist
before the AJAX buzzword was invented? I would really like to know
because to me, it seems like incredible overkill to install Ruby and
Ruby on Rails on your server just to do something you can already do
anywhere with javascript and whatever you already have on your server.

BobG

Sep 9 '05 #7
ASM
bg*****@gmail.c om wrote:
Well, besides an HttpRequest, what are the other possibilities of data
transmission and specifically, what other possibilities did not exist
before the AJAX buzzword was invented? I would really like to know
because to me, it seems like incredible overkill to install Ruby and
Ruby on Rails on your server just to do something you can already do
anywhere with javascript and whatever you already have on your server.


url of called page :
htpp:/foo.org/p.htm?var1=hell o&var2=sir

<html>
<script type"text/javascript">
function getInfo(){
var uri = this.location.h ref
uri = uri.substring(u ri.lastIndexOf( '?')+1).toStrin g();
uri = uri.split('=');
uri = uri.join('=\"') ;
uri = uri.split('&');
uri = uri.join('\"&') ;
uri = uri+'"';
alert('new infos spelling :\n'+uri)
uri = uri.split('&');
for(var i=0;i<uri.lengt h;i++)
eval(uri[i]);
}
</script>
<a href="#"
onclick="getInf o();
alert('message =\n'+var1+' '+var2);">test</a>
</html>

--
Stephane Moriaux et son [moins] vieux Mac
Sep 9 '05 #8
Dag Sunde wrote:
use an iframe or frame to process a page server side. Or Ajax...
The joy of buzzwords. That is an Ajax technique. (Not so common as using
XMLHttpRequest, but better supported).
Er... And the difference is?
The difference between what?
Using an iframe or frame is in my world a predecessor to what we call
Ajax today.
And it others it IS what we call Ajax today. That's the problem with
buzzwords, they are usually not very clearly defined ... like DHTML.
Ajax is just an acronym for " Asynchronous JavaScript and XML", and a name
for a concept, while "XMLHttpRequest " is the practical implementation of
one of its parts...


And an iframe with some script to change its location and read its content,
is another practical implementation of one of its parts.

--
David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Sep 9 '05 #9

"David Dorward" <do*****@yahoo. com> wrote in message
news:df******** ***********@new s.demon.co.uk.. .
Dag Sunde wrote:
> use an iframe or frame to process a page server side. Or Ajax... The joy of buzzwords. That is an Ajax technique. (Not so common as using
XMLHttpRequest, but better supported).

Er... And the difference is?


The difference between what?
Using an iframe or frame is in my world a predecessor to what we call
Ajax today.


And it others it IS what we call Ajax today. That's the problem with
buzzwords, they are usually not very clearly defined ... like DHTML.
Ajax is just an acronym for " Asynchronous JavaScript and XML", and a
name
for a concept, while "XMLHttpRequest " is the practical implementation of
one of its parts...


And an iframe with some script to change its location and read its
content,
is another practical implementation of one of its parts.

Ah... sorry!

I misunderstood your first sentence. Didn't meant it to be lecturing...

:-)

--
Dag.
Sep 9 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
3276
by: Dave Smithz | last post by:
Hi there, I have a situation where I want to have multiple submit buttons on the same form and therefore want to use a redirection php script that checks the value associated with the submit form variable to calculate which submit was pressed and then redirects the user to another php page accordingly. I used: headers ("location:myphpscript.php")
6
6120
by: Robert Cohen | last post by:
Hi All, I have what is an easy question for you all, but I have not idea (this is in vbscript). I have this script below that works great. It figures out the user logged in and gives the AD information about the user. On another webpage, I have a staff directory which lists all the users. What I would like to do is create a link on the staff directory that will open up this information page with the user specified (instead of the logged...
4
8543
by: Jason Us | last post by:
Does anyone have experience with passing variables from an ASP page to a JSP page. The way it currently works in passing the SSN in the URL. This cannot be good. I thought that storing a unique session ID in a cookie and referencing the SSN from the Session ID would be the correct way to do this. But since we have two separate servers, IIS and Websphere, how do we coordinate the session ID?
7
4761
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException and is defined in an assembly common to the client and server components. The custom class merely defines three (3) constructors -- the null constructor; one with a string parameter; and one with a string and innner exception parameter -- that...
4
1408
by: Grant | last post by:
Im using C# in a web app. Ive got a page with a linkbutton with the following code for the click event: ----------------- Session = "Test"; Server.Transfer("TestPage.aspx"); ----------------- In the testpage Page_Load section I have the following: ------------------
1
2661
by: Gaye Kruchten | last post by:
Hi! I'm just getting starting in web development using ASP.NET and have a very basic question. I have a web page that captures name and address information. I want to pass this information on to another page where the user would confirm the information or return back to the original page to make corrections if they had made a mistake. What would be the recommended way to handle this situation using asp.net? I have also read some...
1
1831
by: rfr | last post by:
I have a need to use a single version of a Visitor Response Feedback Form on numerous HTML documents. Rather than have numerous versions of this, one on each HTML document, it makes more sense to have ONE FORM and use it from each HTML document that needs it. But, the visitor should see a title on the form that relates to the specific page about which they are giving the feedback. And the results of the form must include what page was...
6
2399
by: DLP35 | last post by:
I'm sure this should be simple enough but I'm really struggling to get my mind around this. I don't have access to a server but am developing a site and I need to pass information from input boxes on one form to a paragraph of text on another. The simplest example I could think of would be a first page with input boxes for Title and Surname: <head> <title>Test</title> <table>
25
2103
by: Geoff Cox | last post by:
Hello, The following <frame src="topbar-frameset.php?newVar=<?php echo $groups; ?>"> passes the value of the variable $groups from a php file to the top page in a frameset but how do I change it if $groups is an array? Cheers,
0
9847
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10983
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10500
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9684
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7206
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5894
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4308
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3324
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.