Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Unknown runtime error
  • Greetings;

    I was trying to implement "Uploadify" in a web application that I am creating, but with no luck.
    Here is the scenario:
    I have a page that's contained in an Iframe, and the Iframe contains "jQuery Tabs" that load an ajax page where the "Uploadify" form should be available.
    I inserted the script tags and CSS tags in the main page, and little script snippet as follows:


    <head>
    <link href=\"/CSS/jquery-ui-1.7.2.custom.css\" rel=\"stylesheet\" type=\"text/css\" />
    <link href=\"/CSS/uploadify.css\" rel=\"stylesheet\" type=\"text/css\" />
    <script src=\"/Scripts/jquery.js\" type=\"text/javascript\"></script>
    <script src=\"/Scripts/jquery-ui-1.7.2.custom.min.js\" type=\"text/javascript\"></script>
    <script src=\"/Scripts/swfobject.js\" type=\"text/javascript\"></script>
    <script src=\"/Scripts/jquery.uploadify.v2.1.0.min.js\" type=\"text/javascript\"></script>
    <script language=\"javascript\" type=\"text/javascript\">
    function ShowUploadImages()
    {
    $('#divUploadPhotos').uploadify({
    'uploader': '/Controls/Flash/uploadify.swf',
    'script': '/Ajax/MyProfile.aspx',
    'folder': '/Temp/',
    'cancelImg': '/images/cancel.png'
    });
    }
    </script>
    </head>


    And in the AJAX page that should be load there is a link that calls the above function, and some other HTML tags:

    <a href=\"javascript://\" onclick=\"ShowUploadImages()\">
    Create new album
    </a>
    <div id=\"divUploadPhotos\">&amp;nbsp;</div>


    The page load successfuly without any errors, and the ajax page too, but whenever I click on "Create new album", I am getting the following error:


    Message: Unknown runtime error
    Line: 4
    Char: 5942
    Code: 0
    URI: http://localhost:7171/Scripts/swfobject.js


    Even though, I implemented "Uploadify" in a normal page without the Iframe thing, and everything is working smoothly.
    Please advice.

    Best regards;
    MM
  • Hello again;

    Problem was successfuly fixed.
    Actually the thing that I forgot to mention that I am working with ASP.NET, so the ajax page contained a tag with a (runat="server") attribute and without it, you cannot add some asp.net controls, so I managed to replaced these controls (like ) by a normal tag and then removed the form tag, and now "Uploaddify" is working just fine :).

    Hope this helps anyone out there.

    Best regards;
    MM