Click here to Skip to main content
15,789,776 members
Please Sign up or sign in to vote.
0.00/5 (No votes)

i want my users on my website to be able to change the bodys background image via

in css.

so far i have:
<input type="file" id="file_upload" name="file_upload" />
   <a href="java<!-- no -->script:$('#file_upload').uploadifyUpload();">Upload File</a>

and the jQuery
$(document).ready(function() {
      'uploader'    : '/uploadify/uploadify.swf',
      'script'      : '/uploadify/uploadify.php',
      'cancelImg'   : '/uploadify/cancel.png',
      'folder'      : '/uploads',
	  'sizeLimit'   : 204800,
	  'onComplete'  : function(event, ID, fileObj, response, data) {
      alert('There are ' + data.fileCount + ' files remaining in the queue.');

i want to replace the 'alert' with a string which could do this...
any ideas on what to do next?

My server supports PHP

1 solution

Use jQuery to set the background image after the upload is complete.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900