Antwise community forums
How to get href of a link - Printable Version

+- Antwise community forums (https://forums.antwise.com)
+-- Forum: Antview (https://forums.antwise.com/forumdisplay.php?fid=11)
+--- Forum: Antview for Windows (https://forums.antwise.com/forumdisplay.php?fid=12)
+--- Thread: How to get href of a link (/showthread.php?tid=207)



How to get href of a link - carlos@agpsoftware.com - 2024-12-05

Hi,

I'm trying this code for getting the "href" of a link and returns "#" in href variable

Code:
thisform.oantviewdocument.RequestElementAttributeByIdSync(m.cId, "href", @m.href)



RE: How to get href of a link - wila - 2024-12-05

Hi Carlos,

"#" is a valid link.. can you tell me what is in the "href" that it isn't returning correctly?
Have you looked at the html by using the right click context menu in the control and using the "inspect" option?

--
Wil


RE: How to get href of a link - carlos@agpsoftware.com - 2024-12-05

(2024-12-05, 11:09:59)wila Wrote: Hi Carlos,

"#" is a valid link.. can you tell me what is in the "href" that it isn't returning correctly?
Have you looked at the html by using the right click context menu in the control and using the "inspect" option?

--
Wil

Is ok #
I have to look into the 'onclick'

Code:
<a id="viewns_Z7_AVEQAI930OBRD02JPMTPG21004_:form1:enlaceExpediente_1" href="#" onclick="if(typeof jsfcljs == 'function'){jsfcljs(document.forms['viewns_Z7_AVEQAI930OBRD02JPMTPG21004_:form1'],{'viewns_Z7_AVEQAI930OBRD02JPMTPG21004_:form1:enlaceExpediente_1':'viewns_Z7_AVEQAI930OBRD02JPMTPG21004_:form1:enlaceExpediente_1','TIPO_LICITACION':'0','ACTION_NAME_PARAM':'SourceAction','idLicitacion':'1499881908','TIPO_ORIGEN':'busquedaVIS'},'');}return false" class=" "><span id="viewns_Z7_AVEQAI930OBRD02JPMTPG21004_:form1:textoEnlace_1">90/2024</span></a>