Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript message box not working as expected

Status
Not open for further replies.

Hondy

Technical User
Mar 3, 2003
864
GB
Hi

My site has a confirmation box to confirm a transaction, options are "ok" and "cancel". A very small group of customers are having an issue where clicking "ok" has the same effect as clicking "cancel". i.e. they can't complete the transaction.

This is causing some big headaches, does anyone have any suggestions on what is going wrong? It works fine for 95% of customers, it's not browser specific (same problem in IE7/8, FF, Chrome), the code hasn't changed in months.

We've tried clearing the browser cache, different browsers for those affected, forcing download of the javascript.

I can't reproduce the problem, and it only affects a small portion of users. This started being reported yesterday, anyone?

Thanks

H
 
My site has a confirmation box to confirm a transaction, options are "ok" and "cancel". A very small group of customers are having an issue where clicking "ok" has the same effect as clicking "cancel". i.e. they can't complete the transaction.
Do you trust the user is clicking OK? Same thing happens when a user cannot log in. You ask if the caps lock key is on. "No", they respond. Look at their key board and sure enough caps lock is on.

Assuming the end user is actually clicking OK. what should happen when they click OK? what is the effect of clicking cancel? Knowing what should happen will help determine what the problem is.

Lets Assume clicking OK would submit a form back to the server to save data to a database. Using a tool like Fiddler or FireBug you can watch the request/responses to ensure you are enfact submitting the form. If that's working properly. I would suspect the problem lies within the server code. Maybe you are swallowing an exception, or not reporting broken validation back to the user.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
thanks all for your suggestions

-feherke, this sounds to be the most likely, its very strange that this started happening only yesterday. I will look here first.

-Jason, yes I trust the customers on this one, all of a sudden our customer servics people are taking a number of calls stating the same thing. We have previously not seen this problem. Your suggestions of using the plug-in is good, except we can't reproduce the problem.

-Dian, the pop-up box is coming up, it's the result that isn't happening for some reason.


Open to more ideas!! Going to investigate security software issues...

Thanks

H
 
Is the confirmation box a box standard browser control (i.e. "window.confirm"), or is it a DHTML version that you / someone else have coded?

If the latter, it could well be buggy...

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

Dan's Page [blue]@[/blue] Code Couch:
Code Couch Tech Snippets & Info:
 
Hi Billy

Yes the code was "bog standard" / native JS.. Odd thing is the problem went away just as quickly as it came about. Never did get to the bottom of it. Bizarre!

Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top