diegojmap Posted March 16, 2021 Share Posted March 16, 2021 Good afternoon. I'm calling a page from a pdf editor inside the URLFrame. Is it possible that I pass the command to close UniForm after OK via ajaxevent? Link to comment Share on other sites More sharing options...
Sherzod Posted March 16, 2021 Share Posted March 16, 2021 4 hours ago, diegojmap said: I'm calling a page from a pdf editor inside the URLFrame. Is it possible that I pass the command to close UniForm after OK via ajaxevent? Hello, Please explain in more detail. Link to comment Share on other sites More sharing options...
diegojmap Posted March 17, 2021 Author Share Posted March 17, 2021 I am calling an application in notejs within a UniURLFrame. When processing is finished. The window is open, I need a command via ajaxrequest that I can receive via ajaxevent. Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 Do you have a simple testcase? Link to comment Share on other sites More sharing options...
diegojmap Posted March 17, 2021 Author Share Posted March 17, 2021 My example has no secret is the demo of the urlframe. I just wanted to know the la command in javascript and receive it in ajaxevent. If possible. Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 2 minutes ago, diegojmap said: My example has no secret is the demo of the urlframe. I just wanted to know the la command in javascript and receive it in ajaxevent. If possible. Okay, but your case is not very clear to me, so I asked for a test case. Link to comment Share on other sites More sharing options...
diegojmap Posted March 17, 2021 Author Share Posted March 17, 2021 I wanted to know how the html page fires the ajaxevent from the url frame or mainform. URLFrame.rar Link to comment Share on other sites More sharing options...
diegojmap Posted March 17, 2021 Author Share Posted March 17, 2021 <html> I'm trying to catch the CloseIframe event <head> <title>IFRAME</title> <script language="JavaScript"> function close() { console.log('close'); top.ajaxRequest(top.MainForm.UniURLFrame1 , "CloseIframe",[]); }; </script> </head> <body> <h1>IFRAME</h1> <p> when clicking on the button you should close the iframe window opened by uniguiu </p> <button onclick="close()">Close</button> </body> </html> URLFrame2.rar Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 <head> <title>IFRAME</title> <script language="JavaScript"> function _close() { console.log('close'); top.ajaxRequest(top.MainForm.UniURLFrame1 , "CloseIframe",[]); }; </script> </head> <body> <h1>IFRAME</h1> <p> when clicking on the button you should close the iframe window opened by uniguiu </p> <button onclick="_close()">Close</button> </body> </html> Link to comment Share on other sites More sharing options...
Sherzod Posted March 17, 2021 Share Posted March 17, 2021 And don't forget to clear your browser cache. Link to comment Share on other sites More sharing options...
diegojmap Posted March 17, 2021 Author Share Posted March 17, 2021 Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now