Solved

Click Event not Firing on First Click

Posted on 2010-08-23
7
466 Views
Last Modified: 2013-11-07
In my web-application, I have a simple web-page that pops-up and allows the user to upload a file. A problem seems to arise when a user enters the screen for the first time and attempts to upload a file greater than 1mb, the button click event does not fire. If the user closes the the pop-up and then attempts the process again the upload works just fine. Also if the user uploads a file less than 1mb the upload will work fine on the first try. Not sure what the issue is here.

Any help would be appreciated.

Thanks.
0
Comment
Question by:chompzilla
  • 4
  • 3
7 Comments
 
LVL 9

Expert Comment

by:puru1981
ID: 33501641
I think this is not an issue the attachment is taking time to upload, wait for a moment and then check if it happens again.
0
 

Author Comment

by:chompzilla
ID: 33502909
Its not the attachment taking time to upload. I'll click to upload the document and wait, until the page eventually timesout. Like I said, this occurs everytime I attempt to upload the document for the first time on a record. The second attempt will always successfully upload within a few seconds (whether it be the same document or an even larger document).
0
 

Author Comment

by:chompzilla
ID: 33503172
My comment sounded too dismissive of your suggestion. Let me just say that I feel very confident that it’s not the attachment taking time to upload.

Even placing debugging statements in the event, nothing will be returned on the first upload attempt. I've even commented out the upload file part and the only things on my screen are the file input field and my button (with debug statements as the only code in my code behind). Then I'll select my file, click the upload button and nothing will occur on the first initial click. Will close my window, follow the same steps as before and the event will fire as expected.

So it would be my assumption that if this was a simple matter of the file taking time to upload it would consistenly be slow everytime I attempt to upload. Not just on the first attempt.
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 9

Accepted Solution

by:
puru1981 earned 0 total points
ID: 33503468
hmm... is your form is loaded properly in first attempt and no javascript error is there on the form?
0
 

Author Comment

by:chompzilla
ID: 33503910
Form loads fine and no javascript.
0
 
LVL 9

Expert Comment

by:puru1981
ID: 33504049
can you share the aspx
0
 

Author Comment

by:chompzilla
ID: 33520436
I seem to have located the issue causing the instability in my application. I had forgotten I was utilizing the CSS Behavior property. It seems that the javascript in my .htc file was causing the issue. Though at no point was there any errors thrown by the application.

Not sure why the code was causing failure on the first attempted upload only though. But that will be just a matter of stepping through the code and finding the deficiency.

Thanks.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now