Solved

Click Event not Firing on First Click

Posted on 2010-08-23
7
469 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

910 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

25 Experts available now in Live!

Get 1:1 Help Now