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

  • Home
  • SEARCH
  • 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

I'm currently working on an AJAX file upload script, which works like a charm
I'm using the jquery form plugin ( http://malsup.com/jquery/form/ ) to upload a file via
I'm using the jQuery plugin ajaxForm to submit a file upload form via AJAX.
I am using MS AJAX ASP.NET Components (Calendar Extender) and I'm finding this problem.
I've got this textBox which triggers off an ajax request using jQuery: <asp:TextBox ID=postcodeTextBox
How do I preview a url using ajax? I have seen this done with
I have been trying to use an ajax-style file upload component (like the dojox
I'm doing an ajax style file upload by posting the file in a form
Using this question as the base is there an alogrithm or coding example to
Since I have started using this site, I keep hearing about the Boost library.

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.