• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to capture all the events on a page

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I want to capture all the events on a page and show all the changes on this page when user submit it. That means I must store all the field value when page gets onloaded and compare them with current value when user finish the modification and submit the page. But how can I store those value. Is there global variable in javascripting I can use? Another way to do this is inside onchange event handle for all the element on that page, I could send a message to a global function and invoke that global function when page gets submitted. Is it possible ?
Any suggestion would be appreciated.
Thanks
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If i understand ur question correctly I think the solution would be to have an hidden field for the every field that you would like to track the change.
eg:
<INPUT type="text" name="fooNew" value="def">
<INPUT type="hidden" name="fooOrig" value="abc">
On submiting the form you will have both the values, which can then be used to compare...
 
white lily
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Abraham Jacob
You are right. The hidden fields could be used to keep track of the modified fields. The only problem is that this xml file is so huge that the server(cocoon)is barely able to proceed it. I want to do it by event-capturing but it seems impossible. I am going to use hidden field and try not to make it too big again.
Thanks a lot.
Lily

------------------
 
reply
    Bookmark Topic Watch Topic
  • New Topic