on 01-29-2016 9:16 AM
Hi,
I have whitelist-checked the www.sap.com url, and add the following script
session.utils.openUrl(http://www.sap.com);
But it does not open the url in tab and the log shows "the url is non-whitelist". But I have in admin tool set the white list and the whitelist check went with green light.
Does anyone have idea what is likely wrong here? Thanks.
Dong Zhu
Hi Dong,
Did you check what openURL method accepts. Press CTRL+SPACE to see it as shown below
It expects string. So this will work:
session.utils.openUrl('http://www.sap.com');
If it doesn't then please open a message with us.
Regards,
Sushant
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dong,
Even i tried and check the solution of Sushant and it works fine for me also. I think the issue is of Single quote inside the round bracket (' ')
Try this once:
session.utils.openUrl('http://www.sap.com');
My URL Whitelist is show in below screenshot.
regards,
Vipul Koladia
Hi Sushant and Vipul,
Many thanks for the reply. The error was due to the missing of quota mark - it should be a STRING used inside (). Set your answers as correct and helpful.
By the way, teh original JS code
window.open(http://www.sap.com);
works fine too. Can I understand that utils.openUrl() is calling window.open() to do the same job? How can I dig into util.opUrl() func to see the code?
Thx.
Br,
Dong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.