473,396 Members | 2,093 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Displaying all ID's in relative location...

Mel
I would like to display any item that has ID associated with it on the
top-left corner of its physical location (20px up and 20px right) with
yellow background and red foreground.

Is it possible ? any example is highly appreciated

Apr 3 '07 #1
3 1208
Mel said the following on 4/3/2007 10:28 AM:
I would like to display any item that has ID associated with it on the
top-left corner of its physical location (20px up and 20px right) with
yellow background and red foreground.

Is it possible ? any example is highly appreciated
A better explanation of what you want to do is highly appreciated also.
It is hard to determine what exactly you are trying to describe.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 3 '07 #2
Mel
On Apr 3, 10:28 am, Randy Webb <HikksNotAtH...@aol.comwrote:
Mel said the following on 4/3/2007 10:28 AM:
I would like to display any item that has ID associated with it on the
top-left corner of its physical location (20px up and 20px right) with
yellow background and red foreground.
Is it possible ? any example is highly appreciated

A better explanation of what you want to do is highly appreciated also.
It is hard to determine what exactly you are trying to describe.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ -http://jibbering.com/faq/index.html
Javascript Best Practices -http://www.JavascriptToolbox.com/bestpractices/
For my debugging purposes. I would like to display element IDs on my
HTML page above and to the left of each element that has id associated
with it with background yellow and foreground red.

other people look at my screen and determine which id is associated
with which field and they can write scripts to do the work.

I am sorry for lack of good explanation

Apr 3 '07 #3
Mel said the following on 4/3/2007 1:37 PM:
On Apr 3, 10:28 am, Randy Webb <HikksNotAtH...@aol.comwrote:
>Mel said the following on 4/3/2007 10:28 AM:
>>I would like to display any item that has ID associated with it on the
top-left corner of its physical location (20px up and 20px right) with
yellow background and red foreground.
Is it possible ? any example is highly appreciated
A better explanation of what you want to do is highly appreciated also.
It is hard to determine what exactly you are trying to describe.
For my debugging purposes. I would like to display element IDs on my
HTML page above and to the left of each element that has id associated
with it with background yellow and foreground red.
So you basically want a permanent tooltip for each element that has an
ID attribute?
other people look at my screen and determine which id is associated
with which field and they can write scripts to do the work.

I am sorry for lack of good explanation
It would be a lot easier to do it server side. As the document is
generated then any element that had an ID attribute could be given a
tooltip like div/span element that contained it's ID attribute.

If server side isn't an option, then you could get a reference to all
the elements in the document:

var allElements = document.getElementsByTagName('*')

And then loop through allElements and if an element had an ID then
create a div element and try to position it. I seem to remember IE6
having some problems with getElementsByTagName('*') but I don't remember
the work around.

Even then, it is going to get messy trying to position your elements.

Why not simply use the title attribute of the elements to display the id?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Apr 3 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Gregory | last post by:
Hello, I've managed to build two web pages, one that can display images with associated text data in a table, and one that can resize and display images without the text. I'd like to resize the...
2
by: shyamal | last post by:
I want to display memory content using C++ on LINUX. For example, the user may ask to display 256 bytes from 0x1000ff00. The problem is , if any location is invalid, the program will coredump...
4
by: christine.nguyen | last post by:
Hello, Here's the deal. I have an html page that contains an iframe. This iframe has an id that is unknown to me. This iframe also has test.html as it's source. Within test.html runs some...
2
by: ameshkin | last post by:
I'm having all kinds of visual problems using dreamweaver's built in query builder. I have 4 different categories. Right. I want to show ten records from each category of items in a mysql...
3
by: elvira_wang | last post by:
heya, what sort of address is displayed when this instruction for instance is executed printf("myvar location is 0x%lx\n", (long) &myvar); is it logical address or linear address, i.e. with...
1
by: =?Utf-8?B?UmF5IE1pdGNoZWxs?= | last post by:
Hello, I have a control that is inside a GroupBox, and that GroupBox is inside another group box. I would like to find the location of the control relative to the form itself. When I examine...
10
by: Lloyd Harold | last post by:
I'm very new to PHP and attempting to put together a simple script for retrieving MySQL data of personal records. The MySQL table I'm using consists of: 0: id 1: name 2: location (an integer...
1
by: littlealex | last post by:
IE6 not displaying text correctly - IE 7 & Firefox 3 are fine! Need some help with this as fairly new to CSS! In IE6 the text for the following page doesn't display properly - rather than being...
7
by: hsegoy1979 | last post by:
Dear All Iam using file upload control and i want to display image in another pop up page .But image is not displaying in image control iam sending image path thru querystring . here is my code ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...
0
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...
0
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...
0
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...
0
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,...

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.