473,322 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

of all the things that drive me crazy...

hi..im new to the community and was finally so fustrated with guessing that i figured i'd try to get some help (and from my writing..you can probably tell im not exactly 40 years old)

oki..here's my problem:

i have recently been reorginizing the code in my website...messing with the css and javascript to give it more browser compatability

somehow...in the middle of doing this for several days

i disabled some code that had been previously been working

...onsubmit="checkLogged(username.value,password.v alue); return false;"...

its very simple code which is what drives me most crazy

checkLogged is a function that performs an ajax request to see if the username and password are correct(simply to save the hassle of making the user go to the next page only to find out their information was invalid)....

if the function finds that the information is valid...it submits the page(...forms[0].submit...)..if not...it highlights the boxes in red to suggest the information is incorrect

my problem is that it just keeps submitting and ignoring the "return false;"

the reason i dont just do onsubmit=return checkLogged(...) is because the ajax request doesnt have the true/false result fast enough

btw..the solution has to work with both hitting the submit button or just hitting the enter key

-nick
plz help

thx ahead of time
Mar 29 '09 #1
1 1353
hsriat
1,654 Expert 1GB
The problem seems to be pretty simple: some mistake in onreadystatechange or checkLogged. But you may need to paste some code to get help.
Mar 30 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Islam Elkhayat | last post by:
I need help plzzzz... In my windows application i fill listview from simple access database... here is the code //Creating colums InitializeComponent();...
3
by: Christopher Brandsdal | last post by:
Hi! I have had HUGE sucsess with my latest webpage www.valdresromantikk.no. The problem now is that I have too many visitors for my access database. The IIS server hangs every 5 minutes. I...
7
by: rvbvanassoc | last post by:
Hi guys I'm new here and just got some help on starting my help and support service. It worked and it is now up and running. I have this other major problem that is driving me crazy. We had a power...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.