473,804 Members | 3,220 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Position <DIV> Based on Click Link/Cell

10 New Member
I am not really sure how to do this, but I need to create <DIV>'s that correspond to a given week that is clicked. So, when my ASP is generating the page, it will create the hidden divs. When a week number is clicked, I want the DIV to show up for that week next to it, like I have in the following example:

http://www.bowlingballsandmore.com/bsa/EditScores.gif

Can anyone point me in the right direction or give me an example?
Mar 13 '07
21 4456
drhowarddrfine
7,435 Recognized Expert Expert
You need to read this.
Mar 13 '07 #11
AricC
1,892 Recognized Expert Top Contributor
I still disagree. Anyways, I am obviously missing the boat on this one. Does anyone have an example of what I am trying to accomplish?
I don't see how you disagree Doctypes and Validation have everything to do with the way a browser is going to render your page. Here are the results of your page through the validator as you can see you have no Doctype and some other errors.
Mar 13 '07 #12
BLarche
10 New Member
I don't see how you disagree Doctypes and Validation have everything to do with the way a browser is going to render your page. Here are the results of your page through the validator as you can see you have no Doctype and some other errors.

Because my "validation " and "no doctype" are not critical in this error. They are not causing the page to "not work". I know enough about HTML to know that... trust me. This is a logical error in the way I am writing my DIVs and TABLEs. Plus, I looked through my HTML, and I am missing ZERO opening and closing tags....
Mar 13 '07 #13
BLarche
10 New Member
Here, is this better? Is this validated and include the proper doc types??

http://www.bowlingballsandmore.com/bsa/test.asp
Mar 13 '07 #14
AricC
1,892 Recognized Expert Top Contributor
Here, is this better? Is this validated and include the proper doc types??

http://www.bowlingballsandmore.com/bsa/test.asp
I think this is what you are looking for:
[html]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?xml version="1.0" encoding="utf-8" ?>
<head>
<title>Layout Test</title>
<style type="text/css">
.clsWeeks
{
width: 100px;
height: 20px;
border: 1px solid black;
float: left;
}
.clsData
{
width: 500px;
height: 20px;
border: 1px solid black;
}


</style>


</head>

<body>
<div class="clsWeeks ">
Week 1
</div>
<div class="clsData" >
Some Data
</div>
<div class="clsWeeks ">
Week 2
</div>
<div class="clsData" >
Some Data
</div>
<div class="clsWeeks ">
Week 3
</div>
<div class="clsData" >
Some Data
</div>



</body>
</html>
[/html]

HTH,
Aric
Mar 14 '07 #15
BLarche
10 New Member
That still does not get me to where I need to be with the edit scores portion. I need the table in the BG to stay as is, and the "edit scores" layer to layer on top of the others... just like the picture:

http://www.bowlingballsandmore.com/bsa/EditScores.gif

Or does it?
Mar 14 '07 #16
BLarche
10 New Member
How do I get the "Some Data" layer to display over the Game 1, Game 2, and Game 3 scores???

http://www.bowlingballsandmore.com/bsa/test1.asp
Mar 14 '07 #17
AricC
1,892 Recognized Expert Top Contributor
How do I get the "Some Data" layer to display over the Game 1, Game 2, and Game 3 scores???

http://www.bowlingballsandmore.com/bsa/test1.asp
Do you want 'Some Data' layer above the Game 1 etc...? Or you want that to appear on top of Game 1....
Mar 14 '07 #18
BLarche
10 New Member
Do you want 'Some Data' layer above the Game 1 etc...? Or you want that to appear on top of Game 1....
For each week number, I will have a layer that has to appear next to the week number on TOP of the game scores, so, for instance, on top of 175, 200, and 300 in the example I provided. I need it to show/hide WITHOUT altering (expanding) the table beneath it...
Mar 14 '07 #19
drhowarddrfine
7,435 Recognized Expert Expert
My first thought is this isn't going to be possible with CSS alone because the data traverses table cells. Maybe there's something I'm not thinking of so I'm going to look around a bit.
Mar 14 '07 #20

Sign in to post your reply or Sign up for a free account.

Similar topics

3
2252
by: Craig | last post by:
Hi, What I'm trying (quite poorly) to do is make it so when a link is clicked the text inside a div or p changes. I've tried numerous things, most of which work in IE but none of which work in gecko browsers e.g. Mozilla, Netscape, Epiphany etc etc. This is what I have now and works fine in IE but sits there doing nothing in anything else:
61
24513
by: Toby Austin | last post by:
I'm trying to replace <table>s with <div>s as much as possible. However, I can't figure out how to do the following… <table> <tr> <td valign="top" width="100%">some data that will 'stretch'</td> <td valign="top" width="300">some data that won't 'stetch'</td> </tr> </table>
1
2893
by: nick | last post by:
In the web site http://greywolfdesign.com , there is a pop-up menu (when mouse over 'Portfolio' menu item), it always works well when using IE (6). However, when using Mozilla 1.6, the popup works well for all the pages except the 4 pages which can be opened by click the menu link in the popup. In these four pages, the popup will always be shown at the leftmost of its parent div (flow) instead of under the 'Portfolio' menu item. When...
44
919
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to put either tag inside an HTML <TD> and have the same kind of scrolling effect. This would allow me to fill the screen and have the size of the scrolling box change on resize. Thanks in advance.
3
1990
by: chris1606 | last post by:
I have an image gallery that pops up an enlarged version of a picture when someone clicks on it. That bit works, but it should also load the picture's caption into the floating layer. Instead the caption remains unchanged and gives an "object doesn't support this property or method" dialog. The code is as follows: <script> function goBig(objNo, caption) { document.getElementById('floatdiv').style.visibility = 'visible'; ...
5
5269
nathj
by: nathj | last post by:
Hi All, I'm working on a new site that has a two column layout underneath a title bar. If you check out: http://www.christianleadership.org.uk/scratch/mainpage.php using IE or Opera you will see what I am after as these browsers work fine. However, in FF the results are slightly different - take a look and you'll see that the <p>, within <div class="mainContent"> has shot way over to the right. I've been working on this for 2days now...
1
1698
by: milas57 | last post by:
hello everyone i have a homepage which introduce the company website as shown below im having trouble to find some javascript code when i click on the header link like servives the body content changes dynamically. thank you ------------------------------------------------------------------- index.php <div id="header"> <a href="#" class="abt1">Services</a> <a href="#" class="abt1">Catalog</a> <a href="#" class="abt1">Partners</a> <a...
8
10051
prino
by: prino | last post by:
Hi all, I've written code (in REXX) that takes files in legacy languages (PL/I, COBOL, z/OS assembler, etc) and converts them into HTML in a format similar to what's displayed in the z/OS ISPF editor. A fellow member of the PCG has helped me by creating a bit of Javascript to emulate the scrolling and using Google I've now gotten it into a state where it almost passes the W3C Markup Validation Service. However, the one error, Error Line 166,...
0
9587
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.