Jump to content

Execute JavaScript from server


lbuelvas

Recommended Posts

Hi, i'm trying to build an app that displays info from a database, i'm able to use ajax to get info from the client side to retrieve the data but i can't seem to find a way to change the html content so the data shows, i know i can do it via JavaScript, but i don't know how to execute JS from the server, so if anyone could help me to do so, or find a more sophisticated way to do it, i'd be thankful.

 

(i'm trying not to use  components like Unidbedit and as such by the way)

Link to comment
Share on other sites

6 hours ago, Hayri ASLAN said:

Hi

Please try UniSession.AddJS(".....");

Hi Hayri, it worked to execute  functions defined in the HTML code indeed, thank you, and aslo to anyone who wants to execute general JS statements (not defined as custom functions) you can use  yourParentComponent.yourHTMLframe.JSinterface.JScall()

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...