Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 15th, 2006, 07:18 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Crmpicco!!
Still there is a hope to solve it!! Let we do something.
1>Cookiess-user disabled cookies.

2>javascript variable-user refresh the page.

3>For each page submission or page unload save the data savePageSatus.asp(say)in temporary file.

(a)on page load check whether there is data for current_id and current_user.
  (current_id is unique random number,that is sufficient to find the data
   stored in txt/database or csv file for current_user and current page)
   (a.1)If no data is found then it is fresh page
   (a.2)If data is found then load the data which is previous value
       this is the case when user refresh the page.

(b)When user refresh the page ,load the current status(data)
  into temp file which can be database,csv file.

(c)When user submit the page ,before the actual form submission,
   (c.1) load all** the current status data into temp file.(??)<Since for some options,
your control disabled certain form field values which can't be retrieved in form submission page
,when user click on the submit button,so its not a good idea to save data only in the submission of
form.>
   (c.2)after loading the data ,save the actual data into actual database tables/files.

(d)When user click on the back button,might be he/she wants to make enable disabled
field values,So... ,on page load<since page was already loaded> get the values from
getPageSatus.asp(say) and load the data,set their corresonding values,create dynamic
tables,set their values using javascript etc.

(e)How to call savePageSatus.asp??
    (e.1)Either using iframe , I prefer using normal xmlhttp and activex object request.
    (e.2)Using Ajax you can achieve this ,yet I have not find the opportunity
    to work using Ajax.For more info plz visit
http://dev2dev.bea.com/pub/a/2006/01...ck-button.html
http://dev2dev.bea.com/pub/a/2006/01...on.html?page=2

http://www.sitepoint.com/blogs/2005/...for-ajax-apps/
http://codinginparadise.org/weblog/2...on-across.html

Note-1>there must be some way to tell the user which values are actually submitted.
       we can put diff style colors or * for that.
     2>there must be one codition ,on occurence of which we want to save the data,
       e.g first time page is loaded and I just refresh the page without click of
      AddNew Table button which creates dynamic table and fields values.We can put
      this validation to avoid unconditionally call event of savePageSatus.asp
  Please let me know if you find any other techniques!!
Hope this will help you


Cheers :)

vinod
 
Old October 10th, 2006, 02:04 AM
Registered User
 
Join Date: May 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sinus_
Default

you could store them in sessions instead of using cookies

beginning PHP!





Similar Threads
Thread Thread Starter Forum Replies Last Post
Displaying < and > in browser csummers XSLT 1 January 24th, 2008 08:49 PM
Problem with IE's innerHTML and <form> tags??!?! nebulus Javascript 1 February 15th, 2006 05:08 PM
Sort By when table dynamically built using FSO nancy Classic ASP Databases 6 September 11th, 2004 04:17 AM
How to dynamically insert <META> tag in .HTML? Abdul Hameed Javascript 1 August 11th, 2004 10:03 AM
how to dynamically insert <META> tag in .html Abdul Hameed XSLT 1 August 10th, 2004 03:58 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.