Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3394852
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:13:11+00:00 2026-05-18T04:13:11+00:00

I am using this ajax file upload script, and all works well in firefox

  • 0

I am using this ajax file upload script, and all works well in firefox http://valums.com/ajax-upload/

But it does not work in IE8.

EDIT: Ok, i’ve narrowed down the problem. In my php ajax response I do this

$result['table_1']='<b>text</b>';
echo json_encode($result);

The result I see in the IE developer tools looks like this

JOURNAL : [uploader] innerHTML = {"table_1":"<B>text&lt;\/b&gt;"}</B>

The end of the inner html got messed up, and the json got messed up with the correct ending tag somehow ending up outside the json??

I am using php 5.2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:13:11+00:00Added an answer on May 18, 2026 at 4:13 am

    Ok, I found a olution that works. This library works through an iframe, so to return text like

    $result='<b id="1">text</b>';
    

    I have to manually encode and decode the ” myself because they get messed up in the iframe.
    So the final php looks like this

    $result['table_1']=htmlentities(str_replace('"','|',getRowHTML()));
    echo json_encode($result);
    

    And then to manually decode in the javascript looks like this

       function(id, fileName, responseJSON)
        {
          $('#table_1 tbody').html
          (
             //this line decodes responseJSON.table_1
             $("<div/>").html(responseJSON.table_1.replace(/\|/g,'"')).text()
          );
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want to upload a file using ajax for this using this uploader http://valums.com/ajax-upload/ and
hii i am using ajax file upload in this code <script type=text/javascript src=fileuploader.js></script> <script
I'm using a flash/ajax file upload in php based on this site - http://blog.codeville.net/2008/11/24/jquery-ajax-uploader-plugin-with-progress-bar/
i'm using Valums Ajax uploader. all works great in Mozilla with this code: View:
I'm using FormData to ajax a file upload. The upload works, but the problem
I'm using the jquery form plugin ( http://malsup.com/jquery/form/ ) to upload a file via
I'm using a upload script with ajax and PHP and it works wonders for
I'm trying to do an ajax file upload using dojo.io.frame.send(). It works with FF
I'm currently working on an AJAX file upload script, which works like a charm
Simply this the code for PHP page the uses AJAX to upload file, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.