You are here: irt.org | BBS | How to access anchors names in JS... [This BBS is closed]
Posted by Dmitrii Ignatiev on June 16, 1998 at 17:52:11:
Hi, All!
I have problem with access to anchors names in document.
From time to time the string returned are not correct. I have tried
to catch the data by the following
//1
MyVar = window.document.anchors[Counter].name;
//2
MyAnchor = new Anchor ();
MyAnchor = window.document.anchors[Counter];
MyVar = MyAnchor.name;
Neither first, nor second of ways shown do not satisfy me, because
of error in values they return. All data in a saved document is correct,
but I cannot import it without loosing of some fields (Not all. It seems to depend
of anchors array length).
Any idea will be appreciated. Good luck!
Dmitrii Ignatiev.
>>> Why do I need this? I want to allow the user of my JS program to save the data,
entered in a form. In general the script must generate the HTML table
with very specific format, that our ingeneers draw manually or using
graphic editors. It is clear, that such a thing should be done in any
language other then in JavaScript, but it is not so interesting for me now.
Follow-ups:
You are here: irt.org | BBS | How to access anchors names in JS... [This BBS is closed]