jQWidgets Forums

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts

  • rbossy
    Participant

    Dear Dimitar,

    Thanks for the quick answer, I should defenitely check SO before posting here, sorry for that. The first link was sort of helpful but rather incomplete I’m afraid.

    The good news is that there is a solution that worked for me: to change the server response MIME to text/html. args.event.response is then a string containing the JSON; I can parse it. However I’m fortunate enough to have control over the server process, that might not be a suitable solution in everey case.

    Another proposed solution was to remove multipart/form-data, but this is not possible when uploading files.

    Another one wat to add a query string to the URL, didn’t work for me (I was suspicious about this solution anyway).

    Finally, apparently, the definite solution is to use $.post instead of ajaxSubmit. However I suspect this call is buried somewhere in jqxfileupload.js or jquery-1.11.1.min.js.

    Here’s the stack trace I get from Chromium, if it is of any value:

    Resource interpreted as Document but transferred with MIME type application/json: “http://localhost:8080/…”.
    a.extend._uploadFile @ jqxfileupload.js:7
    (anonymous function) @ jqxfileupload.js:7
    m.event.dispatch @ jquery-1.11.1.min.js:3
    r.handle @ jquery-1.11.1.min.js:3

    Thank you very much, jqxWidgets is fantastic,
    Robert

    Edit: hid the URL

    in reply to: events on treemap events on treemap #62708

    rbossy
    Participant

    I managed to bind click events to individual areas, through the renderCallbacks, like this:

    `
    renderCallbacks: {

    ‘*’: function (element, data) {
    element.click(function() { … });
    },
    …`

Viewing 2 posts - 1 through 2 (of 2 total)