473,506 Members | 11,491 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

prompting 2 values

uoL
Hello,

I'd like to know how to prompt two values with prompt(); function.
I need to get things like 'pass' and 'user, 'article' and 'value', etc
... in a document and I dont want to make a whole html in a pop up to
do it ..

Thanks !

Nov 3 '06 #1
11 1470
uoL wrote:
Hello,

I'd like to know how to prompt two values with prompt(); function.
I need to get things like 'pass' and 'user, 'article' and 'value', etc
.. in a document and I dont want to make a whole html in a pop up to
do it ..

Thanks !
Hi,

Prompt just gives 1 inputfield. Period.
So you'll have to make 2 prompts, giving the values in sequence.
Or let the user use some character as a seperator, eg:
article;value

Regards,
Erwin Moller
Nov 3 '06 #2
You can't. So you'll have to make a whole html page.
Unless you require the user to type in a "somecharacter" delimited
string and then parse it. Like: "user, pass, article, value". Tho this
ain't an elegant solution.

On Nov 3, 3:05 pm, "uoL" <wmar...@gmail.comwrote:
Hello,

I'd like to know how to prompt two values with prompt(); function.
I need to get things like 'pass' and 'user, 'article' and 'value', etc
.. in a document and I dont want to make a whole html in a pop up to
do it ..

Thanks !
Nov 3 '06 #3
uoL
thank you all !

I've made an html form, but i wonder how ftp access form work ..
because i've seen they prompt two values user and pass.
i'll try to research a little more if smb knows plz let me know

Thanks!

whiskey wrote:
You can't. So you'll have to make a whole html page.
Unless you require the user to type in a "somecharacter" delimited
string and then parse it. Like: "user, pass, article, value". Tho this
ain't an elegant solution.

On Nov 3, 3:05 pm, "uoL" <wmar...@gmail.comwrote:
Hello,

I'd like to know how to prompt two values with prompt(); function.
I need to get things like 'pass' and 'user, 'article' and 'value', etc
.. in a document and I dont want to make a whole html in a pop up to
do it ..

Thanks !
Nov 3 '06 #4
ASM
uoL a écrit :
Hello,

I'd like to know how to prompt two values with prompt(); function.
I need to get things like 'pass' and 'user, 'article' and 'value', etc
function quest() {
if( art=prompt('Article subject')) {
if(val=prompt('Search value')) {
{ alert(art+'\n'+val); return; }
}
alert('not correctly filled');
}

Nov 3 '06 #5
uoL wrote:
thank you all !

I've made an html form, but i wonder how ftp access form work ..
because i've seen they prompt two values user and pass.
i'll try to research a little more if smb knows plz let me know
Your ftp-program is not written in JavaScript.

Regards,
Erwin Moller
Nov 3 '06 #6
uoL
Erwin,

I ment when you enter a ftp site via web browser. the web browser
display some kind of prompt but with two value inputs.

Regards,
uoL
Erwin Moller wrote:
uoL wrote:
thank you all !

I've made an html form, but i wonder how ftp access form work ..
because i've seen they prompt two values user and pass.
i'll try to research a little more if smb knows plz let me know

Your ftp-program is not written in JavaScript.

Regards,
Erwin Moller
Nov 3 '06 #7
uoL
Thanks ! that might help ..

ASM wrote:
uoL a écrit :
Hello,

I'd like to know how to prompt two values with prompt(); function.
I need to get things like 'pass' and 'user, 'article' and 'value', etc

function quest() {
if( art=prompt('Article subject')) {
if(val=prompt('Search value')) {
{ alert(art+'\n'+val); return; }
}
alert('not correctly filled');
}
Nov 3 '06 #8
uoL wrote:
Erwin,

I ment when you enter a ftp site via web browser. the web browser
display some kind of prompt but with two value inputs.
Same answer: Your webbrowser is not written in JavaScript, but C(++).

So the ftp-dialog is not created by JavaScript, but it is created by some
build-in function.

Regards,
Erwin Moller
>
Regards,
uoL
Erwin Moller wrote:
>uoL wrote:
thank you all !

I've made an html form, but i wonder how ftp access form work ..
because i've seen they prompt two values user and pass.
i'll try to research a little more if smb knows plz let me know

Your ftp-program is not written in JavaScript.

Regards,
Erwin Moller
Nov 6 '06 #9
That prompt isn't accessible from JavaScript. Those things ar generated
by the browser when a page requires authentication (http
authentication, for instance).

On Nov 6, 11:20 am, Erwin Moller
<since_humans_read_this_I_am_spammed_too_m...@spam yourself.comwrote:
uoL wrote:
Erwin,
I ment when you enter a ftp site via web browser. the web browser
display some kind of prompt but with two value inputs.Same answer: Your webbrowser is not written in JavaScript, but C(++).

So the ftp-dialog is not created by JavaScript, but it is created by some
build-in function.

Regards,
Erwin Moller
Regards,
uoL
Erwin Moller wrote:
uoL wrote:
thank you all !
I've made an html form, but i wonder how ftp access form work ..
because i've seen they prompt two values user and pass.
i'll try to research a little more if smb knows plz let me know
Your ftp-program is not written in JavaScript.
Regards,
Erwin Moller
Nov 6 '06 #10
uoL
Thank you all .. but i tell you I think javascript should give
programmers this feature of prompting more than one value .. It seems
is obviously usefull.. but I'm also sure there's a good reason for not
implementing such a thing.
Thanks again !
Regards,
uoL

Erwin Moller wrote:
uoL wrote:
Erwin,

I ment when you enter a ftp site via web browser. the web browser
display some kind of prompt but with two value inputs.

Same answer: Your webbrowser is not written in JavaScript, but C(++).

So the ftp-dialog is not created by JavaScript, but it is created by some
build-in function.

Regards,
Erwin Moller

Regards,
uoL
Erwin Moller wrote:
uoL wrote:

thank you all !

I've made an html form, but i wonder how ftp access form work ..
because i've seen they prompt two values user and pass.
i'll try to research a little more if smb knows plz let me know

Your ftp-program is not written in JavaScript.

Regards,
Erwin Moller
Nov 6 '06 #11
I'm also sure there's a good reason for not implementing such a thing.
I wouldn't be so sure about that, however I'm sure there aren't good
reasons to implement such things :-)

Nov 6 '06 #12

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

Similar topics

4
8424
by: Steve Hall | last post by:
Folks, My secnario involves two tables - ObservationRegister, and Person. ObservationRegister contains most of the "useful" fields, including the UserID of the person that raised the record, and...
1
2523
by: danijela.simunovic | last post by:
Hi! Is there a way that when I run a "make table query" and an "append query" that i won't be asked those 2 or 3 questions from access like :"you are about to run a make table...","the existing...
3
6772
by: kim | last post by:
GOOD morning, I try to open xx.vbs in <href="./xx.vbs"></hef> but it pop up the file download mesage. How can i disabled it? I try another solution like this : set ws =...
0
2119
by: ar | last post by:
Hello, In IE I disable "Automatic prompting for file downloads" which causes the IE information bar to show up when I try to push a file download from an iframe. I want to keep this behaviour. ...
9
1228
by: Joe | last post by:
Every time our application starts it prompts the user to allow it access to the internet because our application is checking for updates. Is there anyway programically to tell Vista to allow this...
1
1419
by: jeffkatyspanky | last post by:
I am prompting for the user to enter an IP address and I can't figure out a cleaner way to re-prompt if the user enters something other than a valid IP address. I'd like to just clear the "bad" entry...
2
6958
by: pavi | last post by:
Anyone know how to set the Default homepage using javascript without prompting a pop up. Below is the code i used to set default home page. <a href="#"...
3
3274
by: =?Utf-8?B?QmlsbHkgWmhhbmc=?= | last post by:
I have a asp.net page, it uses js to print in IE. It always has the prompting user window appear. I have tried: <input onclick="document.all.WebBrowser.ExecWB(6,6)" type="button"...
8
12912
by: gigonomics | last post by:
Hi all, I hope someone can help me out. I need to return the best available seats subject to the constraint that the seats are side by side (or return X consecutive records from a table column...
0
7220
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7308
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
7479
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...
0
5617
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,...
1
5037
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3188
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...
0
3178
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
410
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...

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.