Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 1.0
This is the forum to discuss the Wrox book Beginning ASP.NET 1.0 with C# by Chris Goode, John Kauffman, Christopher L. Miller, Neil Raybould, S. Srinivasa Sivakumar, Dave Sussman, Ollie Cornes, Rob Birdwell, Matt Butler, Gary Johnson, Ajoy Krishnamoorthy, Juan T. Llibre, Chris Ullman; ISBN: 9780764543708
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 1.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 13th, 2004, 08:48 AM
Authorized User
 
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default JavaScript Menu

Hello,
I have a javascript menu that I would like to place in a certain row of a table. I am using a .aspx page programming in VB.NET.
My problem is that I can't get the menu to postion itself in the row.Instead it keeps going to the top lefthand corner of my screen.

Any ideas on how to fix this?

Thanks,
Mark

 
Old August 13th, 2004, 08:51 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you post your code?

 
Old August 13th, 2004, 09:05 AM
Authorized User
 
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%@ Page Language="vb" AutoEventWireup="false" Codebehind="somepage.aspx.vb" Inherits="MyApp._Default"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
    <HEAD>
        <title>Page 1</title>
    </HEAD>
    <body MS_POSITIONING="GridLayout">
        <form id="frmDefault" method="post" action="User1.aspx">
            <TABLE id="tblLogo" cellSpacing="1" cellPadding="1" width="100%" border="0">
                <TR>
                    <TD colspan="2"><IMG src="Images/small.jpg"></TD>
                </TR>
                <tr>
                    <td>
                        <form method="post" action="">
                            <script language="javascript">
                                function Go(){return}
                            </script>
                            <script language="javascript" src="Menu Scripts/exmplmenu_var.js" type=text/javascript></script>
                            <script language="javascript" src="Menu Scripts/menu_com.js" type=text/javascript></script>
                        </form>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <form method="post" action="">
                            <input type="submit" id="btnUserAccount" value="User Account">
                        </form>
                    </td>
                    <td align="center">
                        <form method="post" action="UserAccount.aspx">
                            <input type="submit" id="btnSetup" value="System Setup">
                        </form>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </TABLE>
        </form>
    </body>
</HTML>


 
Old August 13th, 2004, 09:15 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Where do you want the menu placed? I copied and pasted the code and it showed up in the upper left corner of my page too. Set the border to 1 of the table to see where it's going.

 
Old August 13th, 2004, 09:17 AM
Authorized User
 
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I want to place it in the second row of the table on the left hand side.

Mark

 
Old August 13th, 2004, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Try removing:

MS_POSITIONING="GridLayout"

On my computer it is on the 2nd row.

<TABLE id="tblLogo" cellSpacing="1" cellPadding="1" width="100%" border="1">
                <TR>
                    <TD colspan="2"><IMG src="Images/small.jpg"></TD>
                </TR>
                <tr>
                    <td>
                        hi
<form method="post" action="">
                            <script language="javascript">
                                function Go(){return}
                            </script>
                            <script language="javascript" src="Menu Scripts/exmplmenu_var.js"

type=text/javascript></script>
                            <script language="javascript" src="Menu Scripts/menu_com.js"

type=text/javascript></script>
                        </form>
                    </td>
                    <td>
                hi
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td align="center">
                        <form method="post" action="">
                            <input type="submit" id="btnUserAccount" value="User Account">
                        </form>
                    </td>
                    <td align="center">
                        <form method="post" action="UserAccount.aspx">
                            <input type="submit" id="btnSetup" value="System Setup">
                        </form>
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </TABLE>

 
Old August 13th, 2004, 12:28 PM
Authorized User
 
Join Date: Jul 2004
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your inout I have it working now. It wasn't the Table at all. It was the script itself. There is a _com.js file in there that specifies the location on the screen.

Works great now.
Thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
reset a drop-down menu in javascript crmpicco Javascript How-To 4 September 29th, 2005 08:24 AM
Javascript Dynamic dropdown Menu itHighway Javascript How-To 0 July 24th, 2005 10:53 PM
javascript menu templates flash2004 Javascript 0 May 11th, 2005 02:13 AM
javascript menu DHTML? drop-down crmpicco Javascript How-To 6 March 14th, 2005 12:58 PM
JAvascript menu resources? budman Javascript 3 June 29th, 2004 05:20 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.