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? Quote 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. Quote 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. Quote 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? Quote 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. Quote 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. Quote 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 Quote 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 Quote 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> Quote 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. Quote Link to comment Share on other sites More sharing options...
diegojmap Posted March 17, 2021 Author Share Posted March 17, 2021 Thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.