473,795 Members | 2,986 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 #1
21 4454
drhowarddrfine
7,435 Recognized Expert Expert
If this is an asp question you should ask in the asp board. But you can hide/unhide the div using css and the visibility property.

Another possibility is making the week numbers on the left hand side :hover and then display the contents.
Mar 13 '07 #2
BLarche
10 New Member
If this is an asp question you should ask in the asp board. But you can hide/unhide the div using css and the visibility property.

This is not an ASP question. I will be generating a div for each week using ASP, but that is not my question.

Once the DIV's are created, how do I get them to position/display next to each week as I have shown in the sample graphic??

Also, I understand how to hide/unhide the DIV's, that is no problem either. It is completely a positioning problem.
Mar 13 '07 #3
drhowarddrfine
7,435 Recognized Expert Expert
I edited my previous post with an added idea.

What you want to do is more involved than I have time for but not difficult. You can enclose the week numbers and the data in one div and use the :hover property to make the data visible/hidden. :hover does not work 100% in IE6 so you may want to surround the whole div in a <a> and hover that which will work in all browsers.
Mar 13 '07 #4
BLarche
10 New Member
I still cannot get this to work. You can view my code here:

http://www.bowlingballsandmore.com/bsa/test.asp

It tries to insert the table into the main table's TD rather than on top of it. Does anyone have any suggestions??
Mar 13 '07 #5
drhowarddrfine
7,435 Recognized Expert Expert
First problem is you are not using a doctype and that puts IE into quirks mode. You are using a xhtml namespace yet don't declare xhtml.

Second, validate your code because you are missing some end tags and other things.

Third, some of the tags you are using are deprecated.
Mar 13 '07 #6
BLarche
10 New Member
First problem is you are not using a doctype and that puts IE into quirks mode. You are using a xhtml namespace yet don't declare xhtml.

Second, validate your code because you are missing some end tags and other things.

Third, some of the tags you are using are deprecated.

I don't believe that has anything to do with it, but I did remove the xhtml namespace. Also, the validation of the code should have nothing to do with the divs not displaying correctly... I believe it is logic and not code.
Mar 13 '07 #7
AricC
1,892 Recognized Expert Top Contributor
Also, the validation of the code should have nothing to do with the divs not displaying correctly
Validation and DocType have everything to do with the way your code is displayed.
Mar 13 '07 #8
drhowarddrfine
7,435 Recognized Expert Expert
You will never get IE to pretend it's a modern browser without a proper doctype. It's difficult enough to work with valid code than to have to deal with one containing errors.

Just a few hours ago, I pointed out validation to someone who insisted it had nothing to do with his problem. But he fixed his errors anyway and the problem went away.
Mar 13 '07 #9
BLarche
10 New Member
Validation and DocType have everything to do with the way your code is displayed.

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?
Mar 13 '07 #10

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

Similar topics

3
2250
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
24508
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
2892
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
1986
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
5266
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
1697
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
10049
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
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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
10439
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10001
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...
0
9043
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6783
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
5437
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.