Hi Experts,
Here's a summary of what's going on. I am busy developing an HTML page, which needs to have "sticky notes" functionality - the user clicks a button, a draggable/resizable panel (absolutely positioned div) pops up and they can write notes and place it in the appropriate place.
This is all done by means of binding an XML Data Island to a table, where each row contains the markup for the sticky note divs, and I simly add an xml element using javascript when I want to add a new note.
I also persist the sticky notes xml to a file on the client's computer, so that one user can send their notes to another and they can be loaded up in another instance of the page. (All of this is happening client-side, using only activeX and javascript, there's no server-side involved at all, the html page is generated once-off by a desktop application).
The xml includes location and size attributes, which I update as the user moves/resizes the sticky notes. I am now having a little difficulty loading the saved locations/sizes and applying them to the sticky note divs, since (As far as I know) I can't explicitly bind the style properties of my div to the xml.
What I need is some event, which fires when a new table/xml row is created/loaded so I can go read the attributes from the xml and apply them to the corresponding sticky note's style.
I've had a look at onrowenter, ondatasetchanged events of the XML element but it seems like they fire BEFORE the data is actually bound to the table.
Also tried binding the size/location to hidden fields inside the div and handling their onchange events, but those events never fired.
If anyone has any clue how to do something like this, I would be eternally grateful :) take care.
Start Free Trial