It looks like you're new here. If you want to get involved, click one of these buttons!
<?php foreach ($query->result() as $row): ?>
<li>
<table width="570" class="imageDragRow" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20" align="center"><?php echo $i; ?></td>
<td width="100" align="center">
<img src="../../social_icons/<?php echo $row->image; ?>" style="vertical-align:middle">
<input id="fileInput<?php echo $row->id; ?>" name="fileInput<?php echo $row->id; ?>" type="file" style="vertical-align:middle">
</td>
<td align="center">
<input type="text" size="45" value="<?php echo $row->url; ?>">
</td>
<td width="50" align="center">
<?php if ($row->visible == 'true'): ?>
<input type="hidden" class="visValue" value="true"><img class="clickable" src="../../assets/adminIcons/visibleT.png" onClick="javascript:changeVisibility(this)">
<?php else: ?>
<input type="hidden" class="visValue" value="false"><img class="clickable" src="../../assets/adminIcons/visibleF.png" onClick="javascript:changeVisibility(this)">
<?php endif; ?>
</td>
<td width="40" align="center">
<img class="clickable" src="../../assets/adminIcons/delete.png" onClick="javascript:deleteRow(<?php echo $row->id; ?>, this, 'social')">
</td>
</tr>
</table>
</li>
<script>
$(document).ready(function() {
$('#fileInput<?php echo $row->id; ?>').uploadify({
'script' : '<?php echo base_url(); ?>uploads/social_handler/<?php echo $row->id; ?>/',
'uploader' : '<?php echo base_url(); ?>assets/uploadify/uploadify.swf',
'cancelImg' : '<?php echo base_url(); ?>assets/uploadify/cancel.png',
'buttonImg' : '<?php echo base_url(); ?>assets/adminIcons/replaceimage24.png',
'fileExt' : '*.png',
'fileDesc' : 'png files',
'sizeLimit' : 1000000,
'height' : 20,
'width' : 24,
'auto' : true,
'multi' : false,
'queueID' : 'upload_queue',
'onAllComplete' : function(){getContent('edit_social_media', 2)}
});
});
</script>
<?php $i++ ?>
<?php endforeach; ?>
<!doctype html>
<html>
<head>
</head>
<body>
<input type="file" name="file_upload" id="file_upload" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="jquery.uploadify-3.1.min.js"></script>
<script>
$(function(){
$("#file_upload").uploadify({
'swf' : 'uploadify.swf',
'uploader' : 'uploads/',
'buttonImage' : 'replaceimage24.png',
'fileTypeDesc' : 'png files',
'fileTypeExts' : '*.png',
'auto' : true,
'multi' : false,
'width' : 24,
'height' : 20
});
});
</script>
</body>
</html>
SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/Users/Morgan/Desktop/uploadify/uploadify.swf?preventswfcaching=1335433658589 cannot access null.
at flash.external::ExternalInterface$/_initJS()
at flash.external::ExternalInterface$/call()
at ExternalCall$/Bool()
at SWFUpload()