Skip to content

Tag: html

Generic way to detect if html form is edited

I have a tabbed html form. Upon navigating from one tab to the other, the current tab’s data is persisted (on the DB) even if there is no change to the data. I would like to make the persistence call only if the form is edited. The form can contain any kind of control. Dirtying the form need not be

How to preload an ENTIRE web page

How can you preload an entire web page using JavaScript so that I can get that page cached in the users browser? I know how to preload images with JS but what I would like to do is preload the entire page. Use case: On my website, I have a google maps page with a lot of other content (images,

“Submit is not a function” error in JavaScript

Can anyone tell me what is going wrong with this code? I tried to submit a form with JavaScript, but an error “.submit is not a function” shown. See below for more details of the code: I also tried this: Both show me the same error 🙁 Answer submit is not a function means that you named your submit…

How to: Back button support “Ajax”

I have an asp.net ajax website, it full of things happen on the same page without page reload, such as sorting records, paging,… When the user go to another page in the same site and press the browser back button, how can i make the browser save the page state to return to it with the preselected option…