Jump to content

Urlframe navigate


mierlp

Recommended Posts

hi

 

When the user is running our web application there's a button to go to a customers website.

We don't want them to use the IE on the server so we open the url in a uniFrame.

 

But...how can i navigate when the user opens the customer site into the urlframe

and navigates to other pages within the customer site. Within a TWebbrowser

you can GoBack/GoForward.

 

Or are there other suggestions ?

 

Regards Peter

Link to comment
Share on other sites

You may do it with JS

procedure TMainForm.UniURLFrame1FrameLoaded(Sender: TObject);
begin
  UniSession.AddJS('var url = document.getElementById("component-1009").contentWindow.location.href;');
end;

you may add this url into some JavaScript Array and create history.

 

But when you do this, you might get this error

Permission denied to access property "href"

Cause accessing a frame URL with JS (or another way) is too risky for website security and they're not allow that because of it.

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