Please help me to display an Http:// url in the alert in client script

ramya0905
Kilo Expert

Please help me to display an Http:// url in the alert in client script

1 ACCEPTED SOLUTION

this will display as link... i tried this on demo just now...



g_form.addInfoMessage("<a href='"+location.href+"'>"+location.href+"</a>");


View solution in original post

17 REPLIES 17

alert cannot display links .. it can just display plain text...



if you want it to display as a pop up only and not somewhere else on the form , create a ui page and place your content in that.. use the ui page to display the message


Thnks..will try in Ui pages (y)


created a sample just in case you need it ...



UI page :



Name : Test


HTML :



<?xml version="1.0" encoding="utf-8" ?>


<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">


<table>


<tr><td>


<a href='https://snc.flextronics.com/snc_sso.asp?uri=kb_view.do?sysparm_article=KB13692'>Click For More Info</a></td></tr>


<tr><td><button id="proceedBtn" class="form_action_button   action_context" type="submit" style="white-space: nowrap" onclick="destroyPage();"><span>OK</span></button></td></tr>


</table>


</j:jelly>



UI page Client Script:


function destroyPage()


{


      GlideDialogWindow.get().destroy();


      return false;


}




function to call the ui page



var dialog = new GlideDialogWindow("Test");


      dialog.setTitle("More Info");


      dialog.render();


if the issue is resolved, mark appropriate response as answered so that others can take notice of it if they have the same question


just curious if this solved your issue ? If yes , mark as answered . If no, what workaround you applied