Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

problem with fileUploadSettings
  • Hey guys,

    I'm trying to use fileUploadSettings in order to change scriptData:


    <script type=\"text/javascript\">
    $(document).ready(function() {


    $('#fileInput').fileUpload ({
    'uploader' : 'uploadify/uploader.swf',
    'script' : 'upload.php',
    'cancelImg' : 'uploadify/cancel.png',
    'auto' : 'true',
    'folder' : '../uploaded',
    onComplete:function(e, queueId, fileObj, response, data) {
    $(\"#img\").attr({src: response });

    }
    });



    $(\"#go\").click(function(event){
    id = $(\"#id\").val();
    $('#fileInput').fileUploadSettings('scriptData','&amp;id=' + id);
    $.get(\"getcurrpic.php\", { id: id}, function(ret){
    $(\"#img\").attr({src: ret });
    $(\"#pic\").css({'display': 'inline'});
    $(\"#picin\").css({'display': 'inline'});

    });


    });

    });




    When I click "go", this is the error I get:

    document.getElementById(a(this).attr("id") + "Uploader").updateSettings is not a function


    I've also downloaded the samples and tried the following with the same exact result:

    $('#id').bind('change', function(){
    $('#fileInput').fileUploadSettings('scriptData','&amp;id=' + $(this).val());
    });


    Please help
  • Any chance for some help?
  • your problem lies in syntax. Without trying your code, what happens when you delete the onComplete with the bind in place? This could just be a typo but your bind above is linked to #id not #go
  • Same problem here

    Any help ?

    Stan