Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 478
  • Last Modified:

Click Event not Firing on First Click

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
chompzilla
Asked:
chompzilla
  • 4
  • 3
1 Solution
 
puru1981Commented:
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
 
chompzillaAuthor Commented:
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
 
chompzillaAuthor Commented:
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
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
puru1981Commented:
hmm... is your form is loaded properly in first attempt and no javascript error is there on the form?
0
 
chompzillaAuthor Commented:
Form loads fine and no javascript.
0
 
puru1981Commented:
can you share the aspx
0
 
chompzillaAuthor Commented:
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now