473,382 Members | 1,313 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,382 software developers and data experts.

How to create a multitabbed options 'dialog box'

I am trying to create a multi-tabbed 'dialog' box (similar to the one
displayed when Tools->Options is selected in most MS Office apps).
Ofcourse, this is for a website, so I'm not sure if i can call it a
'dialog box' (what is the correct name?). This 'dialog box' will be the
visual interface to an object.

Can anyone point me to an example (online or otherwise) that shows how I
may do this?
Feb 4 '07 #1
11 1383
"Bit Byte" <ro**@yourbox.comwrote in message
news:1c*********************@bt.com...
>I am trying to create a multi-tabbed 'dialog' box (similar to the one
displayed when Tools->Options is selected in most MS Office apps).
Ofcourse, this is for a website, so I'm not sure if i can call it a 'dialog
box' (what is the correct name?). This 'dialog box' will be the visual
interface to an object.
Do you mean something like this...?
http://www.barelyfitz.com/projects/tabber/
Feb 4 '07 #2


Mark Rae wrote:
"Bit Byte" <ro**@yourbox.comwrote in message
news:1c*********************@bt.com...

>>I am trying to create a multi-tabbed 'dialog' box (similar to the one
displayed when Tools->Options is selected in most MS Office apps).
Ofcourse, this is for a website, so I'm not sure if i can call it a 'dialog
box' (what is the correct name?). This 'dialog box' will be the visual
interface to an object.


Do you mean something like this...?
http://www.barelyfitz.com/projects/tabber/

Thats exactly what I mean - is this possible without using javascript
though? (incase client has turned off javascript on their machine)?
Feb 4 '07 #3
Hi,

Bit Byte wrote:
>

Mark Rae wrote:
>Do you mean something like this...?
http://www.barelyfitz.com/projects/tabber/

Thats exactly what I mean - is this possible without using javascript
though? (incase client has turned off javascript on their machine)?
Yes, but then you must postback to the server on every click on a tab.
The advantage of the client-side solution is that the whole page content
is loaded on the client already, so switching tabs is very dynamic. If
you have to post back every time, you get a slower, less responsive
application.

HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 4 '07 #4


Laurent Bugnion [MVP] wrote:
Hi,

Bit Byte wrote:
>>

Mark Rae wrote:
>>Do you mean something like this...?
http://www.barelyfitz.com/projects/tabber/

Thats exactly what I mean - is this possible without using javascript
though? (incase client has turned off javascript on their machine)?


Yes, but then you must postback to the server on every click on a tab.
The advantage of the client-side solution is that the whole page content
is loaded on the client already, so switching tabs is very dynamic. If
you have to post back every time, you get a slower, less responsive
application.

HTH,
Laurent
Thanks for the clarification
Feb 4 '07 #5
On Feb 4, 1:44 pm, Bit Byte <r...@yourbox.comwrote:
[snip]
Thats exactly what I mean - is this possible without using javascript
though? (incase client has turned off javascript on their machine)?
No, but it's possible without YOU WRITING any JavaScript... :)

Check out:
http://ajaxwidgets.com/AllControlsSa...abControl.aspx

(Try to click the button on the SECOND tab... ;)

Note that it's very easy to also embed this "tab control" within a
Gaia Window and thereby get the whole "tab control" inside a modal
window (or non-modal too if you wish)

The sample above contains NO CLIENT JavaScript whatsoever...!
And if you wanted the same design as the previous solution that would
easily be managed through manipulating the properties in design view
of your controls...!!
100% WYSIWYG off course...!! :)

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

Feb 4 '07 #6
"Bit Byte" <ro**@yourbox.comwrote in message
news:n4******************************@bt.com...
>>>Do you mean something like this...?
http://www.barelyfitz.com/projects/tabber/
Thats exactly what I mean - is this possible without using javascript
though? (incase client has turned off javascript on their machine)?


Yes, but then you must postback to the server on every click on a tab.
The advantage of the client-side solution is that the whole page content
is loaded on the client already, so switching tabs is very dynamic. If
you have to post back every time, you get a slower, less responsive
application.

Thanks for the clarification
As Laurent says, the above control is entirely client-side. This has two
main advantages:

1) switching between tabs doesn't cause a round-trip to the server and back,
thereby minimising network traffic and reducing the load on your webserver

2) the contents of *all* of the tabs are loaded all of the time, thereby
allowing client-side comparison validation between controls on different
tabs

The main disadvantage is that the control will not work if the user has
disabled JavaScript. Whether that is important or not is, of course, another
argument - and one which has been discussed several times in this
newsgroup...

If you're interested in using the above tab control, please contact me
privately - it is absolutely full of bugs, and doesn't work at all with
ASP.NET v2, especially MasterPages, so I have made a whole slew of
modifications and enhancements to it, including the ability to remember the
current tab without needing to use a cookie (I'm not kidding - that's how it
originally did it!!!), the ability to enable / disable tabs rather than just
hide them, full ASP.NET v2 support etc...

Alternatively, if you want a solution which will work without JavaScript,
there are several commercial products available or, if you're using ASP.NET
v2, you could roll your own with a combination of a couple of the new v2
webcontrols: http://www.codeproject.com/aspnet/TabControl.asp. This will, of
course, force a postback every time you switch tabs, and only the contents
of the *current* tab will be downloaded to the client at any given time, but
it *will* work with JavaScript disabled...
Feb 4 '07 #7
Hi,

Mark Rae wrote:
As Laurent says, the above control is entirely client-side. This has two
main advantages:

1) switching between tabs doesn't cause a round-trip to the server and back,
thereby minimising network traffic and reducing the load on your webserver

2) the contents of *all* of the tabs are loaded all of the time, thereby
allowing client-side comparison validation between controls on different
tabs
Note that depending on the scenarios, the fact that the whole content is
loaded on the page may also come as a disadvantage. Loading the page
will be slower, especially if a lot of tabs are added to the control.
And there is a risk that some loaded content will never be displayed, in
case the user doesn't click on the tab. So there is a risk of loading
unneeded code.

<snip>

Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 4 '07 #8
Hi,

Thomas Hansen wrote:
On Feb 4, 1:44 pm, Bit Byte <r...@yourbox.comwrote:
[snip]
>Thats exactly what I mean - is this possible without using javascript
though? (incase client has turned off javascript on their machine)?

No, but it's possible without YOU WRITING any JavaScript... :)
Now, where's the fun in that? ;-)

Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 4 '07 #9
"Laurent Bugnion [MVP]" <ga*********@bluewin.chwrote in message
news:uL**************@TK2MSFTNGP05.phx.gbl...
Note that depending on the scenarios, the fact that the whole content is
loaded on the page may also come as a disadvantage. Loading the page will
be slower, especially if a lot of tabs are added to the control. And there
is a risk that some loaded content will never be displayed, in case the
user doesn't click on the tab. So there is a risk of loading unneeded
code.
I guess it depends on your perspective...

For a page with e.g. three tabs, would one slightly slower round-trip to the
server to grab all the controls when the page is first loaded be better than
any number of (slightly faster) round-trips to the server as the user
switches (any number of times) from tab to tab...?
Feb 4 '07 #10
Hi,

Mark Rae wrote:
"Laurent Bugnion [MVP]" <ga*********@bluewin.chwrote in message
news:uL**************@TK2MSFTNGP05.phx.gbl...
>Note that depending on the scenarios, the fact that the whole content is
loaded on the page may also come as a disadvantage. Loading the page will
be slower, especially if a lot of tabs are added to the control. And there
is a risk that some loaded content will never be displayed, in case the
user doesn't click on the tab. So there is a risk of loading unneeded
code.

I guess it depends on your perspective...

For a page with e.g. three tabs, would one slightly slower round-trip to the
server to grab all the controls when the page is first loaded be better than
any number of (slightly faster) round-trips to the server as the user
switches (any number of times) from tab to tab...?
No, it wouldn't. But with 10 tabs, most of them being infrequently used,
and containing big tables (for example), then maybe it would make a
difference. As I said, it depends on the scenarios.

Also, there are alternatives to postbacks when clicking on the tabs.
Loading the content using some kind of AJAX could be interesting.

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Feb 4 '07 #11
"Laurent Bugnion [MVP]" <ga*********@bluewin.chwrote in message
news:e7**************@TK2MSFTNGP06.phx.gbl...
>I guess it depends on your perspective...

For a page with e.g. three tabs, would one slightly slower round-trip to
the server to grab all the controls when the page is first loaded be
better than any number of (slightly faster) round-trips to the server as
the user switches (any number of times) from tab to tab...?

No, it wouldn't. But with 10 tabs, most of them being infrequently used,
and containing big tables (for example), then maybe it would make a
difference. As I said, it depends on the scenarios.
Indeed.
Also, there are alternatives to postbacks when clicking on the tabs.
Loading the content using some kind of AJAX could be interesting.
Yes but, although a callback isn't a postback, it's *still* a round-trip to
the server and back... :-)

For me, the ability to do client-side comparison validation of controls in
different tabs far outweighs the (very) slight performance hit of
downloading all the controls once-only...
Feb 4 '07 #12

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

Similar topics

6
by: Topmind | last post by:
If the Windows Web browser (IE 5 or 6) opens an XLS file (spreadsheet), how it handles it depends on a file association setting within Windows. There is a setting called "confirm open after...
4
by: gimme_this_gimme_that | last post by:
Hi, This is sort of a : How to build a Yes/No dialog box qquestion. Or perhaps a question about getting javascript variables from a pop-up window and processing them on a submit. This is...
2
by: Jean Lemaire | last post by:
Hello, I want to design a dialog box based on parameters I read from a file. For example in the file I find "Name/char/25" and then I create a Label Text (Name) and an Edit control that receive...
1
by: eng_nahswa | last post by:
hiiiii everybody i want to know how can i create a color dialog box in asp.net application or a color palette.
0
by: Vladimir Perkic | last post by:
Hi! Does anybody know how can I create dialogbox which can be moved. Im using CreateDialog function. Also, System icon menu and "Close" button don't respond to mouse actions. Style I defined in...
6
by: pradeep_TP | last post by:
I am facing a strange problem with my web site. Afer reinstalling the web application on the web server, I am getting a dialog box for each page. The dialog box has the following information. ...
4
by: Cylix | last post by:
For example, There is a article on a simple html, a button is place on the bottom of the article. When the button is onclick, a table is shown on the top of page, and all the text, or any form...
0
by: PerumalSamy | last post by:
Hi I have a textbox in web page, in which i need to display the color by selecting from color dialog box. How can i include color dialog box in my web form while clicking the textbox or by...
6
by: joder2006 | last post by:
i'm writing a program that uses an open dialog box, i would like to create an open dialog box that behaves like ones in other programs such as word, that has it where the window behind the open...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.