Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
wouterc  
#1 Posted : Wednesday, October 06, 2004 4:37:00 AM(UTC)
wouterc

Rank: Member

Groups: Member
Joined: 7/19/2004(UTC)
Posts: 5

I just upgraded from ImageUploader 2.5 to 3.0 Where I use the function explorercombo. In this site we also have the abbility for users to change the layout Upload while checking pictures or upload with drag and drop. I made this happen with the following function:
Code:
function sc_switch() {
                        if (ImageUploader.Layout == 2) {
                                ImageUploader.Layout = 1;
                                document.getElementById("uploadswitch").innerHTML = "Add pictures with drag and drop";
                                type = "TwoPanes"
                        } else if (ImageUploader.Layout == 1) {
                                ImageUploader.Layout = 2;
                                document.getElementById("uploadswitch").innerHTML = "Add pictures with checking";
                                type = "ThreePanes"
                        }
                        document.getElementById("uploadFileCount").innerText = window.ImageUploader.UploadFileCount;
                        document.getElementById("totalFileSize").innerText = formatFileSize(window.ImageUploader.TotalFileSize);
                        return false;
                }
The link which activated:
Code:
<a id="uploadswitch" href=":;" onclick="return sc_switch();" class="mainMenu">Add pictures with checking</a>
In version 2.5 this was quite reliable. But in version 3.0 it is not really working for example you've to refresh the folder you're in to see the changed view. And if I change from layout 1 back to 2 the pictures are still checked. Is there some way I can get this working. Because I really really really really need this functionality working.

Edited by user Tuesday, February 26, 2008 11:25:33 AM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Wednesday, October 06, 2004 11:00:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 863

Thanks: 2 times
Was thanked: 25 time(s) in 25 post(s)
Unfortunately Image Uploader was not designed to switch between layout correctly in run-time. Frankly speaking version 2.5 was not designed for that too, but it worked by accident... :) The only way to achieve this is to refresh entire page after applying layout changes...
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.