Sherzod Posted May 25, 2016 Share Posted May 25, 2016 Hi, Sorry, you must upgrade to the latest version! Sorry, once again, if I understand correctly you, you want to do redirect, on the same page?! this should work - UniSession.UrlRedirect('http://www.google.com'); Best regards. Quote Link to comment Share on other sites More sharing options...
hamze Posted May 25, 2016 Author Share Posted May 25, 2016 Hi, Sorry, you must upgrade to the latest version! Sorry, once again, if I understand correctly you, you want to do redirect, on the same page?! this should work - UniSession.UrlRedirect('http://www.google.com'); Best regards. does not work.it needs disbaling popup yet Quote Link to comment Share on other sites More sharing options...
ZigZig Posted May 25, 2016 Share Posted May 25, 2016 Hello, It seems that we don't understand correcty your issue, because none of us is able to reproduce it. So could you please: - post a sample project that shows your problem; - specifiy your exact configuration (uniGUI and Delphi version, OS, browser, AV...) Thanks! Quote Link to comment Share on other sites More sharing options...
ZigZig Posted May 25, 2016 Share Posted May 25, 2016 Mask, glad to see I make you laugh, even if you try to talk to Farshad about me in Farsi, which is not very polite. I just wanted to help you, and I cannot reproduce your issue (nobody can). Sorry, I won't try to help you anymore, your last answer looks like a troll to me. 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 25, 2016 Administrators Share Posted May 25, 2016 We can not disable the pop-up blocker remotely. You must warn the user to disable the pop-up blocker before using this function of your app. Quote Link to comment Share on other sites More sharing options...
hamze Posted May 25, 2016 Author Share Posted May 25, 2016 Do not cheesy Quote Link to comment Share on other sites More sharing options...
ZigZig Posted May 25, 2016 Share Posted May 25, 2016 Anyway, UniSession.UrlRedirect('http://www.google.com') works iike a charm, even with a popup-blocker : the same window changes to Google page without blocking. Tested on MS Edge, IE11, Chrome and Firefox (latest uniGUI build : 1301). 2 Quote Link to comment Share on other sites More sharing options...
hamze Posted May 25, 2016 Author Share Posted May 25, 2016 Anyway, UniSession.UrlRedirect('http://www.google.com') works iike a charm, even with a popup-blocker : the same window changes to Google page without blocking. Tested on MS Edge, IE11, Chrome and Firefox (latest uniGUI build : 1301). thanks. please give me a sample that be contained this code Quote Link to comment Share on other sites More sharing options...
ZigZig Posted May 25, 2016 Share Posted May 25, 2016 UrlRedirect.zipHere it is. But, once again, it would be easier if you provide a test case with your issue. The purpose of this thread is not to prove that this command works on everybody's computer, but to understand how and why it does not on yours. 2 Quote Link to comment Share on other sites More sharing options...
hamze Posted May 26, 2016 Author Share Posted May 26, 2016 if it is possible send me exe file Thank you Quote Link to comment Share on other sites More sharing options...
ZigZig Posted May 26, 2016 Share Posted May 26, 2016 If you compile my previous code, you'll get the same exe file. And once again, it would be so much easier if you provide a sample test case with your issue, and if you specify your conf (OS version, browser version, AV, Delphi version, uniGUi version, aso), so that we can understand where is your problem. Anyway, here is a short video that shows how this code works perfectly: . 3 Quote Link to comment Share on other sites More sharing options...
hamze Posted May 26, 2016 Author Share Posted May 26, 2016 Thankful. Would you please send me an exe file .that has an edit text to enter an url and by pressing a button te url get open Quote Link to comment Share on other sites More sharing options...
ZigZig Posted May 26, 2016 Share Posted May 26, 2016 Dear Mask, I think it will be better if YOU make an exe file that has an edit text to enter an url, then calls UrlRedirect by pressing a button (just like I did) and see what will happen. If it doesn't work, then would you please upload your project, so that we can see where is your issue ? If I send you a compiled binary file, how will it help you? 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted May 26, 2016 Administrators Share Posted May 26, 2016 Thankful. Would you please send me an exe file .that has an edit text to enter an url and by pressing a button te url get open He has already sent you the project sources. Why do you ask for an EXE file? Quote Link to comment Share on other sites More sharing options...
hamze Posted May 26, 2016 Author Share Posted May 26, 2016 Thank you very much to all friends I'm all set Quote Link to comment Share on other sites More sharing options...
nurettin Posted July 1, 2016 Share Posted July 1, 2016 Same window: UniSession.UrlRedirect('http://www.google.com'); New window: UniSession.BrowserWindow('http://www.google.com', 0, 0, '_blank'); On vanilla chrome 51.0.2704.103 m, BrowserWindow() function opens both a tab and a new browser window. I guess it does everything to bypass popup blockers. Quote Link to comment Share on other sites More sharing options...
EDOM Posted May 9, 2023 Share Posted May 9, 2023 On 5/24/2016 at 7:23 PM, Farshad Mohajeri said: Same window: UniSession.UrlRedirect('http://www.google.com'); New window: UniSession.BrowserWindow('http://www.google.com', 0, 0, '_blank'); Hi Farshad, Is it possible to hide paramter in this functioin UniSession.UrlRedirect('http://www.google.com/SingleSignon.do?key=UjJsZ3p4Z0xnSmRHL2tBT2MxW'); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 9, 2023 Share Posted May 9, 2023 1 hour ago, EDOM said: Is it possible to hide paramter in this functioin UniSession.UrlRedirect('http://www.google.com/SingleSignon.do?key=UjJsZ3p4Z0xnSmRHL2tBT2MxW'); Also this post may help you: Quote Link to comment Share on other sites More sharing options...
EDOM Posted May 10, 2023 Share Posted May 10, 2023 15 hours ago, Sherzod said: Also this post may help you: Thank you for your prompt reply This method can hide parameters but the page will be show in a new window. How to implement this method in the original window? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2023 Share Posted May 10, 2023 1 hour ago, EDOM said: How to implement this method in the original window? Hello, You can try to use window.location.replace instead of window.open Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2023 Share Posted May 10, 2023 Or window.location.href Quote Link to comment Share on other sites More sharing options...
EDOM Posted May 10, 2023 Share Posted May 10, 2023 2 hours ago, Sherzod said: Or window.location.href Hi Sherzod, The problem has been solved. same window and hide parameter UniSession.AddJS( 'var f=document.createElement(''form''); '+ ' f.style.display=''none''; '+ ' f.action='''+sURL+'''; '+ ' f.method=''post''; ' ' f.innerHTML=''<input type="hidden" name="PARAMETER_NAME" value="PARAMETER_VALUE"/>''; '+ ' document.body.appendChild(f); '+ ' f.submit(); ' ); thank you for the information. 1 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 10, 2023 Share Posted May 10, 2023 Okay. Thanks. Quote Link to comment Share on other sites More sharing options...
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.