Dynamic Content (Java/Ajax/innerHTML/myXHR)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • karlchad1979
    New Member
    • Mar 2010
    • 1

    Dynamic Content (Java/Ajax/innerHTML/myXHR)

    Hi,

    Bascially I have a main page with all the code setup to slide whatever content is in the div 'sub_content'. As below:



    Contained in the my "external pages" are different slide contents that I want inputting into the 'sub_content' div as below:



    If you click 'Test Link 2' you will see it fade out but it's then loading in the main page again?

    I think it is this line of code found in submenu.js where the problem lies?
    var myXHR = new Ajax( objLink.href + '&blnAjax=1', { method: 'get', evalScripts: true, autoCancel: true, onSuccess: showSubPage } ).request();

    Does this make sense? Your help is much appreciated!

    Karl
Working...