Jump to content

Help calling a function from uploader


thenewperson

Recommended Posts

Hey, im using a uploader that works fine but instead of calling another page to test conditions i want to call a specific function. The function i want to call works perfectly fine if i load and call it normally but in this code it screws up.

 

This is the complete uploaded

http://webdeveloperplus.com/jquery/multiple-file-upload-with-progress-bar-using-jquery/

 

The place to call it is in the begining

1.$(function(){   
2.    $('#swfupload-control').swfupload({   
3.        upload_url: "upload-file.php",   
4.        file_post_name: 'uploadfile',   
5.        file_size_limit : "1024",   
6.        file_types : "*.jpg;*.png;*.gif",   
7.        file_types_description : "Image files",   
8.        file_upload_limit : 5,   
9.        flash_url : "js/swfupload/swfupload.swf",   
10.        button_image_url : 'js/swfupload/wdp_buttons_upload_114x29.png',   
11.        button_width : 114,   
12.        button_height : 29,   
13.        button_placeholder : $('#button')[0],   
14.        debug: false  
15.    })   

 

On line 3, i want to change that to call function uploadtesting($user). I tryed changing it to that instead of .php page however nnothing comes up when i upload file. I tryed adding php tags around it and it shows me  all the javascript of the uploader on the page.I just wantto change what is is caled when a file is uploaded to a function instead of php page.

Link to comment
https://forums.phpfreaks.com/topic/184247-help-calling-a-function-from-uploader/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.