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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.