# UPLOADIFY STUFF
uploadify.inject()
swfobject.inject()
# UPLOADIFY STUFF
file_uploadify = UploadifySource(elt_id =
"edit_movie_file_form_upload_file",
buttonText="File",
url=data_service_url,
inputName="upload_file")
file_uploadify.inject()
thumbnail_uploadify = UploadifySource(elt_id =
"edit_movie_file_form_thumbnail_file",
buttonText="Thumbnail",
url=data_service_url,
inputName="thumbnail_file")
thumbnail_uploadify.inject()
Hi all,
this is a code snippet from my controller, but at rendering only the
first UploadifySource resource is injected
if I comment it, then the second one is properly injected.
below is my definition of the resource
class UploadifySource(JSSource):
src = """$(document).ready(function() {
$('#$elt_id').uploadify({
'uploader' : '/uploadify/uploadify.swf',
'expressInstall' : '/uploadify/expressInstall.swf',
'script' : '$url',
'cancelImg' : '/images/cancel.png',
'buttonText' : '$buttonText',
'auto' : true,
// 'fileExt' : '*.doc;*.odt;*.pdf',
// 'fileDesc' : 'Document Files (.DOC, .ODT, .PDF)'
'multi' : false,
'scriptData' : {'_method':'PUT',},
'fileDataName' : '$inputName',
'scriptAccess' : 'always',
});
});
"""
source_vars = ["elt_id", "buttonText", "url", "inputName",
"media_id"]
location = "bodybottom"
any pointers welcome
NiL
--
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en.