473,768 Members | 8,762 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Can I enter data into a PROMPT and have it open a window based on the value entered?

I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScript.

I currently have a photo restoration/retouching website. I normally
send my customers an email containing a proof of the retouched
photograph for their approval. Instead of emailing them the proof, I
would like them to be able to access their proof from my website. When
the photo is ready for approval, I would create an html page based on
the customer's telephone number and send them an email cotaining a
link to my website.
The customer would then access my web page called "customer proofs"
(for example). On that page, they would enter their telephone number
and after pressing enter, the popup window that I created previoulsy
will open, displaying the retouched photograph.
Is this possible to do with JavaScript or would I need to create some
type of database on my web server?

Thanks
Tom
Jul 23 '05 #1
10 1461
Tom Jenkins wrote:
I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScript.


phoneNumber=pro mpt('Whats your phone number?','###-###-####');
document.locati on.href= 'http://pathToFiles/' + phoneNumber + '.html';

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
Randy Webb wrote on 26 sep 2004 in comp.lang.javas cript:
Tom Jenkins wrote:
I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScript.


phoneNumber=pro mpt('Whats your phone number?','###-###-####');
document.locati on.href= 'http://pathToFiles/' + phoneNumber + '.html';


Why do I get the feeling you think this is not an multinational NG ?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #3
Tom Jenkins wrote:
[snip]
... Instead of emailing them the proof, I
would like them to be able to access their proof from my website. When
the photo is ready for approval, I would create an html page based on
the customer's telephone number and send them an email cotaining a
link to my website.
The customer would then access my web page called "customer proofs"
(for example). On that page, they would enter their telephone number
and after pressing enter, the popup window that I created previoulsy
will open, displaying the retouched photograph.

[snip]

Why not use some randomly generated string to make the URL unique?
Something like "pageZX76jiX.hm tl" then include the link in the e-mail.
Your users then click on the link in the email (or copy and paste it)
to view the page.

Other issues this approach addresses:

1. How will you create multiple pages for a single customer that has
only one phone number?

2. How do you stop clients from entering other clients' phone numbers
to access their images?

To make your site much more secure, have you considered adding
usernames & passwords?

Cheers, Fred.
Jul 23 '05 #4
Randy Webb <Hi************ @aol.com> wrote in message news:<Y5******* *************@c omcast.com>...
Tom Jenkins wrote:
I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScript.


phoneNumber=pro mpt('Whats your phone number?','###-###-####');
document.locati on.href= 'http://pathToFiles/' + phoneNumber + '.html';

Thanks Randy - that is what I was looking for.
Fred: I know I can send an email with a link to a web page but I
wanted to set it up as described. As far as other users accessing
other photos that is not a problem and setting up a userid/password
system is not necessary at this time.

Thanks again.

Tom
Jul 23 '05 #5
Evertjan. wrote:
Randy Webb wrote on 26 sep 2004 in comp.lang.javas cript:

Tom Jenkins wrote:

I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScript .


phoneNumber=p rompt('Whats your phone number?','###-###-####');
document.loca tion.href= 'http://pathToFiles/' + phoneNumber + '.html';

Why do I get the feeling you think this is not an multinational NG ?


Of course, you are correct that ###-###-#### is not a uniquely
multinational format, but to date, I do not know of a multinational
format that is recognizable. I do assume that when people see "Whats
your phone number?" that they can reasonably assume I wanted a phone
number, even if the preexisting text is of a format that is foreign to them.

--
Randy
comp.lang.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #6
JRS: In article <f-*************** *****@comcast.c om>, dated Wed, 29 Sep
2004 12:28:46, seen in news:comp.lang. javascript, Randy Webb
<Hi************ @aol.com> posted :
Evertjan. wrote:
Randy Webb wrote on 26 sep 2004 in comp.lang.javas cript:
Tom Jenkins wrote:

I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScrip t.

phoneNumber= prompt('Whats your phone number?','###-###-####');
document.loc ation.href= 'http://pathToFiles/' + phoneNumber + '.html';

Why do I get the feeling you think this is not an multinational NG ?


Of course, you are correct that ###-###-#### is not a uniquely
multinationa l format, but to date, I do not know of a multinational
format that is recognizable. I do assume that when people see "Whats
your phone number?" that they can reasonably assume I wanted a phone
number, even if the preexisting text is of a format that is foreign to them.


That display implies that the number is required to be ###-###-####, and
that the page has been written either purely for NA landline numbers, or
by a NAian who does not know any better. Or, of course, that the author
supposes that apart from NA landliners everyone will understand "Whats
your phone number?" (in spite of the missing apostrophe), but NA
landliners need further assistance.
Whenever a phone number is asked for, there should be an indication of
whether a local, national, or international number is expected. My
landline number could be +44 020 #### ####, or 020 #### ####, or just
#### ####, depending on context; and I have no idea what variation there
may be in mobile number formats.

--
© John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Jul 23 '05 #7
Lee
Evertjan. said:

Randy Webb wrote on 26 sep 2004 in comp.lang.javas cript:
Tom Jenkins wrote:
I have looked at many JavaScripts and I cannot seem to find exactly
what I am looking for. It might be so simple that it went right over
my head but on the other hand, I am not sure if this can be done using
JavaScript.


phoneNumber=pro mpt('Whats your phone number?','###-###-####');
document.locati on.href= 'http://pathToFiles/' + phoneNumber + '.html';


Why do I get the feeling you think this is not an multinational NG ?


This group is multinational, but relatively few web sites created
within the US are intended for multinational use. OP posted from
the US.

Jul 23 '05 #8
Dr John Stockton wrote on 30 sep 2004 in comp.lang.javas cript:
landline number could be +44 020 #### ####, or 020 #### ####,


+44 20

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #9
Lee wrote on 30 sep 2004 in comp.lang.javas cript:
Why do I get the feeling you think this is not an multinational NG ?


This group is multinational, but relatively few web sites created
within the US are intended for multinational use. OP posted from
the US.


That is not why I get the feeling ;-}

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress,
but let us keep the discussions in the newsgroup)

Jul 23 '05 #10

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

Similar topics

5
1313
by: trpplayer | last post by:
Dear, I want to create an page where they have to enter ther name in an prompt. by the name they entered i want to open different html page's example: <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> var name;
3
1846
by: Stuart E. Wugalter | last post by:
Hello All! I have a button on a form that is tied to the following query: UPDATE tblSEQTAQ AS A SET A.taqcall = WHERE (((A.taqcall)="Allele 1")); The user looks at the form and decides to assign a code for the text Allele 1. It works fine.
2
7702
by: ambersaria420 | last post by:
I need to prompt the user to enter ID. I can open up prompt fine using javascript code below. However I am not sure how to get value that user entered in user prompt window. I have to check this value to see if it exists in the database. Private Sub btnID_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnID.Click Dim strPop As String strPop = "<script language='javascript'>" & vbCrLf & "var temp =...
2
2382
by: roz | last post by:
Hello, I'm fairly new to VB programming and I've been going round the bend with this problem, so any nudges or shoves in the right direction would be greatly appreciated. I have a template form in Word. The information that I need to populate this form is from 2 tables in an Access 2002 database (patient details and GP details). Once the user has entered the patient and GP etc details, they need to produce a case summary (including...
5
3927
by: hcross | last post by:
This project is a web based html and Javascript site. I am working on mac at the moment. This script works except for attempting to open new window once complete. As you can see, i am new to javascript coding. Can i open a new browser window after my prompts and alerts have finished. I am not sure what i am doing wrong. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
2
1619
by: samriti | last post by:
I have a text box in a page after entering some value and pressing enter a Pop-up window has to open and the Entered value in Main screen should be passed to a the Pop-up window. Also the Pop-up Window should be on Top that is even if the main window is clicked the pop-up window should be visible.
15
12153
by: Mr.Tom.Willems | last post by:
Hello people, I am ussing an MS access database to enter and manage data from lab tests. until now i was the only one handeling the data so i had no need for a controle on how missing data was entered, since i did it myself i knew exactly what data was missing... The problem is that i can have data that hasn't been enterd yet, or data that is below detection level(so missing).
1
3772
by: haelly | last post by:
write a program that prompts the user to enter three different positive integer values.If the values are not different, the program prints a message"equal value" and terminates(hint:use the return statement).If eithere of the value is negative, the program prints "negative input" and terminates.Otherwise it prints the value the user entered. After that,the program compares he first integer and the second integer and prints either, "the first...
14
7858
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which has the following fields: SPID (supervisor ID), total:group by, as row heading Date, total:group by, as column heading Calls handled, total:sum, as value Date, total:where, criteria between and - this is taken from a form,
0
9577
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9408
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,...
0
10181
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10018
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8841
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...
1
7387
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6657
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();...
2
3540
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2808
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.