473,395 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

web page design question

Hi,
I am having a tough time coming up with a good design for a webpage.
The following is a brief description of what i am trying to achieve.
The requirement is for an insurance company and the goal is to gather
insurance policy information to give its users a quote.

The user can add/edit/delete policies before submitting it and going to
the next step.

Each Policy can have 1 Amount (required) and 0 to 3 fees associated
with it.

At a given time a user can add a maximum of 8 rows.where each
amount/fee is considered a row. So if user enters all rows (1 Amount
and 3 Fees) for the policies then the user can add a maximum of 2
ploicies. On the other hand if the user wants to enter just the Amount
then he can go to 8 policies. I have developed the webpage for this
requirement using layers but there I had to write a lot of code for
that. I am sure there is a better way to handle such a situation and
that is what i am looking for.

I am unable to include the code with this post due to its size. If
anyone is interested in looking at the code i can email it to them.
Thanks

Jul 23 '05 #1
5 1044
<we***********@gmail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi,
I am having a tough time coming up with a good design for a webpage.
The following is a brief description of what i am trying to achieve.
The requirement is for an insurance company and the goal is to gather
insurance policy information to give its users a quote.

The user can add/edit/delete policies before submitting it and going to
the next step.

Each Policy can have 1 Amount (required) and 0 to 3 fees associated
with it.

At a given time a user can add a maximum of 8 rows.where each
amount/fee is considered a row. So if user enters all rows (1 Amount
and 3 Fees) for the policies then the user can add a maximum of 2
ploicies. On the other hand if the user wants to enter just the Amount
then he can go to 8 policies. I have developed the webpage for this
requirement using layers but there I had to write a lot of code for
that. I am sure there is a better way to handle such a situation and
that is what i am looking for.

I am unable to include the code with this post due to its size. If
anyone is interested in looking at the code i can email it to them.
Thanks


When the amount of input (i.e. number of fields) can vary, I'll start of
with a prompt (or page) that asks the user what they want to do then (via JS
or ASP) generate the page to support their stated need. It sure beats
trying to respond to every variation on the fly.

Also, depending on how you implemented them, layers may not work in all
browsers.
Jul 23 '05 #2
Ivo
<we***********@gmail.com> wrote
I am unable to include the code with this post due to its size. If
anyone is interested in looking at the code i can email it to them.

Can we have a look at an URL, preferably of a bare-bones test page where
all non-relevant code is removed? Needless to say of course that posting it
to the group is like to emailing it to everybody at once ;-) That way we can
all learn from it and it reduces the chance of people doing double work. All
this speaks for itself very naturally, yes?

--
Ivo

Jul 23 '05 #3
The web page can be viewed at
http://www.bleedinginternally.com/wayne/step1.htm

Jul 23 '05 #4
we***********@gmail.com wrote:
The web page can be viewed at
http://www.bleedinginternally.com/wayne/step1.htm


2 thousand lines of code? Sheesh! Those on 56k connections will
appreciate that you didn't post it!

Unless there is a lot of other stuff happening in your page, the
functionality you describe could be done in perhaps 200 lines max.

The code as provided has many bugs, probably because the page has been
trimmed, so I'll just leave it at a couple of small suggestions:

that you have one policy per page.

The "browser detection" is pretty ordinary, you really should test
for document.getElementById before document.all since modern IE will
use either and it is preferable that it be given document.gEBI.

And I would change the "you have used" and "you can have" fields from
inputs to plain text nodes - making them uneditable inputs is just
confusing and unneccesary.

Your page fails totally in Safari. Given the volume of code, I am
not about to go looking for why but I would start with the browser
detection.

--
Cheers, Rob
Jul 23 '05 #5
Thanks for the feedback Rob and that is what i am looking for. I am
sure what I have come up with is not the best and correct way to solve
such a situation but again me being new to javascript this is what i
could come up with. Also, I didnt know if using layers was a good idea.
Any suggestions ?

Jul 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

179
by: SoloCDM | last post by:
How do I keep my entire web page at a fixed width? ********************************************************************* Signed, SoloCDM
12
by: Ann D. | last post by:
Hi! I'm creating a website that has a few pages... question is, how can I prevent a user from going directly to a page. i.e. user has to go through myPage1.asp (page takes some user info) to...
5
by: Simon Harvey | last post by:
Hi there everyone, I have a fairly open ended but simple question that I could really use some assistance with. When I first bought visual studio (under the student license) i thought it was...
11
by: Bob | last post by:
In our new .NET web applications, we try to limit the use of SqlConnection to just one instance per page, even if there are multiple accesses to various queries. The thinking behind is that this...
11
by: Frank Esser | last post by:
Hi, I created an ASP.NET page (test.aspx) with some web controls in GridLayout (Design time). When I look at the collection page.controls by foreach (Control ctrl in Page.Controls) { ....
7
by: David Veeneman | last post by:
I'm just getting started with ASP.NET in Visual Studio 2005. The last web work I did involved ASP 3.0 in FrontPage. I've been through the MSDN tutorials on creating web pages, but not of them...
1
by: weboweb | last post by:
Hello aspnet experts! I have a design question for the more experienced developers (more than me at least :-)). 1) I have a page in the application I'm building that displays a web user...
69
by: RC | last post by:
I know how to do this in JavaScript by window.open("newFile.html", "newTarget", "scrollbars=no,resizable=0,width=200,height=200"); The browser will open a new window size 200x200, not allow...
1
by: Ashlewis | last post by:
Hi, Im currently in the process of creating a few forms. I originally planned to have two pages, the form page and a reponse page. However since then ive been able to make use of the validators...
1
by: Zhang Weiwu | last post by:
I know the subject line is really bad. Here is the real question: we have a web application that lists 1200 products. The web page present only 12 products at once, if you wish to see the next 12...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.