altagur Posted March 25, 2014 Posted March 25, 2014 Is exist simple way to ser url for TUNIURLFrame in client javascript? Not work: function click(sender, e, eOpts){ Ext.getCmp(MainForm.secframe.id).Dom.src = '/files/hellow.html'; } Work but wow: function click(sender, e, eOpts){ document.getElementById(MainForm.secframe.id).children[0].children[0].children[0].children[0].src = '/files/hellow.html'; } How set URL property for TUNIURLFrame and HTML property for TUNIHTML frame in javascrip? Quote
Sherzod Posted March 26, 2014 Posted March 26, 2014 Hi altagur. Try function window.click(sender, eOpts) { MainForm.UniURLFrame1.iframe.src = "files/test.htm"; } or procedure TMainForm.UniButton1Click(Sender: TObject); begin UniSession.AddJS(UniURLFrame1.JSName + '.iframe.src = "files/test.htm";'); end; Quote
altagur Posted March 27, 2014 Author Posted March 27, 2014 Many thanks dear Delphi Developer. You help me absolutely. I am stuped old programmer but now i can handle dangerouse iframe. Thanks to you for all these. Quote
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.