?
Solved

Javascript tab control

Posted on 2006-05-02
5
Medium Priority
?
223 Views
Last Modified: 2008-03-06
Hi,
Is it possible to generate a control like the one used on this page http://www.asp.net/QuickStart/aspnet/doc/extensibility.aspx to show C# and VB code in simple javascript and css?
On the page they use a .net control, but I need to be able to write it in html in my cms
0
Comment
Question by:thor_ostergaard
  • 3
  • 2
5 Comments
 
LVL 63

Accepted Solution

by:
Zvonko earned 2000 total points
ID: 16589676
If you look into that page source you will see all the JavaScript and Style definitions there.
The JavaScript function call is:
<TR>
<TD class=backtab id=tabctl00$ctl00$Main_Body$MainBody$ctl01 onclick="doClick(0, 2, 'ctl00$ctl00$Main_Body$MainBody$ctl01')">C# </TD>
<TD class=tab id=tabctl00$ctl00$Main_Body$MainBody$ctl01 onclick="doClick(1, 2, 'ctl00$ctl00$Main_Body$MainBody$ctl01')">VB </TD>
<TD class=space>&nbsp;</TD></TR>

And the <STYLE> definitions are immediately before that <table> definition.
0
 

Author Comment

by:thor_ostergaard
ID: 16589756
Well - I can see that - but it's not simple!
How about the doClick function?
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 16589824
Did you look into page source???
Before the upper table rows is the <style> section.
And before the <style> section is the <script> section with the doClick() function definition.
They repeat the <script> and <style> definitions again and again for every example control placement!

0
 

Author Comment

by:thor_ostergaard
ID: 16589873
Sorry, I didn't se the onClick function - .net has a lot of client scripts and i thought it was one of them
0
 
LVL 63

Expert Comment

by:Zvonko
ID: 16589893
No problem.
Good look :-)
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question