PDA

View Full Version : problem after fetching the xml file



hemant1
25 May 2011, 9:57 PM
My Code is
demos.Data.ajax = new Ext.Panel({
scroll: 'vertical',
cls: 'card card3',
styleHtmlContent: true,

dockedItems: [
{
dock: 'top',
xtype: 'toolbar',
items: [
{
text: 'Start',
handler: function () {
var panel = demos.Data.ajax;
panel.update('');
panel.setLoading(true, true);
Ext.Ajax.request
({
url: 'pptaa.xml',
success: function (response, opts) {
var obj = response.responseText;
panel.update(response.responseText);
panel.scroller.scrollTo({ x: 0, y: 0 });
panel.setLoading(false);
}
});
}
}
]
}
]
});


My xml File is


<?xml version="1.0" encoding="utf-8"?>
<presentation>
<slide>
<slide_content>
<p Height="540px" style="background-image: url('img0.png');padding-top:0px;padding-left:0.2492913px; height:540px;width:719.5014px">
<canvas id="canvas1" width="462px" style="height:186;padding-top:54px;padding-left:129px;background-color:#00f;-webkit-border-radius: 15px;rotation:0px;" ></canvas>
<Text>
<font face="Myriad Pro" Bold="msoFalse" Italic="msoFalse" Size="10px" Rotated="msoFalse" textAlign="center" Alignment="msoTextEffectAlignmentCentered">
<br/> Learning from E-Learning</br>
</font>
<font face="Myriad Pro" Bold="msoFalse" Italic="msoFalse" Size="5px" Rotated="msoFalse" Alignment="msoTextEffectAlignmentCentered">
Innovating Financial Markets Education and Product Distribution</br>
</font>
</Text>
</p>

</slide_content>
</slide>
<slide>
<slide_content>
<Type>Group</Type>
<Top>16.03591</Top>
<Left>0</Left>
<Height>40.9641</Height>
<Width>720</Width>
<Rotation>0</Rotation>
<img>img1.png</img>
</slide_content>
<slide_content>
<Type>Text</Type>
<Top>89.12504</Top>
<Left>36</Left>
<Height>72.87496</Height>
<Width>684</Width>
<Rotation>0</Rotation>
<Text fontName="Myriad Pro" Bold="msoFalse" Italic="msoFalse" Size="16">E-Learning is an umbrella term for any type of learning, which is supported by electronic or digital media either used for the presentation of the content, the distribution of learning material and/or the communication among teacher and learners.</Text>
</slide_content>
<slide_content>
<Type>Group</Type>
<Top>180.0001</Top>
<Left>36</Left>
<Height>66</Height>
<Width>367.2</Width>
<Rotation>0</Rotation>
<img>img2.png</img>
</slide_content>
<slide_content>
<Type>Group</Type>
<Top>255.6</Top>
<Left>46.8</Left>
<Height>38.4</Height>
<Width>367.2</Width>
<Rotation>0</Rotation>
<img>img3.png</img>
</slide_content>
<slide_content>
<Type>Group</Type>
<Top>306</Top>
<Left>84.24</Left>
<Height>18</Height>
<Width>227.76</Width>
<Rotation>0</Rotation>
<img>img4.png</img>
</slide_content>
<slide_content>
<Type>Group</Type>
<Top>330</Top>
<Left>84</Left>
<Height>24</Height>
<Width>246</Width>
<Rotation>0</Rotation>
<img>img5.png</img>
</slide_content>
<slide_content>
<Type>Group</Type>
<Top>354</Top>
<Left>84.24</Left>
<Height>24</Height>
<Width>209.76</Width>
<Rotation>0</Rotation>
<img>img6.png</img>
</slide_content>
<slide_content>
<Type>Group</Type>
<Top>378</Top>
<Left>84.48</Left>
<Height>24</Height>
<Width>221.52</Width>
<Rotation>0</Rotation>
<img>img7.png</img>
</slide_content>
</slide>
</presentation>

My Problem is when i fetch the xml file i got whole xml file in response.responseText
now i want to fetch at a time only one slide tag for one page
and another slide tag for second page
how can i do this

thanks,