• 0

DHTML block positioning


Question

I'm sure there is a way to do this...

I have all these values scattered on the page in a table. I'd like the user to be able to change those values while they are looking at the table. Most of the fields will have a set of values, some will only have user input, and others will have both set values or user input. For that reason I don't want to make them all simple SELECT boxes, because of the variety of different input, and also for display reasons.

So I've contructed these little <div> blocks that contain all the html to allow the user to modify each field. The <div> display property is "none;" initially... and there is a little link next to each field in the table that when the user clicks on the display becomes block and the user can then change the value of the field in the table. Basic DHTML and server side scripting stuff. Got that worked out.

Currently I have the <div>'s embedded into the same table cell as the fields. When they appear the browser adjusts the table to make room for this "control" <div>. This gives it a kinda aquard sloppiness that i'd like to fix. I would like it if the <div> hovered over the table when it is visible, as if it were a pop-up drop-down thing like a fancy dhtml menu system. But I'm not sure how to (or if I can) "position it."

The position of the div needs to be relative to the field (obviously), which I know nothing about at render time. On top of that, I've got some fancy javascript sorting going on when the user clicks on one of the headers. This isn't a problem with the control <div> embedded into the cell, because all the content of the cell gets rearanged with the sort funciton. It seems that an absolute positioning strategy won't work.

I hope i've made myself clear. Any help would be awesome!

-nic

Link to comment
https://www.neowin.net/forum/topic/329390-dhtml-block-positioning/
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • I see you subscribe to the Linux/macOS approach to winning over converts...
    • As we get closer to October 2025 and the end of Windows 10 support, Windows 11 will pick up its pace and soon become the most popular desktop operating system worldwide. That's an assertion. It's also quite possible that the only growth will come from attrition as people and companies buy new machines that only come with Win11. It's also possible that we'll get a literal repeat of Win XP and Win 7, where a large number of users just waited until Microsoft gave in and fixed the core problems that the consumers were complaining about in Win Vista and Win 8 when they released Win 7 and Win 10.
    • It's significant growth for Linux considering the market share, so it could have had that effect I described.
    • Microsoft and Crowdstrike announce partnership on threat actor naming by Pradeep Viswanathan Whenever a cyberattack is discovered, companies disclose it to the public and assign it a unique name based on their internal procedures. Unfortunately, this leads to inconsistencies, as each company has its own naming conventions. As a result, the same threat actor behind a cyberattack may end up with multiple names, causing delays and confusion in response efforts. For example, a threat actor that Microsoft refers to as Midnight Blizzard might be known as Cozy Bear, APT29, or UNC2452 by other security vendors. To address this issue, Microsoft and CrowdStrike are teaming up. These companies will align their individual threat actor taxonomies to help security professionals respond to cyberattacks with greater clarity and confidence. It’s important to note that Microsoft and CrowdStrike are not attempting to create a single naming standard. Instead, they are releasing a mapping that lists common threat actors tracked by both companies, matched according to their respective taxonomies. The mapping also includes corresponding aliases from each group’s naming system. You can view the joint threat actor mapping by Microsoft and CrowdStrike here. Although this threat actor taxonomy mapping is a joint effort between Microsoft and CrowdStrike, Google/Mandiant and Palo Alto Networks' Unit 42 are expected to contribute to this initiative in the future. Vasu Jakkal, Corporate Vice President of Microsoft Security, wrote the following about this collaboration with CrowdStrike: As more organizations join this initiative, the collective defense against cyber threats will undoubtedly be improved.
  • Recent Achievements

    • First Post
      chriskinney317 earned a badge
      First Post
    • Week One Done
      Nullun earned a badge
      Week One Done
    • First Post
      sultangris earned a badge
      First Post
    • Reacting Well
      sultangris earned a badge
      Reacting Well
    • First Post
      ClarkB earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      172
    2. 2
      ATLien_0
      125
    3. 3
      snowy owl
      122
    4. 4
      Xenon
      116
    5. 5
      +Edouard
      93
  • Tell a friend

    Love Neowin? Tell a friend!