Need help with a JavaScript assignment...Willing to pay

N

nyy

Hello, I am so frustrated with this JavaScript assignment that I pay
someone that is advanced in javascript to help me and do this for me
please. Here is the assignemt: Create a page that prompts a user for
user name and password, and then stores the information in cookies.
When the user visits the Web page again, prompt him or her to enter the
stored username and password. If the user does not enter the correct
info within three tries, allow him or her to enter a new username and
password. save the page as Password.html.

this is easy for someone that knows javascript well. I wait for any
response...
 
R

Randy Webb

nyy said the following on 9/15/2005 12:35 PM:
Are you able to do this before this monday coming up 19. Thanks

Learn to quote. It reflects on your intelligence.

I can do what you want in about 10 minutes. How much money do you have?
 
N

nyy

Thanks for the compliment. Anyway, first you are not the same person I
asked how much time it would take. Now, how much do you want for this
simple assignment. Let me know, Thanks...
 
W

web.dev

nyy said:
Hello, I am so frustrated with this JavaScript assignment that I pay
someone that is advanced in javascript to help me and do this for me
please. Here is the assignemt: Create a page that prompts a user for
user name and password, and then stores the information in cookies.
When the user visits the Web page again, prompt him or her to enter the
stored username and password. If the user does not enter the correct
info within three tries, allow him or her to enter a new username and
password. save the page as Password.html.

this is easy for someone that knows javascript well. I wait for any
response...

Hi nyy,

I would rather that you did this yourself so can actually learn it.
(there's a possibly it might be on the test ;) )

Perhaps this pseudocode will help you on the right path. Oh and when
you prompt for username and password, it's not clear whether you mean
to prompt them via a dialog box, or through a form on the page. I'll
just assume you mean to prompt via a dialog box.

You have a script in your Password.html

<script type = "text/javascript">
var n_tries = 0;
var success = false;

prompt for username and password and save results.

if( see if they have a cookie )
{
grab values from the cookie

while(success == false)
{
if( username and password match? )
{
success = true;
}
else
{
increment n_tries by 1
prompt for username and password again
}

if(n_tries == 3)
{
user failed 3 times. setCookie with new values
success = true;
}
}
}
else
{
they don't have a cookie so set one by calling setCookie

optional: display a welcome/successful login message
}

function setCookie(username, password)
{
code statements that will set the cookie
}
</script>

Hope this helps :)
 
N

nyy

Thanks for your help, I am not sure when you said on the first if
statement if they have a cookie, also, a dialog box is good for
prompting for user name and password.
 
R

Randy Webb

nyy said the following on 9/15/2005 1:24 PM:
Thanks for the compliment.

There was no compliment.

You obviously can not read nor comprehend what you do manage to read.
Learn to quote please.
Anyway, first you are not the same person I asked how much time it
would take.

This is Usenet, not your Email. You ask a question here, anybody can
answer it. You asked a question, I answered it. Deal with it.
Now, how much do you want for this simple assignment.

300 Dollars US up front.
Let me know, Thanks...

I just did.
 
W

web.dev

Dr said:
JRS: In article <[email protected]>
, dated Thu, 15 Sep 2005 10:29:39, seen in

Never trust anyone who does not understand the use of Booleans.

--
© John Stockton, Surrey, UK. [email protected] Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.

Well, it's pseudocode. Just helping the person read it. But yes,
otherwise I wouldn't have written it the way I did.
 
R

Richard Cornford

Isn't the point of going to school, to have others
pay _you_ to do work?

That sounds more like employment than school. The point of going to
school is learning enough to be well paid for your work.

Richard.
 
B

bgulian

Admittedly, I've only been using javascript for a couple of years but
in my 15 years of C++ use

while (success == false)

seems perfectly fine and a lot more readable than "while ( !success )".
Please explain why this is wrong.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top