Jump to content

How set src for TUNIURLFrame


altagur

Recommended Posts

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?

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

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