Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic 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 January 18th, 2005, 03:21 AM
Authorized User
 
Join Date: Dec 2004
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Keeping database fields as Link

Hi Friends!

 I Have A Field Called Problem In My Database which lists the problem in the system ex:Mouse,Operating System etc,.

i designed in such a way that i created a link for this problem field.
when the user clicks the Problem Field then the Description of the problem to be displayed . The Description field is also a Field In My Database. How To Do this Plz Anybody Over There To Help Me...
Come Quick And Give Me Milk Plz...
 Bye For Now



MuthuKumar.AL
__________________
MuthuKumar.AL
 
Old January 20th, 2005, 08:53 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

Put the description field in <Div> tag and when the user clicks on the problem field using javascript enable that div.

 
Old January 21st, 2005, 12:23 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

If at all you are looking for a basic sample .. check out the attached code snippet:

<html>
    <head>
        <script type="text/javascript">
        function ToggleDiv(id) {
            // All the DIVs are hided here
            document.getElementById('d1').style.display = 'none';
            document.getElementById('d2').style.display = 'none';
            document.getElementById('d3').style.display = 'none';

            // Unhide the DIV which was requested
            document.getElementById(id).style.display = 'block';
        }
        </script>
    </head>
    <body>
        <table border="1" style="WIDTH: 100%" width="100%" align=center bgColor=white>
            <tr>
                <td><a href="" onclick="ToggleDiv('d1'); return false;">First DIV Tag</a></td>
                <td><a href="" onclick="ToggleDiv('d2'); return false;">Second DIV Tag</a></td>
                <td><a href="" onclick="ToggleDiv('d3'); return false;">Third DIV Tag</a></td>
            </tr>
        </table>
        <table border="0" style="WIDTH: 100%" width="100%" bgcolor=DarkSeaGreen>
            <tr>
                <td><div id="d1">You wanted to show "First DIV" alone</div></td>
                <td><div style="DISPLAY: none" id="d2">You wanted to show "Second DIV" alone</div></td>
                <td><div style="DISPLAY: none" id="d3">You wanted to show "Third DIV" alone</div></td>
            </tr>
        </table>
    </body>
</html>

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Database link in excell paul20091968 Excel VBA 7 November 17th, 2006 08:02 AM
Error when changing 'Link Child Fields' property JackNimble Access 3 October 25th, 2004 03:21 PM
How to Active a Database-Link zhangmin Oracle 0 October 20th, 2004 07:41 PM
Link to database jlnashrod Oracle 3 April 22nd, 2004 12:48 AM
Arrays in Database fields JeffMM Classic ASP Databases 2 March 26th, 2004 07:27 PM





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