Web Analytics Made Easy -
StatCounter persisting an object reference - CodingForum

Announcement

Collapse
No announcement yet.

persisting an object reference

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • persisting an object reference

    Hi there!


    Does anyone know whether it's possible to save an object reference somehow, so that it can be reused after a form is submitted?


    Thanks.

  • #2
    Not if you submit the form through normal means. JavaScript cannot persist across page loads. There are techniques you can use though. You can use external frames to store your javascript, or iframes to submit your forms. You can use XMLHTTPRequest objects to submit your forms without reloading the page. But no, you can't keep pointers to objects across pages without one of these techniques.

    Comment


    • #3
      Thanks!

      Thanks for your help; I'll bear that in mind!

      Comment

      Working...
      X