Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1165
  • Last Modified:

DOM Exception: INVALID_CHARACTER_ERR (5)

I have a javascipt that uses a jQyery (ajaxFileUpload) script to upload a file (picture) to the server. It works find as a standalone page.
When I run it under Facebook (inside an iframe) under IE browser  I get the followin error message.
DOM Exception: INVALID_CHARACTER_ERR (5)
0
VapiSoft
Asked:
VapiSoft
  • 5
  • 4
1 Solution
 
AdamSenior DeveloperCommented:
Any chance you could post the script?
0
 
VapiSoftAuthor Commented:
The error is occured in this line
 url:'uploadImage.php?name='+encodeURIComponent(name),
 
function ajaxFileUpload(name)
{
    new_name=name;
	var change=0;
    
    $.ajaxFileUpload
    (
        {
            url:'uploadImage.php?name='+encodeURIComponent(name),
            secureuri:false,
            fileElementId:'fileToUpload',
            dataType: 'json',
            success: function (data, status)
            {
                if(typeof(data.error) != 'undefined')
                {
                    if(data.error != '')
                    {
                        alert(data.error);
                        return;
                    }
                    else
                    {                      
                     if (data.msg == "xyznolog")
                     {
                      askLogin();
                     }
                     else
                     {
                      onAddPicture3(data.msg); 
                     }
                     onClosePicture();
                    }
                }
                return;
            },
            error: function (data, status, e)
            {
                alert(e);
            }
        }
    ); 
}

Open in new window


uploadImage.php
0
 
AdamSenior DeveloperCommented:
I had a play with this, but I couldn't recreate your error.

Is the facebook page visible?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
VapiSoftAuthor Commented:
Yes.
The problem is that it is in Hebrew.
But I can explain to you how to receive the error.
I will create Screenshots to explain what to 'click'.
0
 
AdamSenior DeveloperCommented:
When it works as a standalone page, is that in Hebrew too?

Does it work in English?

Screenshots would be useful
0
 
VapiSoftAuthor Commented:
Make sure that you uncheck the
Enable IE debuggerOpen the Facebook app
http://www.my-tree.co.il/MyLeague/?page=1,1920,2348,5
Flow the steps:
Click-1 Click-2 Click-3 Click-4 Click-5-6Now you get the error.
0
 
AdamSenior DeveloperCommented:
I went to the URL you gave above.
Once I had logged in, I was asked if I wanted to access the app.
Once I did that, I was taken to

http://www.facebook.com/dialog/oauth?client_id=137931196287450&scope=email,read_stream&redirect_uri=http%3A%2F%2Fwww.my-tree.co.il%2FMyLeague%2Fredirect.php

where I received a 500 server side error - I didn't get to navigate through the app as described above.
This was in IE9.

I also got the 500 error on this page in Chrome.
0
 
VapiSoftAuthor Commented:
I've requested that this question be deleted for the following reason:

I didn't get a soultion.
0
 
AdamSenior DeveloperCommented:
I tried to answer, but as you can see from my last reply, the application is so broken that it's not possible to reproduce the the problem as you described it.

0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now