I am trying to use simplemodal plugin and load a full marked up html
file with imbedded script files and css because I want to be able to
use that page as a standalone as well as call it from another page and
have it pop up in modal dialog box. Here is a stripped down test
version, not working as well as the full blown version on my local
system, but I wanted someone to get an idea.

http://www.i-strive.com/testing/simplemodal.html

when I try and run the full page load in FF2 on XP & 3.? on Mac I get
a

uncaught exception: [Exception... "Could not convert JavaScript
argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"
location: "JS frame :: http://127.0.0.1/Scripts/jquery.min.js ::
anonymous :: line 12" data: no]

on $.get(url, function(data) {
            // create a modal dialog with the data

            //console.log("Made it before modal load");
            //console.log(data);
            $(data).modal({

                maxHeight: 400,
                maxWidth: 400,
                position: ["15%", ],
                onOpen: contact.open,
                onShow: contact.show,
                onClose: contact.close
            });
        });
The page loads up but I don't understand how to fix the error, if it
can even be fixed. I was thinking that maybe you can't load full html
pages with head, body, css & js script files embedded but originally I
almost had it completely working in IE, I was just trying to get
positioning fixed when everything went kaboom


the strange thing is even though my test version bombs on full page
load in IE, on my local system where I had everything set up correctly
it only errors out when I close the dialog box after loading the full
page correctly.

In this function :
    close: function(dialog) {
        dialog.data.fadeOut(100, function() {
            dialog.container.fadeOut(100, function() {
                dialog.overlay.fadeOut(100, function() {
                    $.modal.close();
                });
            });
        });
},
the error in IE is $.modal is null or not an object


SO the primary question is I know I can load partial pages , but can I
load a full document into any of the modal plugins?

I have a bunch of pages that I want to inject into modal popup and not
new windows, these are new asp.net pages that I am calling from
classic asp pages. Any ideas on what would be the best way to handle
this?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to