rejetto forum

Progress Bar for Uploads or something...

TSG · 9 · 5478

0 Members and 1 Guest are viewing this topic.

Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
I got this email from a user, i have actually brought up something like this once before. The user wants a progress bar of some sort... now i know that the frame we currently use is to achieve something like this, but in some instances even that does not work, it has a habbit of just pausing the auto refresh until the file has finished uploading. The image the user refers to is just an image of an IE download box. To achieve an answer it could be done with some javascript and an iframe... i have ideas popping up everywhere... it could also work with the current progress section and an iframe...

The best solution i can see, which is un-tested, is to open the progress in a popup window which would auto refresh without pausing...

Thought i should post the persons email on here and see what other people have come up with to achieve this successfully.

I didn't think that people still used my old template  :o i am tempted to build an Orange and Blue 2! which will be based on the ToG code base... ToG has left the Orange and Blue in the dirt with advancements, i think it might be nice to update it.

I started playing with HFS a couple of weeks ago and found and downloaded your 'orange and blue with thumbnails template' with the program. I like the template a lot and and made a few tweaks to it but not being a programmer I have one issue that has me stumped. I would like to add a upload progress indicator to the main upload screen so the user can see the status of the upload without opening the progress screen. Something like the one below but it doesn't have to be fancy. Maybe just percentage completed like on the banner of the screen shot below or the line that starts with Estimated Time left:.

Any help you could give me would be appreciated and thanks for all your hard work on creating this great template.

Thanks
L.B
« Last Edit: April 17, 2007, 07:53:41 AM by That_Stevens_Guy »


Offline Giant Eagle

  • Tireless poster
  • ****
    • Posts: 535
  • >=3 RAWR!
    • View Profile
    • RAWR-Designs.com
I've never put my mind in an upload progress bar thing.. Might be cool to add one in Terayon ;D (Yet another cause to delay the release)


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
Ok here is my solution i made for the ToG. It works quite nicely as the page refreshes.

I have made a javascript function that re-writes the non-javascript way to view progress, you get the option to open the progress box whenever you like and view it uploading without a hitch with javascript.

If you have javascript off, you get all the old ToG options. I know it seems redundant but it is only like 2 -3 lines of code and it works quite nicely. I'm up for any suggestions on this. As you know the ToG is a lightweight template, so progress bars like what will be seen in the Terayon and already in Live templates will probably not happen.

So whoever it was that emailed me. Just lookout for an updated Orange and Blue template. I plan to rebuild the Orange and Blue next university holidays :D, for now if you want to have a go at implementing it before then (its about 8 wks away) just simply download the new ToG when i release build 06 and hunt the code pieces down.

[attachment deleted by admin]
« Last Edit: April 22, 2007, 05:05:26 AM by That_Stevens_Guy »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
let see if i got it all:
the current
Code: [Select]
 <meta http-equiv="Refresh" content="7;URL=/~progress">
doesn't always work, as we know. AFAIRemember, it doesn't in firefox.

Now you added/substituted with an equivalent javascript, and it works in firefox.
right?


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs
No, BUT i could try to use javascript... i know the code... I just find opening it in a different browser window allows it to refresh while uploading in Firefox... although i will admit it still freezes up every so often, maybe i will try out a javascript function to do it... too tired atm to do it though  ;)


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
so, your current solution is to have a different window instead of a frame?


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
i was thinking on using a simil-AJAX solution for the default tpl.
anyway, in the future i plan to have 2 default tpls. one with javascript and one without js but with less features.


Offline TSG

  • Operator
  • Tireless poster
  • *****
    • Posts: 1935
    • View Profile
    • RAWR-Designs