IE & Firefox

This is a discussion on "IE & Firefox" within the ASP.NET Forum section. This forum, and the thread "IE & Firefox are both part of the Program Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Program Your Website > ASP.NET Forum

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Aug 25th, 2005, 11:36
dc dc is offline
New Member
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
IE & Firefox

Hi all,

I have developed a menu system in asp.net. It is a simple expandable tree structure. It is working fine in IE but the problem is in Firefox. When i open the page in Firefox everything goes bananas.

I think that it is to do with the javascript - but i'm not sure. Can anyone spot some issues with the code? it is probably very obvious.

Sorry for posting so much code!!

thanks in advance.



Code: Select all
Imports System
Imports System.Data
Imports System.Data.oledb
Imports System.Web.UI.WebControls
Imports Microsoft.VisualBasic
Public Class SideLinks
    Inherits System.Web.UI.Page
    Dim CaptionId As Integer

#Region " Web Form Designer Generated Code "

    'This call is required by the Web Form Designer.
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()

    End Sub

    'NOTE: The following placeholder declaration is required by the Web Form Designer.
    'Do not delete or move it.
    Private designerPlaceholderDeclaration As System.Object

    Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
        'CODEGEN: This method call is required by the Web Form Designer
        'Do not modify it using the code editor.
        InitializeComponent()
    End Sub

#End Region

    Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        'Put user code to initialize the page here
        CaptionId = Request("CaptionId")
        'Response.Write(CaptionId)
        'Response.End()

        Dim strConn As String
        strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " & Server.MapPath("Copy of Captions.mdb")

        Dim Conn As New OleDbConnection
        Dim Conn2 As New OleDbConnection
        Dim Conn3 As New OleDbConnection
        Dim Conn4 As New OleDbConnection
        Dim Conn5 As New OleDbConnection

        Conn.ConnectionString = strConn
        Conn2.ConnectionString = strConn
        Conn3.ConnectionString = strConn
        Conn4.ConnectionString = strConn
        Conn5.ConnectionString = strConn

        Dim reader As OleDbDataReader
        Dim Subreader As OleDbDataReader
        Dim SubSubreader As OleDbDataReader
        Dim NewSubSubreader as OleDbDataReader


        Dim sqlCmd As New OleDbCommand
        Dim sqlCmdSub As New OleDbCommand
        Dim sqlCmdThirdSub As New OleDbCommand
        Dim sqlCmdThirdSub1 As New OleDbCommand
        Dim heading As String = "SELECT DISTINCT sidepanel_label, sidepanel_idx FROM sidepanel WHERE sidepanel.sidepanel_idx in (select sidepanel_idx from url_list,urlDropDown where urlDropDown.captionId = " & CaptionId & " and url_list.idx1=urlDropDown.idx1 )"
        Dim Subheading As String
        Dim SubSubheading As String
        '   Response.Write(heading)
        'Response.End()


        Conn.Open()
        sqlCmd.Connection = Conn

        sqlCmd.CommandText = heading
        reader = sqlCmd.ExecuteReader()
        Response.Write("<table width=155  border=0 cellpadding=0 cellspacing=0>")
		Response.Write("<tr>" & vbCr & vbLf)
            Response.Write("<td colspan=""3"" background=""images/sidepanel_01.gif"" width=""155"" height=""4"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("</tr>" & vbCr & vbLf)
            Response.Write("")
			Response.Write("<tr>" & vbCr & vbLf)
            Response.Write("<td  background=""images/sidepanel_spacer1.gif"" width=""3"" height=""19"" alt=""""></td>" & vbCr & vbLf)
			Response.Write("<td  background=""images/sidepanel_spacer2.gif"" width=""149"" height=""19"" alt=""""></td>" & vbCr & vbLf)
			Response.Write("<td  background=""images/sidepanel_spacer3.gif"" width=""3"" height=""19"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("</tr>" & vbCr & vbLf)
            Response.Write("")
        Dim i, k, MainTr As Integer
        i = 1
        k = 1
        MainTr = 1

        While reader.Read
           
            Subheading = "SELECT url_idx, label, url_list.sidepanel_idx FROM url_list, UrlDropDown, sidepanel WHERE sidepanel.sidepanel_idx=" & reader("sidepanel_idx") & " and UrlDropDown.CaptionId=" & CaptionId & " and UrlDropDown.idx1=url_list.idx1 and url_list.sidepanel_idx = sidepanel.sidepanel_idx"
           

            
            Response.Write("<tr valign=""middle"">" & vbCr & vbLf)
            Response.Write("<td background=""images/sidepanel_02.gif"" width=""3"" height=""24"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("<td class=""tditem"" background=""images/panelback_01.gif"" width=""149"" height=""24"" onMouseover=""this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img" & i & "');"" onMouseout=""this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img" & i & "'); "');"" style=""cursor:hand"" onclick=""showtab('MainTr" & i & "'); return true;"">  [img][/img]  " & reader("sidepanel_label") & "</td>" & vbCr & vbLf)

            Response.Write("<td background=""images/sidepanel_04.gif"" width=""3"" height=""24"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("</tr>" & vbCr & vbLf)

            Response.Write("<tr id=""MainTr" & i & """ style=""display: none;"">" & vbCr & vbLf)
			 Response.Write("<td background=""images/sidepanel_vert2.gif"" width=""3"" height=""24"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("<td colspan=""1""  background=""images/panelvert_01.gif"" ><table cellpadding=""0"" cellspacing=""0"">" & vbCr & vbLf)
			Response.Write("<tr>" & vbCr & vbLf)
           
			Response.Write("<td colspan=""2"" background=""images/sidepanel_vert5.gif"" width=""149"" height=""2"" alt=""""></td>" & vbCr & vbLf)
			
            Response.Write("</tr>" & vbCr & vbLf)
            Response.Write("")
           Response.Write("<tr >" & vbCr & vbLf)
            Response.Write("<td colspan=""2"" width=""149"" height=""12"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("</tr>" & vbCr & vbLf)
		   
            Conn2.Open()
            sqlCmdSub.Connection = Conn2
            sqlCmdSub.CommandText = Subheading
            Subreader = sqlCmdSub.ExecuteReader
            Dim j As Integer
            j = 1

            While Subreader.Read

                      SubSubheading = "SELECT sidepanel_label FROM sidepanel Where sidepanel_parent =" & Subreader("sidepanel_idx") & ";"

                
                Conn4.Open()
                sqlCmdThirdSub.Connection = Conn4
                sqlCmdThirdSub.CommandText = SubSubheading
                NewSubSubreader = sqlCmdThirdSub.ExecuteReader
                If NewSubSubreader.HasRows Then
                    Response.Write("<tr id=""myTr" & i & """ >" & vbCr & vbLf)
                    Response.Write("<td  width=""3"" height=""14"" alt=""""></td>" & vbCr & vbLf)
                    Response.Write("<td class=""tditem""  width=""149"" height=""14"" alt="""">" & vbCr & vbLf)
                    Response.Write(" [img][/img]  " & Subreader("label") & "" & "</td>")
					           
            Response.Write("</tr>" & vbCr & vbLf)
                    i = i + 1
                    While NewSubSubreader.Read



                        Response.Write("<tr id=""myTr" & i & """ >" & vbCr & vbLf)
                        Response.Write("<td width=""3"" height=""4"" alt=""""></td>" & vbCr & vbLf)
                        Response.Write("<td  class=""subhead"" style=cursor:hand;  onclick=""showtab1('my3rdLevel" & j & "'); return true;"" width=""165"" height=""10"" alt="""">" & " [img][/img]  " & NewSubSubreader(0) & "</td></tr>" & vbCr & vbLf)

                        SubSubheading = "SELECT url_idx, label FROM url_list, sidepanel WHERE url_list.sidepanel_idx=sidepanel.sidepanel_idx and sidepanel.sidepanel_idx in (select sidepanel.sidepanel_idx from sidepanel where sidepanel.sidepanel_parent=" & Subreader("sidepanel_idx") & ");"

                       
                        Conn5.Open()
                        sqlCmdThirdSub1.Connection = Conn5
                        sqlCmdThirdSub1.CommandText = SubSubheading
                        SubSubreader = sqlCmdThirdSub1.ExecuteReader

                        If Not SubSubreader.HasRows Then
                                                   Else

                            Response.Write("<tr><td colspan=""3""><table >" & vbCr & vbLf)
                            Response.Write("<tr id=""my3rdLevel" & j & """ style=""display: none;"">" & vbCr & vbLf)
                            Response.Write("<td width=""5"" height=""4"" alt=""""></td>" & vbCr & vbLf)
                            Response.Write("<td class=""tditem"" width=""149"" height=""10"" alt="""">" & vbCr & vbLf)

                            While SubSubreader.Read
                                Response.Write("   [img][/img] " & SubSubreader("label") & "" & "
")
                            End While
                            Response.Write("</td></tr></table></td></tr>" & vbCr & vbLf)

							
                        End If
                        SubSubreader.Close()
                        Conn5.Close()
                        j = j + 1
                        i = i + 1
                    End While
                Else
                    
                    Response.Write("<tr id=""myTr" & i & """ >" & vbCr & vbLf)
                    Response.Write("<td  width=""3"" height=""18"" alt=""""></td>" & vbCr & vbLf)
                    Response.Write("<td class=""tditem""   width=""149"" height=""18"" alt="""">" & vbCr & vbLf)
                    Response.Write(" [img][/img]  " & Subreader("label") & "" & "</td></tr>")
                End If
                NewSubSubreader.Close()
                Conn4.Close()
                k = k + 1
            End While
            Subreader.Close()
            Conn2.Close()


           
            i = i + 1
            MainTr = MainTr + 1
			Response.Write("<tr >" & vbCr & vbLf)
            Response.Write("<td colspan=""2"" width=""149"" height=""12"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("</tr>" & vbCr & vbLf)
			Response.Write("<tr>" & vbCr & vbLf)
           
			Response.Write("<td colspan=""2"" background=""images/sidepanel_vert5.gif"" width=""149"" height=""2"" alt=""""></td>" & vbCr & vbLf)
			
            Response.Write("</tr>" & vbCr & vbLf)
            Response.Write("")
            Response.Write("</table></td>" & vbCr & vbLf)
			 Response.Write("<td  background=""images/sidepanel_vert3.gif"" width=""3"" height=""24"" alt=""""></td>" & vbCr & vbLf)
			 Response.Write("</tr>" & vbCr & vbLf)
        End While


        reader.Close()
        Conn.Close()

			
        Response.Write("</td>" & vbCr & vbLf)
       
        Response.Write("</tr>" & vbCr & vbLf)
		Response.Write("<tr>" & vbCr & vbLf)
            Response.Write("<td  background=""images/sidepanel_spacer4.gif"" width=""3"" height=""19"" alt=""""></td>" & vbCr & vbLf)
			Response.Write("<td  background=""images/sidepanel_spacer5.gif"" width=""149"" height=""19"" alt=""""></td>" & vbCr & vbLf)
			Response.Write("<td  background=""images/sidepanel_spacer6.gif"" width=""3"" height=""19"" alt=""""></td>" & vbCr & vbLf)
            Response.Write("</tr>" & vbCr & vbLf)
            Response.Write("")
        Response.Write("<tr>" & vbCr & vbLf)
        Response.Write("<td colspan=""3"" background=""images/sidepanel_spacerend.gif"" width=""155"" height=""4"" alt=""""></td>" & vbCr & vbLf)
        Response.Write("</tr>" & vbCr & vbLf)

        Response.Write("</table>" & vbCr & vbLf)
        Response.Write("")

    End Sub

End Class
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Aug 25th, 2005, 11:59
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
any chance you can post the HTML output instead, i think it'll be alot easier to debug.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Aug 25th, 2005, 12:40
dc dc is offline
New Member
Join Date: Aug 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Hey Smokie,

Thanks for the reply. I should have thought of looking at the output. Good idea. It seems to be writing the table before the header!

There is a lot of it - Here it is:

Code: Select all
<table width=155  border=0 cellpadding=0 cellspacing=0><tr>
<td colspan="3" background="images/sidepanel_01.gif" width="155" height="4" alt=""></td>
</tr>
<tr>
<td  background="images/sidepanel_spacer1.gif" width="3" height="19" alt=""></td>
<td  background="images/sidepanel_spacer2.gif" width="149" height="19" alt=""></td>
<td  background="images/sidepanel_spacer3.gif" width="3" height="19" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img1');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img1'); " style="cursor:hand" onclick="showtab('MainTr1'); return true;">[img]images/but_2.gif[/img]Admin</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr1" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr1" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/admin2.html>ASPAC Admin</a></td></tr><tr id="myTr1" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/admin3.html>US Admin</a></td></tr><tr id="myTr1" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/admin1.html>EMEA Admin</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img2');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img2'); " style="cursor:hand" onclick="showtab('MainTr2'); return true;">[img]images/but_2.gif[/img]Ews</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr2" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr2" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/ews1.html>EWS 1</a></td></tr><tr id="myTr2" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/ews1.html>EWS 2</a></td></tr><tr id="myTr2" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/ews3.html>EWS 3</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img3');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img3'); " style="cursor:hand" onclick="showtab('MainTr3'); return true;">[img]images/but_2.gif[/img]Forms</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr3" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr3" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/forms.html>Forms</a></td></tr><tr id="myTr3" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/forms.html>Forms</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img4');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img4'); " style="cursor:hand" onclick="showtab('MainTr4'); return true;">[img]images/but_2.gif[/img]Geos</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr4" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr4" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/geos1.html>EMEA</a></td></tr><tr id="myTr4" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/geos2.html>ASPAC</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img5');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img5'); " style="cursor:hand" onclick="showtab('MainTr5'); return true;">[img]images/but_2.gif[/img]Mu</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr5" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr5" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/mu2.html>MU</a></td></tr><tr id="myTr5" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/mu2.html>MU 2</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img6');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img6'); " style="cursor:hand" onclick="showtab('MainTr6'); return true;">[img]images/but_2.gif[/img]Non - Tech Docs</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr6" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr6" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/solnontech2.html>Solutions Non Tech 2</a></td></tr><tr id="myTr6" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/solnontech3.html>Solutions Non Tech 3</a></td></tr><tr id="myTr6" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/solnontech1.html>Solutions Non Tech 1</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img7');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img7'); " style="cursor:hand" onclick="showtab('MainTr7'); return true;">[img]images/but_2.gif[/img]Reports</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr7" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr7" >
<td  width="3" height="14" alt=""></td>
<td class="tditem"  width="149" height="14" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>New Reports</a></td></tr>
<tr id="myTr8" >
<td width="3" height="4" alt=""></td>
<td  class="subhead" style=cursor:hand;  onclick="showtab1('my3rdLevel1'); return true;" width="165" height="10" alt="">[img]images/arrowdrop.gif[/img] Reports - Sub 1</td></tr>
<tr><td colspan="3"><table >
<tr id="my3rdLevel1" style="display: none;">
<td width="5" height="4" alt=""></td>
<td class="tditem" width="149" height="10" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
</td></tr></table></td></tr>
<tr id="myTr9" >
<td  width="3" height="14" alt=""></td>
<td class="tditem"  width="149" height="14" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports2.html>Reports</a></td></tr>
<tr id="myTr10" >
<td width="3" height="4" alt=""></td>
<td  class="subhead" style=cursor:hand;  onclick="showtab1('my3rdLevel2'); return true;" width="165" height="10" alt="">[img]images/arrowdrop.gif[/img] Reports - Sub 1</td></tr>
<tr><td colspan="3"><table >
<tr id="my3rdLevel2" style="display: none;">
<td width="5" height="4" alt=""></td>
<td class="tditem" width="149" height="10" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/reports1.html>Reports Sub</a>
</td></tr></table></td></tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img12');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img12'); " style="cursor:hand" onclick="showtab('MainTr12'); return true;">[img]images/but_2.gif[/img]Schedules</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr12" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr12" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/schedules1.html>Admin</a></td></tr><tr id="myTr12" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/schedules1.html>EMEA Schedules</a></td></tr><tr id="myTr12" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/schedules1.html>ASPAC Schedules</a></td></tr><tr id="myTr12" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/schedules1.html>US Schedules</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
<tr valign="middle">
<td background="images/sidepanel_02.gif" width="3" height="24" alt=""></td>
<td class="tditem" background="images/panelback_01.gif" width="149" height="24" onMouseover="this.style.backgroundImage='url(images/rollpanel_01.gif)';Change1('img13');" onMouseout="this.style.backgroundImage='url(images/panelback_01.gif)';Change2('img13'); " style="cursor:hand" onclick="showtab('MainTr13'); return true;">[img]images/but_2.gif[/img]Stats</td>
<td background="images/sidepanel_04.gif" width="3" height="24" alt=""></td>
</tr>
<tr id="MainTr13" style="display: none;">
<td background="images/sidepanel_vert2.gif" width="3" height="24" alt=""></td>
<td colspan="1"  background="images/panelvert_01.gif" ><table cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
<tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr id="myTr13" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/stats1.html>Weekly Stats</a></td></tr><tr id="myTr13" >
<td  width="3" height="18" alt=""></td>
<td class="tditem"   width="149" height="18" alt="">
[img]images/arrowbreak.gif[/img]<a class=links target=frame2 href=pages/stats2.html>Monthly Stats</a></td></tr><tr >
<td colspan="2" width="149" height="12" alt=""></td>
</tr>
<tr>
<td colspan="2" background="images/sidepanel_vert5.gif" width="149" height="2" alt=""></td>
</tr>
</table></td>
<td  background="images/sidepanel_vert3.gif" width="3" height="24" alt=""></td>
</tr>
</td>
</tr>
<tr>
<td  background="images/sidepanel_spacer4.gif" width="3" height="19" alt=""></td>
<td  background="images/sidepanel_spacer5.gif" width="149" height="19" alt=""></td>
<td  background="images/sidepanel_spacer6.gif" width="3" height="19" alt=""></td>
</tr>
<tr>
<td colspan="3" background="images/sidepanel_spacerend.gif" width="155" height="4" alt=""></td>
</tr>
</table>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>SideLinks</title>

    <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
	<script type="text/JavaScript">
function showtab(theTable)
{
//alert("I am here");
//alert(theTable);

     obj = document.getElementsByTagName('TR');
      for (i=0; i<obj.length; i++)
     {
			if(obj[i].id.length > 6 && obj[i].id.length < 10 )
			{
				if (obj[i].id == theTable)
				{
					if (obj[i].style.display == 'block')
					{
						obj[i].style.display = 'none';
					}
					else
					{
						obj[i].style.display = 'block';
					}
					
				}
				else
				{
					obj[i].style.display = 'none';
				}
			}
     }
    
}
	
function showtab1(theTable)
{
//alert("I am here");
//alert(theTable);

     obj = document.getElementsByTagName('TR');
      for (i=0; i<obj.length; i++)
     {
			if(obj[i].id.length > 10 && obj[i].id.length < 17)
			{
				if (obj[i].id == theTable)
				{
					if (obj[i].style.display == 'block')
					{
						obj[i].style.display = 'none';
					}
					else
					{
						obj[i].style.display = 'block';
					}
					
				}
				else
				{
					obj[i].style.display = 'none';
				}
			}
     }
    
}

function showtab2(theTable)
{
//alert("I am here");

     obj = document.getElementsByTagName('TR');
      for (i=0; i<obj.length; i++)
     {
			if(obj[i].id.length > 10 )
			{
				if (obj[i].id == theTable)
				{
					if (obj[i].style.display == 'block')
					{
						obj[i].style.display = 'none';
					}
					else
					{
						if(obj[i].id.length > 17 )
						{
							obj[i].style.display = 'block';
						}
					}
					
				}
				else
				{
					obj[i].style.display = 'none';
				}
			}
     }
}

function Change1(imgname)
{
	document.getElementById(imgname).src= "images/but_3.gif";

}
function Change2(imgname)
{
	document.getElementById(imgname).src= "images/but_2.gif";

}



</script><LINK rel="stylesheet" type="text/css" href="style.css">
  </head>
  <body MS_POSITIONING="GridLayout" background="images/sidepanel_back.gif" leftmargin="15"  style="background-repeat:repeat-y" >

    <form name="Form1" method="post" action="SideLinks.aspx?CaptionId=6" id="Form1">
<input type="hidden" name="__VIEWSTATE" value="dDwtMTI3OTMzNDM4NDs7PllMjCaaBTYfbsLOeWkXIj6gO7VN" />

		
    </form>

  </body>
</html>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Aug 30th, 2005, 12:14
Highly Reputable Member
Join Date: Jul 2003
Location: Ipswich, UK
Posts: 690
Thanks: 0
Thanked 0 Times in 0 Posts
Well instead of response.write everything so it appears before the header, you could place it all into a string and write that in the html at the relevent point, or put all the code into a user control and place that at the correct place in the html.... or, in Page_Load write out your header first, although thats kinda messy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 2nd, 2005, 13:24
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
.. or you could write the output by taking advantage of the HTMLTextWriter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
firefox

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox Vs IE7 (CSS) Monie Web Page Design 9 Sep 20th, 2007 02:37
Useful Firefox Add-ons Antwan Webforumz Cafe 19 Feb 21st, 2007 16:02
alt tag in Firefox afuller Web Page Design 8 Dec 9th, 2006 19:16
Need help regarding firefox vs. ie james@thecultureofme Web Page Design 5 Jun 2nd, 2006 14:32
IE ok, Firefox no way lizarddoctor Web Page Design 4 Nov 27th, 2005 23:35


All times are GMT. The time now is 07:06.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42