Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

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

"laredotorn@zipmail.com" <laredotorn@zipmail.com> wrote in
news:1179432225.528819.157090@u30g2000hsc.googlegroups.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.

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc