Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder fireblade's Avatar
    Join Date
    May 2007
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Fetching a new template using Ajax XML. Help please.

    Hi friends,

    I am using Ajax to draw a new layer on top of the existing webpage. I send the call back to ajax helper php class and retrieve the html codes from a template via xml. For example the part of XML response would be as follows.

    Code:
    <newTemplate>
     <div id='gallery' class='newLayer'>new page
     <h1>heading</h1>
     <div>body</div>
     </div>
    </newTemplate>
    I am using jQuery to fetch this value from xml to a javascript variable.

    but one I appended these variable to body, I can not see the html codes of these works. nothing happens. I can see nothing on the screen.

    Am I doing any mistake? or is there are different way to do this? Any body please help me to overcome this issue.

    Thank you guys.

  • #2
    New Coder fireblade's Avatar
    Join Date
    May 2007
    Posts
    71
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks guys for the 34 views of this thread.
    I managed to do it.
    Its working fine now.
    Thanks all.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •