Forums

Forums / Developing Portals / Request JS Api Methods

Request JS Api Methods

Thread is closed for posting
2 posts, 1 answered
  1. ahmed.hussien1
    ahmed.hussien1 avatar
    3 posts
    Registered:
    20 Feb 2017
    26 Mar 2017
    Link to this post
    Set_selectedtext API method run on console but not When I try to put it on js file ???
  2. Adam Benoit
    Adam Benoit avatar
    23 posts
    Registered:
    01 Mar 2017
    Answered
    28 Mar 2017 in reply to ahmed.hussien1
    Link to this post
    Hi Ahmed,

    When you call the Set_selectedtext method in the developer console the JS API has had a chance to load. It sounds like when you are calling it from a file the API has not loaded yet.

    Please ensure that your script (or script file) is being called at the end of the page and not at the top. It might also be a good idea to wrap your script in a document ready to ensure it is called after the page is loaded, including the JS API.

    Please let me know if you have any additional questions.

    Adam Benoit – Software Developer
    The Portal Connector
    Last modified on 28 Mar 2017 14:03 by Adam Benoit
2 posts, 1 answered