IE6,7 swfu 1.02 error

Uploader is not started. I have only 2 form fields: Brose and Upload
JS:

var swfu;

window.onload = function() {

// Max settings

swfu = new SWFUpload({
upload_script : "/upload.php?PHPSESSID={/literal}{$SESSION_ID}{literal}&album_id={/literal}{$album_id}{literal}&user_id={/literal}{$user_id}{literal}",
// post_params: {"PHPSESSID" : "{/literal}{$SESSION_ID}{literal}",
// "album_id" : "{/literal}{$album_id}{literal}",
// "user_id" : "{/literal}{$user_id}{literal}"},
target : "SWFUploadTarget",
flash_path : "/jscripts/SWFUpload/SWFUpload.swf?{/literal}{$jopa}{literal}",
allowed_filesize : 5242880, // 5 MB
allowed_filetypes : "*.jpg; *.png; *.gif; *.jpeg",
allowed_filetypes_description : "Файлы изображений",
browse_link_innerhtml : "Выбрать изображения?",
upload_link_innerhtml : "Загрузить выбранные файлы",
browse_link_class : "swfuploadbtn browsebtn",
upload_link_class : "swfuploadbtn uploadbtn",
flash_loaded_callback : 'swfu.flashLoaded',
upload_file_queued_callback : "fileQueued",
upload_file_start_callback : 'uploadFileStart',
upload_progress_callback : 'uploadProgress',
upload_file_complete_callback : 'uploadFileComplete',
upload_file_cancel_callback : 'uploadFileCancelled',
upload_queue_complete_callback : 'uploadQueueComplete',
upload_error_callback : 'uploadError',
upload_cancel_callback : 'uploadCancel',
auto_upload : false,
debug: true
});
}
SWFUpload.DocumentReady(function () {});

When I comment onload function - IE wrote that the page was aborted

Somebody can help me???

gyphie's picture

Odd code

I'll assume that this:
upload_script : "/upload.php?PHPSESSID={/literal}{$SESSION_ID}{literal}&album_id={/literal}{$album_id}{literal}&user_id={/literal}{$user_id}{literal}"

is your server side script and will be translated to something useful.

But that shouldn't affect your javascript code anyways. Are you using the SWFObject plugin? If not the line SWFUpload.DocumentReady(function () {}); is probably what is giving you trouble. Have you tried other browsers (ones with better JavaScript debugging (e.g., FireFox))?

gyphie's picture

1.02?

Do you really mean version 1.02?

in firefox all working

in firefox all working fine
I have one's doubts about 1.02, becuse project is old and we used at first
SWFUpload v1 Revision 6.2, then SWFUpload v1.0.2 Official Release
And all worked

After site redesign In ie uploader failed