thenewprogrammer
New Member
- Messages
- 45
- Reaction score
- 0
- Points
- 0
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 uploader
http://webdeveloperplus.com/jquery/multiple-file-upload-with-progress-bar-using-jquery/
The place to call it is in the begining
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.
This is the complete uploader
http://webdeveloperplus.com/jquery/multiple-file-upload-with-progress-bar-using-jquery/
The place to call it is in the begining
Code:
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. })
Last edited: