Topic
2 replies Latest Post - ‏2013-04-05T11:45:56Z by RiteshNigam
SystemAdmin
SystemAdmin
111 Posts
ACCEPTED ANSWER

Pinned topic Homepage hyperlink (help needed)

‏2013-03-20T18:17:42Z |
When you click on the hyperlink within an e-mail notification it brings you to that record is there a way of creating a hyperlink on the records dialog box to bring you to the home page for that record/database?

-Jim
Updated on 2013-04-05T11:45:56Z at 2013-04-05T11:45:56Z by RiteshNigam
  • SystemAdmin
    SystemAdmin
    111 Posts
    ACCEPTED ANSWER

    Re: Homepage hyperlink (help needed)

    ‏2013-03-29T14:08:23Z  in response to SystemAdmin
    Hello

    The following code works, but now I would like to make it a button rather than a hyperlink for some reason I can get the syntax correct to utilize the token. Any help would be appreciated. Thank you.

    The follow code works correctly as a hyperlink but would now like to make it a button:
    
    <script> document.write(
    "<a href='framesetLoader.do?frameName=panelAndDialog&token="+token+
    "' target='_top'>Change Home Page</a>"); </script>
    


    -Jim
    • RiteshNigam
      RiteshNigam
      6 Posts
      ACCEPTED ANSWER

      Re: Homepage hyperlink (help needed)

      ‏2013-04-05T11:45:56Z  in response to SystemAdmin
      Below code should work

      <script>
      function openUrl(str)
      {
      var url = "http://host:port/context/framesetLoader.do?frameName=panelAndDialog&token="+ str;
      window.open(url)
      }

      document.write("<button onclick=javascript: openUrl(" + token +")>Change Home Page</button>");
      </script>