XML http request object

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Centaury
    New Member
    • Mar 2006
    • 10

    XML http request object

    Hello, some time ago I've created a site in asp in combination with the XML http request object, this way I was able to load content from a database into div elements, this way there is no need to reload a whole page wich speeds up the website's page loading time dramatically.

    I think it is a superb solution, also the content loaded in the div elements cannot be seen when viewing the source code of a page.

    But...I have found out, it has a problem when using javascript within those div elements, javascript won't work when content loaded within the div element using the xml http request object.

    Does anyone know if there is a way to make it work,
    javascript loaded from a database within a div element using xml http request object?

    Thanks for all help in advance :)
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Are you getting any JavaScript error messages?
    Could you please post your JavaScript code (please remember to use code tags when posting code snippets)

    -Frinny

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      Originally posted by Centaury
      I think it is a superb solution, also the content loaded in the div elements cannot be seen when viewing the source code of a page.
      unless the user knows of firebug or the web developer plugins.

      javascript is executed on page load. any other scripts that may be included later (by ajax) have to be executed separately by eval() (see http://bytes.com/topic/javascript/an...oaded-into-div)

      regards

      Comment

      Working...