wichosaenz
Posts: 15
|
| Posted: 02/02/2009, 2:47 PM |
|
I have a Chart Flash with static parameters (in desing), but i want change the parameters (execute) the ASP Page. Example.
I have 4 link, each one read "Bar", Pie", Line" etc, etc.
I could program a little JavaScript function when a click event of the link and my Chart Flash change the type, but how i can change de XML Code of this Flash Chart?
Because in this xml code have all the parameters.
Thanks, I will waiting your help or some tip.
|
 |
 |
JimmyCrackedCorn
Posts: 583
|
| Posted: 02/03/2009, 9:17 PM |
|
Please do not post the same message in multiple forums!
_________________
Walter Kempees...you are dearly missed. |
 |
 |
wichosaenz
Posts: 15
|
| Posted: 02/04/2009, 8:04 AM |
|
If you don't have any help or answer, please don't submit your comments.
This is a community, and like that we help us.
Please visit another Forums and review how work a simple forum (HELP US!!!).
Thanks!
PSI, I put my answer in the Spanish Section, there i can share my knwolege.
CIAO!!
|
 |
 |
wichosaenz
Posts: 15
|
| Posted: 02/05/2009, 9:02 AM |
|
Well i was using two way:
Change the Value of an Attribute
In the DOM, attributes are nodes. Unlike element nodes, attribute nodes have text values.
The way to change the value of an attribute, is to change its text value.
This can be done using the setAttribute() method or using the nodeValue property of the attribute node.
Change an Attribute Using setAttribute()
The setAttribute() method changes the value of an existing attribute, or creates a new attribute.
xmlDoc=loadXMLDoc("FlashChart.xml");
x=xmlDoc.getElementsByTagName('Title');
x[0].setAttribute("text","El titulo del Flash Chart que yo deseo");
Change an Attribute Using nodeValue
The nodeValue property can be used to change the value of a attribute node:
xmlDoc=loadXMLDoc("FlashChart.xml");
x=xmlDoc.getElementsByTagName("Title")[0]
y=x.getAttributeNode("text");
y.nodeValue="El titulo del Flash Chart que yo deseo";
And this you can modify the XML file in the FlashChart
|
 |
 |
|