Jump to content

open url on its parent page by click button


hamze

Recommended Posts

 

Same window:

UniSession.UrlRedirect('http://www.google.com');

New window:

UniSession.BrowserWindow('http://www.google.com', 0, 0, '_blank');

does it need to disable popup yet with this code?

Link to comment
Share on other sites

my address isn't in same domain.

let's explain my problem obviously.

i have a Online banking gateway.at first i should send some information then gateway will give me ResID.

i should attach ResID to a Url.for example and new create Url opened in same page


or 


now all opration should do in this Button 

Link to comment
Share on other sites

does not work.it needs disbaling popup yet

 

UniSession.UrlRedirect('http://www.google.com');

 

this is a dirty style

 

procedure TMainForm.UniButton2Click(Sender: TObject);

begin
  UniServerModule.ServerMessages.TerminateTemplate.Text := '<script>location.href=''http://google.com''</script>';
  close;
end;
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...