Remove [object XMLDocument]

Posted on 2011-10-14
Last Modified: 2012-05-12
For reasons I can't go into here I'm using the PrettyPhoto's Ajax option to call an HTML file into a lightbox. The problem is that my HTML file  does not appear in the lightbox -- just [object XMLDocument]. I know absolutely nothing about Ajax and was wondering if there was a simple way around this.
Question by:tekgrl
    LVL 81

    Expert Comment

    please provide a link to your page

    LVL 42

    Accepted Solution

    [object XMLDocument] is a container object that will contain your html file in the form of a property such as responseXML.  You will need to assign this to your PrettyPhoto

    Can you post your ajax script to give you an example of how to do this.

    It may be something like this:
    function loadpage(page_request, containerid){
    if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)){
    $(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animationSpeed:'slow',theme:'dark_rounded',slideshow:4000, autoplay_slideshow: false});

    Open in new window


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Hello World !, Thanks : My Sincere thanks to @Michael Male who encouraged me to write an article on this in my  blog ( Introduction:       There are several technical issues a developer may face in his…
    I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now