Advertisement

09.10.2008 at 12:57AM PDT, ID: 23718332
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.4

Binding XML to an HTML element's style

Asked by Velio in JavaScript, Hypertext Markup Language (HTML), Extensible Markup Language (XML)

Tags: , , , , ,

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
[+][-]09.10.2008 at 02:54AM PDT, ID: 22436702

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Hypertext Markup Language (HTML), Extensible Markup Language (XML)
Tags: Microsoft, Internet Explorer, 7, Javascript, IE7, XML Data Islands
Sign Up Now!
Solution Provided By: Velio
Participating Experts: 0
Solution Grade: A
 
 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628