473,406 Members | 2,312 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,406 software developers and data experts.

checking if the same ID appears twice on a page

Hi,

I was curious to find a function that would tell me if a particular ID
occurred more than once on a page. The twist on this question is that
I can't do "View Source" because I have some JS that manipulates the
DOM while the user is interacting with the page. But at an arbitrary
point in time, I'd like to know if that manipulation has messed up and
inserted the same ID more than once.

Thanks for help, - Dave

May 17 '07 #1
1 1317
"la***********@zipmail.com" <la***********@zipmail.comwrote in
news:11**********************@u30g2000hsc.googlegr oups.com:
Hi,

I was curious to find a function that would tell me if a particular ID
occurred more than once on a page. The twist on this question is that
I can't do "View Source" because I have some JS that manipulates the
DOM while the user is interacting with the page. But at an arbitrary
point in time, I'd like to know if that manipulation has messed up and
inserted the same ID more than once.

Thanks for help, - Dave
Hi Dave

If you don't already, try developing using Firefox. If you use the built-
in DOM inspector (it opens up in a new window: ctrl-shift-i, but might not
be present unless you chose a custom installation), you can inspect your
URL and perform page operations while getting an up-to-date version of the
DOM as it changes.

You should also install Firebug (http://www.getfirebug.com) which offers a
multitude of developer-friendly modules, including an HTML tab which also
shows the DOM as it changes.... in fact, the html code briefly flashes
yellow so you can tell which DOM element was manipulated.

May 17 '07 #2

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

Similar topics

2
by: BillH | last post by:
I have an ASP page to download a CSV file using the following code Response.ContentType="text/plain Response.AddHeader "Content-disposition", "attachment; filename=Report.csv Response.Write...
2
by: Sharon | last post by:
Hi all. I have an aspx page that starts a download: Response.WriteFile(file). The problem is that the Open / Save dialog appears twice when i choose Open. Any idea why? 10x. Sharon.
0
by: Jerry O | last post by:
Hi, I have a forms authenticated application that appears to have a problem when redirecting users whose session has timed out. The web form is posted via a ‘get' When they click a submit...
8
by: TS | last post by:
Hi, i have inherited a page from another user. The page is the target frame in a frameset. for some reason the whole page runs twice (page_load, init, etc. all run twice) I can't figure out how...
0
by: Server Control | last post by:
Hi, I am exporting my datagrid to Excel using the standard Export to Excel Method using : dg.RenderControl(). and Page.Response.AddHeader("Content-Disposition", "attachment;filename=" +...
7
by: tshad | last post by:
I thought I understood how the SaveViewState is working and was trying to use this (as per some code I found) to detect refreshes. It seemed to be working but I found that the SaveViewState was...
2
by: Jake Barnes | last post by:
I've been asked to help out with the navigation bar on this page: http://www.thesecondroad.org/ The drop down menu (which is pure CSS, save for a fix for IE) appears behind the Flash module....
15
by: dhtml | last post by:
Title says it. If I use a for in loop on an HTML collection, I get length twice. <!DOCTYPE HTML> <html lang="en"> <head> <title>length twice</title> </head> <body> <form...
21
by: ningxin | last post by:
Hi, i am currently taking a module in c++ in the university, and was given an assignment. because i have no prior background on the subject, everything is kind of new to me. i have tried for quite...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
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...

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.