I try to write javascript in Js helper format
$(function(){
$('#yourInputFileId').fileUploader({
limit: '',
imageLoader: '',
buttonUpload: '#pxUpload',
buttonClear: '#pxClear',
successOutput: 'File Uploaded',
errorOutput: 'Failed',
inputName: 'userfile',
inputSize: 30,
allowedExtension: 'jpg|jpeg|png|gif',
callback: function(e) {
}
});
});
echo $this->Js->get('#upload');
echo $this->Js->fileUploader(array(
'limit'=>'',
'buttonUpload'=>'#pxupload',
'buttonClear'=>'#pxClear',
'successOutput'=>'File Uploaded',
'errorOutput'=>'Failed',
'inputname'=>'userfile',
'inputsize'=> 30,
'allowExtension'=>'jpg|jpeg|png|gif',
));
I got Object of class JsHelper could not be converted to string and
JsHelper:: Missing Method fileUploader is undefined
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php