473,569 Members | 2,481 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 1479
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 "somecharac ter" 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 "somecharac ter" 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('Art icle 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('Art icle 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_r ead_this_I_am_s pammed_too_m... @spamyourself.c omwrote:
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

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

Similar topics

4
8430
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 the UserID of the person to whom the record was assigned for action. I need to write a query to return all values in the ObservationRegister...
1
2532
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 table ABCDE will be deleated..." and so on prompting for yes or no! I would like to make a command button which would prompt me for yes or no and...
3
6780
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 = createobject("Wscript.shell") set oexec = ws.exec("<%=server.mapPath(./xx.vbs)%>") But it give error "the path/xx.vbs is not a valid win32 application" May i know why? I...
0
2124
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. When clicking "Download file..." on the information bar, a postback occurs. I would like to detect this postback. The file that is going to be...
9
1235
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 connection without prompting the user? Thanks, Joe
1
1424
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 and redisplay the prompt on the same line. Any ideas? Thanks in advance for your help. Here's my code so far: sub get_wap2gwip { ...
2
6966
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="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http:// www.xyz.com');">set the homepage</a> The problem with this code is when i click the link it prompts me a
3
3276
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" value="Print directly"> <input onclick="document.all.WebBrowser.ExecWB(6,2)" type="button" value="Print directly">
8
12932
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 where the values are integers). I can do this programmatically (using code and stored procedures), but it's not a neat solution and there are also...
0
7618
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...
0
8132
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7678
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...
0
7982
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...
0
6286
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...
1
5514
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3656
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...
1
2116
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
1
1226
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.