Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i have used iframe in my application whenever view button is clicked iframe should be loaded with dynamically created htm file but while clicking it is not loading with updated htm file instead loading the old file only and in second click only its getting loaded correctly. and if i check by keeping break point its working fine. How to solve to this prob? thanks in advance
Posted

1 solution

It seems you are trying to fire click event prior to loading of all HTML elements.If you are familiar with JQuery try this

JavaScript
$(window).load(function(){
  $("#Your_view_button_id").click(function(){
  //Action to be taken after view button is clicked...
  });
});
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900