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 8264537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:29:36+00:00 2026-06-08T04:29:36+00:00

I am using Valum’s fileuploader http://valums.com/ajax-upload/ The below index.html uploads a file, and post.php

  • 0

I am using Valum’s fileuploader http://valums.com/ajax-upload/

The below index.html uploads a file, and post.php returns some json. Sorry for not making a jsfiddle, but don’t know how to implement the ajax response.

With FF, responseJSON.icon is

<img src="http://www.tapmeister.com/test/doc.png" width="32" height="32" />

With IE8, however, responseJSON.icon is

<IMG src='"http://www.tapmeister.com/test/doc.png"' width='"32"' height='"32"' >

I am okay with img being capitalized, however, those extra quotes are causing me havoc.

How is this fixed? Thank you

index.html

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <link href="fileuploader.css" rel="stylesheet" type="text/css"> 
    <style>body {font-size:13px; font-family:arial, sans-serif; width:700px; margin:100px auto;}</style>
    <script src="http://code.jquery.com/jquery-latest.js"></script> 
    <script src="fileuploader.js" type="text/javascript"></script>
    <script>        
    $(function(){
        var uploader = new qq.FileUploader({
            element: document.getElementById('file-uploader-demo1'),
            action: 'post.php',
            onComplete: function(id, fileName, responseJSON){
                $('#icons').append('<li>'+responseJSON.icon+' '+$('<span/>').text(responseJSON.icon).html()+'</li>');
            },
            debug: true
        });
    });
     </script>
</head>

<body>      
    <div id="file-uploader-demo1"></div>
    <ul id="icons"></ul>    
</body>
</html>

post.php

<?php
$icon='<img src="http://www.tapmeister.com/test/doc.png" width="32" height="32" />';
$data=array('icon'=>$icon, 'other'=>'other data');
echo(json_encode($data));
?>
  • 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-06-08T04:29:37+00:00Added an answer on June 8, 2026 at 4:29 am

    Why don’t you just send the URL of the image in your post.php and then build the IMG-Element in your javascript?

    <?php
    echo json_encode(array('icon' => 'http://google.de'));
    ?>
    

    Create Image Using:

    $('<img>').attr('src', responseJSON.icon); //...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been playing with Valum's AJAX upload script: http://valums.com/ajax-upload/ It ticks all the boxes
I am trying to use Valum's Ajax Upload to do file uploads on a
I am using valums-file-uploader plugin. It allows me to upload files using ajax. I
I am using Valums ajax file-upload plugins for multi file-upload using asp.net mvc 3.
When using Valums Ajax file uploader, how can I trigger the upload? The default
I am currently using Valums JQuery File Upload plugin. The plugin is very convenient
I am using the Valums Ajax Uploader to upload a batch of files. We
I'm using valums Ajax upload to upload images. I have mulitple upload buttons on
I am using this reference http://www.openjs.com/articles/ajax/ajax_file_upload/response_data.php for ajax uploader ,its working absolutely fine for
I'm using valums ajax file-uploader My nodejs server side looks like this: fileStream =

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.