Jump to content

Recommended Posts

Posted

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?

Posted

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;

 

Posted

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.

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