return to tranceaddict TranceAddict Forums Archive > Main Forums > Chill Out Room

 
Question for you ASP.net Pros :)
View this Thread in Original format
Vaedyn
Hey guys, I have a question.


Is it feasiable to make an ASP.Net app that has tabs. Let me try and clarify we I am trying to accomplish. I want an ASP.net page with 4 tabs...when you scroll (or click) over/on them the page changes to something else.




I want it to look like that...and be able to change based on the tabs on the bottom. Can it be done? How hard?

Thanks,

Vaedyn
Pjotr G
easy. Use panels and panelname.visibility = true/false
Vaedyn
Let me add, I want it to be used as a Sharepoint Web Part... what else would be need to be done?
Pjotr G
what the hell is a sharepoint web part :D


is that like a user control?
Vaedyn
Haha,


Its microsoft sharepoint. My company's intranet is based upon it. What essential it is, is one basic ASPX page (default.aspx). Thats the front end, each company employee has a specific home page tailored to their liking. This information and content is stored on a sql database.

A web part is a mini applet that can be dragged onto their page and configured to their liking, or as how I the developer wants to.

I am not sure if you use google or not, but if you have a personalize homepage...thats what they use. The "add content" button and the ability to place these applets wher eyou want.
Jocker
it can all be done through basic javascript. create several
elements with the same class name (like CLASS="Tab") different IDs (like ID="tab1"; tab2, tab3, tab4), and create the images/links menu for tabs. make the DIVs to appear at the same place using the DIV STYLE="position:absolute, x=wherever you want it to appear etc..." or css. and on the "onmouseover" event, call a javascript function which will do something like:

code:
function tabswitch(tabid){ var x = document.********************('DIV'); for (var i=0;i
Jocker
quote:
Originally posted by Nou
remember to pass the "this" variable to the function as well. ;)

oh nm i see how you did it...


but you could do it easier by passing this and then doing

code:
var y = document.getElementById(tabid.id);



then you wouldnt have to write the tab id in each tab, just pass its instance... :p



(being pedantic): "this" is not a variable, "this" is an object:p
CLICK TO RETURN TO TOP OF PAGE
 
Privacy Statement