Jump to content

Recommended Posts

Posted

Здравствуйте!

Можете сказать, как послать сообщение из одной в другую форму. Я пытался  и так  UniSession.AddJS('ajaxRequest(MainForm.Form2, "MessageEvent", ["msg=from Form1!"]);'); и так UniSession.AddJS('ajaxRequest(UniApplication, "MessageEvent", ["msg=from Form1"]);'); Но ни как не срабатывает

  • Lintps changed the title to Как послать сообщение в другую форму?
Posted
1 hour ago, Lintps said:

А через ajaxRequest не получится?

  UniSession.AddJS(
    'if (typeof UniForm1 !== "undefined" && UniForm1.form) { ' +
    '  ajaxRequest(UniForm1.form, "test", ["msg=from Form2"]); ' +
    '}'
   );

 

  • Thanks 1

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...