Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get href of a link
#1
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)

CYZ
Reply
#2
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
Reply
#3
(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>

CYZ
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)