We help IT Professionals succeed at work.
Get Started

Javascript code not working assistance needed

error77 asked
Last Modified: 2012-05-12
Hi all,

I am trying to get Uploadify to work but when I click the button to open the window that selects the files, nothing happens.

I was wondering if anyone can spot any potential problems in the code attached below.


<link href="/uploadfilesfolder/uploadify.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="/uploadfilesfolder/swfobject.js"></script>
<script type="text/javascript" src="/uploadfilesfolder/jquery.uploadify.min.js"></script>

<script type="text/javascript">
jQuery(document).ready(function() {

        'uploader'  : '/uploadfilesfolder/uploadify.swf',
        'script'    : '/uploadfilesfolder/uploadify.php',
        'cancelImg' : '/uploadfilesfolder/cancel.png',
        'folder'    : '<?php echo($_SERVER['DOCUMENT_ROOT']."/uploads/images") ?>',
        'auto'      : true


<input id="file_upload" type="file" name="Filedata" />
<p><a href="javascript:$('#file_upload').uploadifyUpload();">Upload Files</a></p>


Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE