Hi there,I’m using an embedded view to display a list of documents in a browser. Every “line” (a document) contains a link, which opens the document.
The link’s default-text is “show document” and launches this URL: “…ID?editdocument&read”.
When the user selects an other action from the navigation, for example “edit document”, the document’s link should change to “edit document” (text) and “…ID?editdocument&edit” (URL).
It would be great, if I could use getElementByID to change the links, but for every “entry” has the same id, this won’t work 
Any ideas, how to handle this?
TIA,
Buzzy
Subject: Web: Replace links w/ JS
Hi Buzzy,there are a number of options.
-
generate the links with and ID element (you would need to do a passthru HTML view) based on the replicid
-
use GetElementsByTAGName which would give you back an array of links where you would do some detection if a link is one of the one’s to change.
Hth
stw
Subject: RE: Web: Replace links w/ JS
Hi Stephan,@1: I had this ideas too, but the problem is: how will the JS-function find the IDs? I would have to search for a specific ID in order to change its value - but for every link has unique ID, I don’t know how to access them.
@2: nice idea…you accidentally don’t have a example ready? ;-))
Thanks,
Buzzy