Yes, I was aware of that, that's why I wrote the post. Is there a general 
solution to identify an object in a page? For example I noticed that in 
Internet Explorer, all DOM object have a sort of page index called 
sourceIndex, but in the DOM or in the Mozilla objects there is no such 
identifying variable. Or at least, I couldn't find it.

I guess I could do something like :

function IndexIt(DOMObject) {
  var all=document.getElementsByTagName('*');
  for (var c=0; c<all.length; c++)
       if (all[c]==DOMObject) return c;
  return null;
}

but it would take ages on larger pages. (ah, the poetry of javascript)

____________
Costin Manda
ECRM Europe
----- Original Message ----- 
From: "Michael Schwarz" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, September 18, 2006 6:24 PM
Subject: [ajaxpro] Re: How to serialize/identify DOM objects



Hi,

it is not possible to serialize a DOM object, only boolean, number,
string, array or object are working (where object is not a DOM
object!).

Regards,
Michael



On 9/18/06, Costin Manda <[EMAIL PROTECTED]> wrote:
>
>
> I tried to give to an Ajax js function a DOM object (like a table cell) as 
> a
> parameter. Since the object is self referencing, it resulted in an 
> overflow.
> Even if somehow it could have been serialized, I don't know if it could 
> have
> been easily got from request.args.
>
> Anyone found a general solution for this kind of problem? I mean, the HTML
> element cannot be sent as an argument, does not have an id, is a general
> html element (so finding it by rowIndex and cellIndex is only a particular
> solution). And it must work on all major browsers.
>
> ____________
> Costin Manda
> ECRM Europe
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/

Skype: callto:schwarz-interactive
MSN IM: [EMAIL PROTECTED]




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info/

Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---

Reply via email to