[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Uploadify jquery - process email script

Posted on 2011-02-16
3
Medium Priority
?
500 Views
Last Modified: 2012-06-27
'onAllComplete' : function(event,data) {
      alert(data.filesUploaded + ' files uploaded successfully!');
     
    }
        });

When an upload is complete the above function kicks in... how would I call a php email script from this function? I want to send out a simple email every time an upload occurs. Thanks
0
Comment
Question by:pixelscape
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Expert Comment

by:Tomarse111
ID: 34909016
Just after your alert you would need to do a jQuery post or get (AJAX call) to your PHP page, passing any relevant variables across through their options.

This would then trigger your email page.

More info can be found here:

http://api.jquery.com/jQuery.ajax/
http://api.jquery.com/jQuery.post/
http://api.jquery.com/jQuery.get/
0
 

Author Comment

by:pixelscape
ID: 34909318

Thanks for the quick response. I don't need to pass anything, just call the php email file.

I put this beneath the alert...
$.post("send_upload.php");

What am I missing?
0
 
LVL 15

Accepted Solution

by:
Tomarse111 earned 2000 total points
ID: 34909801
That should be enough ... you can add a function on the end to see if it has been triggered or use something like Firebug for Firefox to monitor the AJAX post and response ...

$.post("send_upload.php",function(data){
alert('complete')
});

you could also check to see if error has occured during the AJAX call. Again check the URL's I posted in my first post for the correct syntax.

0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question