Javascript Validation Problem

P

Prabhuram

Hello all,
I have a problem with validation in JS. The problem is here. I have
a treeview control and based on the the selection in the treeview, the
browser displays specific page dynamically. Each and every page have
their own set of fields say textbox, selectbox, etc. and a 'Submit'
button, and some of the fields have their default values.

My problem is if the user opens one page by selecting the page from
the treeview, and changes some field say a textbox and without
submiting the changes, he selects other page by selecting the tree
view. At this point I need to display a 'confirm' dialog, wheather the
user realy wants to move to other page without updating the current
page. How can I do this in JS. Thanks in advance.

Prabhu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,266
Latest member
DavidaAlla

Latest Threads

Top