View Single Post
  #3 (permalink)  
Old May 11th, 2009, 01:28 PM
spring2009 spring2009 is offline
Registered User
Points: 23, Level: 1
Points: 23, Level: 1 Points: 23, Level: 1 Points: 23, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi thanks for the response.
I am aiming at a HTA application as this will be used by a single user on a single workstation.
I have created a HTA file, XSLT file. The hta has the following function to load the data
Code:
 function init()
   {
    var srcTree = new ActiveXObject("Msxml2.DOMDocument.5.0");
    srcTree.async=false;
    // You can substitute other XML file names here.
    srcTree.load("mbsaclioutxslt.xml");
 
    var xsltTree= new ActiveXObject("Msxml2.DOMDocument.5.0");
    xsltTree.async = false;
    // You can substitute other XSLT file names here.
    xsltTree.load("05-08-09.xslt");
 
    resTree.innerHTML = srcTree.transformNode(xsltTree);
   }
The xslt is displaying the data in a table format. One of the data attributes is a true/false value which is being diaplyed as a checkbox.

If the user updates the checkbox value of one or more of the row sets and clicks a button called SAVE at the bottom of the screen, the updated values should be saved to a local xml file.

I am able to load the data,display and save the file locally. But i am unable to get the user updates on the checkbox column. I have tried the following options
1. document.formname.fieldname.value to access the checkbox values when SAVE is clicked
2. onclick event for each checkbox to call a function
3. instead of using xslt, tried creating the html table using the document.write in body/script tag. Below is snippet of my hta file where the checkbox is being created.
Code:
  row_str = row_str & "<td><input type='checkbox' name='authorized' value='" & GUID & "' onClick='SaveData1 " & GUID & "'/></td>"
In all the cases the display and saving is fine but am unable to capture the updates to checkboxes. ANY HELP PLEASE

I can provide any other info if needed...


thanks so much
Reply With Quote