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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T22:34:01+00:00 2026-05-16T22:34:01+00:00

I looking more for ‘how to troubleshoot’ rather than.. the answer is this. Though

  • 0

I looking more for ‘how to troubleshoot’ rather than.. the answer is this. Though I obviously wouldn’t mind an answer.

Here is my JS.

function listFiles(path) {

        document.path = 'dir='+path;

        $.ajax({
            url: "<?php echo site_url("admin/media/get_folder");?>",
            //data: document.path,
            success: function(data) {
                if (data.error) {
                    alert(data.error);
                    return;
                }

                $.each(data, function(key, arr) {
                    $("#files").append(
                        '<a href="#" class="' + arr.type + 
                           ' row">'     + key + '</a>'
                    );
                });
            },
            error: function(e) {
                alert('foo');
            }
        });
        return false;
    }

    listFiles('');

This is what the JS is being fed.

{"files":{"type":"folder","path":"C:\\xampp\\htdocs\\codeigniter\\uploads\\"},
"images":{"type":"folder","path":"C:\\xampp\\htdocs\\codeigniter\\uploads\\"}}

When I run in IE9 I get back foo. I can’t locate my IE8 install unfortunately but it would be good to debug this anyway.

EDIT!

In IE the following tests give the following results.

alert(arguments[1]) = parsererror. 
alert(e.status + '\n' + e.statusText); = 200 / OK. 

When I copy the javascript URL from the IE source into the IE browser bar the url loads fine and prompts me to download the json file

EDIT EDIT

Found the cause.

Could not complete the operation due
to error c00ce56e

On looking that up, I found this. http://support.microsoft.com/?scid=kb%3Ben-us%3B304625&x=10&y=13

How do I properly encode json documents?

  • 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-16T22:34:01+00:00Added an answer on May 16, 2026 at 10:34 pm

    I know it is ASP but the results should still be the same. Check out this link http://forums.asp.net/p/1345268/2732795.aspx. Try changing the content type to ISO or something, if ISO doesn’t work then try UTF-8. http://api.jquery.com/jQuery.ajax/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I guess I'm looking more for advice than any specific coding solutions. Here's the
I've found a similar question here , but I'm looking for more general solutions.
More of a general MATLAB question than looking for programming advice -- if I
I have heard about this problem and now I am looking for more specific
I don't have a specific question here but I'm more looking for some guidance
I am looking for more advanced alternatives to xsd.exe . I am just about
I am making my first text field, and I am looking for more of
I am looking for a more elegant solution to formatting a MAC address with
I am looking for a more efficient way to do comparisons between all elements
I am looking for a more jquery/cleaner way to be able to select all

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.