I was hoping any javascript and asp gurus may help me with this
problem, o.k well here it is....
i have a form, which has a user and password, that a user enters
when i want to submit this form....
i would like to submit it to 2 two different files.
so file1.asp would have user and password....and file2.asp would have
user and password.
i would like two different windows to open, if possible. so the user
can work on both windows at once.
window 1 = file1.asp
window 2 = file2.asp 13 1308
Kavi wrote on 22 apr 2006 in comp.lang.javascript : I was hoping any javascript and asp gurus may help me with this problem, o.k well here it is....
i have a form, which has a user and password, that a user enters
when i want to submit this form....
i would like to submit it to 2 two different files.
so file1.asp would have user and password....and file2.asp would have user and password.
i would like two different windows to open, if possible. so the user can work on both windows at once.
window 1 = file1.asp window 2 = file2.asp
[Serverside does not know about windows, or FF tab windows or popups.
Servers only "serve" file output on request,
so cannot initiate a second file.]
Try:
Submit to file1,
put the user/pw data in [serverside ASP] session variables,
have that file1 by clientside script code open
a [popup] second window with file2.
Done, except:
Beware of popup blockers and clientside script switch-off and
cros-browser incompatibilities.
==============
Never "give" a password to clientside html or code.
Restriction of access should be handled on the server.
"work .. at once", in the litteral sense(!),
is impossible for to-day's users and for to-day's browsers.
The use of keyboard and mouse input is given to one window at a time.
;-)
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. wrote: [...] [Serverside does not know about windows, or FF tab windows or popups. Servers only "serve" file output on request, so cannot initiate a second file.] [...]
Misconception. Web servers have no problem to deliver more than 1 file
as a response to a single http request. It's the browser that may not
support it.
#!/usr/bin/perl
print "Content-Type: text/html; charset=iso-8859-1\n\n";
use CGI qw/:push -nph/;
$| = 1;
print multipart_init(-boundary=>'----here we go!');
foreach (0 .. 4) {
print multipart_start(-type=>'text/plain'),
"The current time is ",scalar(localtime),"\n";
if ($_ < 4) {
print multipart_end;
} else {
print multipart_final;
}
sleep 1;
}
Nowadays browsers don't support this so-called 'server push' download
technology anymore. I believe the last one was Netscape 4. Email
clients still use this principle for sending attachments, though.
--
Bart
Bart Van der Donck wrote on 22 apr 2006 in comp.lang.javascript : Evertjan. wrote:
[...] [Serverside does not know about windows, or FF tab windows or popups. Servers only "serve" file output on request, so cannot initiate a second file.] [...]
Misconception. Web servers have no problem to deliver more than 1 file as a response to a single http request. It's the browser that may not support it.
I wouldn't call that a "server", Bart,
though you could certainly argue that.
A server [The name comes from 'servus' slave] is to serve what is asked.
I wouldn't frequent a restaurant where the waiter unasked pushes food into
my mouth, calling it "server push technique".
Nor would I like a browser opening a new window on order of the server,
without my prior asking to do that. That would be the ultimate popup craze.
Like the new Philips TV-chip patent-application denying zapping or sound
control during the commercial?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
wow!
This is my first time using the google groups, i wasn't not expected a
reply so soon, and so many. Thanks i will have to use this more often
;-).
and well this seems to work for me. Also i am aware of the implications
using the user and password, i was only unsing it as an example ;-)
form.action = "[the url]"
form.target = "_self"
form.submit()
form.action = [another url]"
form.target = "new"
form.submit()
thanks for you quick replies
Kavi wrote on 24 apr 2006 in comp.lang.javascript : This is my first time using the google groups, i wasn't not expected a reply so soon, and so many. Thanks i will have to use this more often ;-).
This NG is NOT a google group but a Usenet group.
You are only using GG as a entry portal, and Usenet is much older than
Google and even than the web.
If you plan to frequent usenet a better way is to use a dedicated
news reader instead, like most of us do.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Kavi wrote: wow! This is my first time using the google groups, i wasn't not expected a reply so soon, and so many. Thanks i will have to use this more often ;-).
You are participating in Usenet via the Google Groups NNTP-to-HTTP
interface. Other people, including me, use newsreaders instead.
<URL:http://en.wikipedia.org/wiki/Usenet>
and well this seems to work for me. Also i am aware of the implications using the user and password, i was only unsing it as an example ;-)
form.action = "[the url]" form.target = "_self" form.submit() form.action = [another url]" form.target = "new" form.submit()
That would only work reliably if `form' was a reference to an object which
global execution context was different, i.e. in another frame or window
than the global execution context of the code.
PointedEars
--
Bill Gates isn't the devil -- Satan made sure hell
_worked_ before he opened it to the damned ...
Evertjan. said the following on 4/24/2006 4:44 AM: Kavi wrote on 24 apr 2006 in comp.lang.javascript:
This is my first time using the google groups, i wasn't not expected a reply so soon, and so many. Thanks i will have to use this more often ;-).
This NG is NOT a google group but a Usenet group.
You are only using GG as a entry portal, and Usenet is much older than Google and even than the web.
Usenet older than the web or the internet? The two words have become
synonymous but they aren't the same thing in a historical sense. Usenet
is older than the WWW but it is not older than the Internet.
And no, Al Gore didn't invent the Internet.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote on 24 apr 2006 in comp.lang.javascript : Usenet older than the web or the internet? The two words have become synonymous
I certainly do not agree here.
but they aren't the same thing in a historical sense. Usenet is older than the WWW but it is not older than the Internet.
You ever use "older" in a non-historical sense?
Off course: in a prehistorical sense.
Did I write Webb, per chance?
And no, Al Gore didn't invent the Internet.
Who is that? The Arab name giver of Algoritm?
Everyone knows the internet was not invented,
it always was there to be discovered.
The speed increase from the time of the Babylonian Responsa
to the present backbones will be the laughing stock of the future.
I am certain you will find a definition disputing my claim.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Randy Webb <Hi************@aol.com> writes: Usenet is older than the WWW but it is not older than the Internet.
That's a matter of definitions.
From <URL:http://en.wikipedia.org/wiki/Internet>:
"The first TCP/IP wide area network was operational by 1 January 1983"
.... "(This date is held by some to be technically that of the birth
of the Internet.)"
From <URL:http://en.wikipedia.org/wiki/Usenet>:
"It was established in 1980 following experiments the previous year,
over a decade before the World Wide Web was introduced and the general
public was admitted to the Internet."
Depending on what you define as Usenet and as the Internet, Usenet
predates the internet by three years.
In the beginning, Usenet was transferred between the US and Australia
by airmail of magnetic tapes. No internet required :)
/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Lasse Reichstein Nielsen wrote on 24 apr 2006 in comp.lang.javascript : Randy Webb <Hi************@aol.com> writes:
Usenet is older than the WWW but it is not older than the Internet.
That's a matter of definitions.
From <URL:http://en.wikipedia.org/wiki/Internet>: "The first TCP/IP wide area network was operational by 1 January 1983" ... "(This date is held by some to be technically that of the birth of the Internet.)"
From <URL:http://en.wikipedia.org/wiki/Usenet>: "It was established in 1980 following experiments the previous year, over a decade before the World Wide Web was introduced and the general public was admitted to the Internet."
Depending on what you define as Usenet and as the Internet, Usenet predates the internet by three years.
In the beginning, Usenet was transferred between the US and Australia by airmail of magnetic tapes. No internet required :)
[Look mama no hands!]
Nice compilation, Lasse.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Evertjan. said the following on 4/24/2006 10:43 AM: Randy Webb wrote on 24 apr 2006 in comp.lang.javascript:
Usenet older than the web or the internet? The two words have become synonymous I certainly do not agree here.
It is true that they are not truly synonymous but in the web world they
have become virtually synonymous as new people do not understand the
difference.
"I need an Internet connection to get on the Web to search for my thing
on the Internet". but they aren't the same thing in a historical sense. Usenet is older than the WWW but it is not older than the Internet.
You ever use "older" in a non-historical sense?
Off course: in a prehistorical sense.
Did I write Webb, per chance?
Yes, right above :) And no, Al Gore didn't invent the Internet.
Who is that? The Arab name giver of Algoritm?
Close :)
Everyone knows the internet was not invented, it always was there to be discovered.
Maybe, could be a good subject of conversation.
The speed increase from the time of the Babylonian Responsa to the present backbones will be the laughing stock of the future.
I am certain you will find a definition disputing my claim.
I wasn't trying to dispute your claim, per se, but was merely conversing
about something. My apologies if you took it differently.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Lasse Reichstein Nielsen said the following on 4/24/2006 11:41 AM: Randy Webb <Hi************@aol.com> writes:
Usenet is older than the WWW but it is not older than the Internet. That's a matter of definitions.
Very true. And, when you consider the beginning of each.
From <URL:http://en.wikipedia.org/wiki/Internet>: "The first TCP/IP wide area network was operational by 1 January 1983" .... "(This date is held by some to be technically that of the birth of the Internet.)"
Depends on how you define what the Internet is. If you define it as a
method of a Wide Area Network (The term wasn't used then) for networked
computers to communicate (not necessarily by TCP/IP though), then it is
older than that. Giving TCP/IP creation the "birth of the Internet"
makes the Internet younger.
It all got started by the US Military in the late 40's early 50's though
as a way to communicate in the event of a nuclear disaster/war. That
network is what lead to the Internet.
From <URL:http://en.wikipedia.org/wiki/Usenet>: "It was established in 1980 following experiments the previous year, over a decade before the World Wide Web was introduced and the general public was admitted to the Internet."
That definition holds what was said to start with where the WWW and
Internet are separate but now they have become almost synonymous terms.
"Browse the Web"
"Browse the Internet"
Or:
"Search the Web"
"Search the Internet"
Semantics but an interesting conversation and nothing more :)
Depending on what you define as Usenet and as the Internet, Usenet predates the internet by three years.
True, but if you define it as the WAN it was started as, the Internet is
over twice as old as Usenet.
In the beginning, Usenet was transferred between the US and Australia by airmail of magnetic tapes. No internet required :)
Yup, slow days they were. Although my first use of Usenet wasn't until
1988 or so but it was still slow.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Randy Webb wrote on 24 apr 2006 in comp.lang.javascript : In the beginning, Usenet was transferred between the US and Australia by airmail of magnetic tapes. No internet required :)
Yup, slow days they were. Although my first use of Usenet wasn't until 1988 or so but it was still slow.
Our emails to our family in Jakarta till around 1995 were sent from here
[with local dial-in] to Exxon in L.A., and then 'rerouted' by private cable
to their Indonesian bureau, where they were printed out,
making the last leg on foot or by car.
Global coverage of Internet, now taken for granted, was still a thing of
the future, while Gopher was ending it's usefulness.
Defining the Internet by it's coverage makes it a young development.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: JPM III |
last post by:
I wrote a PHP script that allows me to post HTML entries to files on my
server without going through FTP, yadda yadda. It works fine, and last night
it updated both files properly.
Today, it...
|
by: Laphan |
last post by:
I know this is a crosspost, but I need to know which is the best one for
posting INET FTP queries, so that I'm not cross-posting in future.
Now that I've posted could somebody let me know:
1)...
|
by: Edvard Majakari |
last post by:
Hi all ya unit-testing experts there :)
Code I'm working on has to parse large and complex files and detect
equally complex and large amount of errors before the contents of the file
is fed to...
|
by: Carl Lindmark |
last post by:
*Cross-posting from microsoft.public.dotnet.languages.csharp, since I
believe the question is better suited in this XML group*
Hello all,
I'm having some problems understanding all the ins and...
|
by: GrantMagic |
last post by:
Since installing .Net framework v1.1 Service Pack, i have found some issues
regarding post backs on my secure server.
I have also read about many people having similair issues and for once want...
|
by: Ian.Suttle |
last post by:
I am have been researching this issue to no end, so any help would be
very much appreciated.
I have a page with form tags. Inside of the form tags is a panel that
contains a user control. The...
|
by: Rabbit |
last post by:
Dear All,
I've been tried various configuration and did install SP1 on Windows 2003
Server.
The problem now that I have is an aspx page located on the web site for
taking the file post by...
|
by: Jeff Casbeer |
last post by:
New to VB..
What is the VB syntax for posting a Windows event? For example, to have an event fire AFTER a form loads, I'd add a posted call to a "post_load" event, from "load". What is the VB...
|
by: athos |
last post by:
OS: Windows 2000/XP (needs to run on 2 different machines)
Language: Python 2.5
Programmer Level: Pathetically new to Python
Goal: Using code I've altered for my needs, I'm attempting to create...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
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...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
| |