Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Old 04-30-2005, 12:14 AM Need Progress Bar
Novice Talker

Posts: 13
Trades: 0
Hi,

I want to create a 'Progress Bar' similar to the one found on legalzoom.com. If you go to legalzoom.com, and chose a legal document to fill out [just create a fake email address and password to get in], you'll see a Progress Bar at the top of each page. There are many different choices in the course of filling out any particular document, so the total number of pages will vary from customer to customer. So the Progress bar must be dynamic, to show the client how many forms he has left to fill out. Still it's only an approximation of the client's progress, but this will be good enough for my needs.

Does anyone know how this is done? I'm not sure if it's done in JavaScript or ASP. If you look at the source code, or download the progress bar image, you'll see it's a very small .gif, that is added and added as progress is made, I think. It looks like JavaScript, but I'm not positive.

Any guidance on this matter would be much appreciated. A tutorial somewhere, maybe?

Thanks very much
metrov is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-30-2005, 02:51 PM
Steven Chang's Avatar
Novice Talker

Posts: 7
Trades: 0
Can you give me a link to the bar?

There are many ways to make a bar. You can use java, javascript: http://javascript.internet.com/messa...gress-bar.html

Steven Chang

Last edited by Steven Chang; 04-30-2005 at 02:56 PM..
Steven Chang is offline
Reply With Quote
View Public Profile Visit Steven Chang's homepage!
 
Old 04-30-2005, 03:16 PM
Novice Talker

Posts: 13
Trades: 0
The link you provided is not what I'm looking for.

You can try this link:

https://www.legalzoom.com/html/QPage...268&iQ=59&iP=1

If that doesn't work, please just go to www.legalzoom.com, then chose LIVING TRUST DOCUMENT...then you have to log in [use fake email and password], next you'll see the Progress Bar I need to make.

But the bar should be dynamic, i.e. determined by the user's actions.

Thanks a lot
metrov is offline
Reply With Quote
View Public Profile
 
Old 05-01-2005, 06:37 AM
Steven Chang's Avatar
Novice Talker

Posts: 7
Trades: 0
Ah I see, the bar is a simple table with images. The first image, label_progress_progressbar.gif, is the image containing the text "PROGRESS BAR >>". The other images are for helping the bar look better. label_progress_status.gif is the picture that controlls the length of the orange status bar. To modify the length of the bar you should change the width of the image.

<TABLE WIDTH=527 HEIGHT=13 CELLPADDING=0 CELLSPACING=0>

<TR>
<TD ROWSPAN=3 HEIGHT=13>

<IMG SRC="https://www.legalzoom.com/images/label_progress_progressbar.gif" height=13 width=100></TD><TD HEIGHT=1 WIDTH=427>

<IMG SRC="https://www.legalzoom.com/images/label_progress_topborder.gif" height=1 width=427>

</TD>
</TR>

<TR>
<TD bgcolor="#cccccc" align=left HEIGHT=8 WIDTH=427>

<IMG SRC="https://www.legalzoom.com/images/label_progress_status.gif" height=8 width=39>
</TD>
</TR>

<TR>
<TD WIDTH=427 HEIGHT=4>

<IMG SRC="https://www.legalzoom.com/images/label_progress_ticks.gif" width=427 HEIGHT=4>

</TD>
</TR>

</TABLE>

Well, there is no copyright sign there... so copying stuff from their site should be legal. (I think)

Change the width:

<IMG SRC="https://www.legalzoom.com/images/label_progress_status.gif" height=8 width= X >

X = the width in pixels of the progress bar.

Now, to make the thing dynamic you could use javascript or a server based script, such as PHP.

example progress.php:

progress.php


<HTML>
<HEAD>
</HEAD>
<BODY>
<TABLE WIDTH=527 HEIGHT=13 CELLPADDING=0 CELLSPACING=0>

<TR><TD ROWSPAN=3 HEIGHT=13><IMG SRC="https://www.legalzoom.com/images/label_progress_progressbar.gif" height=13 width=100></TD><TD HEIGHT=1 WIDTH=427><IMG SRC="https://www.legalzoom.com/images/label_progress_topborder.gif" height=1 width=427></TD>
</TR>
<TR>
<TD bgcolor="#cccccc" align=left HEIGHT=8 WIDTH=427><IMG SRC="https://www.legalzoom.com/images/label_progress_status.gif" height=8 width=
<?

$X = $_GET["X"];

echo $X;
?>
></TD></TR>
<TR><TD WIDTH=427 HEIGHT=4><IMG SRC="https://www.legalzoom.com/images/label_progress_ticks.gif" width=427 HEIGHT=4></TD></TR>


</TABLE>
<A href = "progress.php?X=30">Start over with filling my form.</A>
<BR>
<A href = "progress.php?X=150">Please go to the second part of the form.</A>
<BR>
<A href = "progress.php?X=300">I only want to fill in the important details, skip the optional part.</A>
<BR>
<A href = "progress.php?X=425">Please submit my form now, I am done.</A>
<BR>

</BODY>
</HTML>

good luck,

Steven Chang

Last edited by Steven Chang; 05-01-2005 at 07:00 AM..
Steven Chang is offline
Reply With Quote
View Public Profile Visit Steven Chang's homepage!
 
Old 05-01-2005, 04:18 PM
Novice Talker

Posts: 13
Trades: 0
Thanks very much, Steve. I'll have to experiment with this. [for some reason I did not receive email notification that you had answered]
metrov is offline
Reply With Quote
View Public Profile
 
Old 05-06-2005, 09:02 PM
Jared's Avatar
Skilled Talker

Posts: 52
Location: St. Anthony, ID
Trades: 0
A small comparison between server side scripts and javascript:

PHP/CGI: Everyone can view it, browser screwups are impossible. Downside being that there really isn't a way to make changes on the page without refreshing it (correct me if I'm wrong there).

Javascript: Changes can be made on the webpage without having to refresh it. Faster. Downside being that you'll lose sleep over configuring the scripts to work with all browsers.
Jared is offline
Reply With Quote
View Public Profile Visit Jared's homepage!
 
Old 05-07-2005, 07:43 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Quote:
Downside being that there really isn't a way to make changes on the page without refreshing it (correct me if I'm wrong there).
Yet another reason to ditch PHP/ASP and move to ASP.NET.

ASP.NET implements Postbacks, where the page is posted back to itself. Yes, it refreshes the page, but it's very quick due to the excellent use ASP.NET makes of caching, and various other things such as the fact that it's a compiled language, which has huge speed benifits over a scripted one.

For validation, ASP.NET can also generate some javascript so certain validators don't have to be posted back every time. It will handle the browser sniffing, etc. for you and will also always still validate things server side as well just in case someone doesn't have JavaScript (and for security). All in all it's very flexible and very fast (both in terms of development and processing )
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 05-07-2005, 11:15 PM
Kaiman's Avatar
Extreme Talker

Posts: 237
Trades: 0
Minaki,

You can use certain PHP functions to do the same kind of "postbacks" that you mentioned. The other thing about PHP is that it runs on all Linux servers which make up about 75 percent of the market, while ASP and ASP.NET will only run on Windows boxes which are about 17 percent and cost alot more.

Kaiman

Website Design and Hosting - Glenwood Springs, CO
Kaiman is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Need Progress Bar
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.35592 seconds with 11 queries