Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Click Event not Firing on First Click

Posted on 2010-08-23
7
Medium Priority
?
477 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

 
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

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

721 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