What am I doing wrong? The first send gets a security error and does not update the other server. The second send leaves a blank window open but works.
Posted By Gary Davies on 11/25/2009 10:19 AM I dont know why you are fussing with %% and changing it back to &. Just use the & as such s += "&Division=" + escape(lawForm.getFormValue("text2")); The server you are calling, does it require authentication? is it not the Lawson server, is it 9.0 and is the other server included in the SSO. The second is going to do that exactly, it will pop open a new window an attempt the call, if the servier that is being called does not return a response it would be blank. I would not use the window.open unless you want the results to stay open. You probably can trick it by assigning the open var TheWindow = window.open(s); TheWindow.close(); But I would not recommend this.
The server you are calling, does it require authentication? - NO.
is it not the Lawson server,- NO.
is the other server included in the SSO - NO. It is just a web service on another server that keeps data in sync between the two.
Thanks for the "escape" tip.
I believe your first example fails because your are submitting an http request through a Portal object and that won't work.
Have you returned the URL in either a print statement or prompt box so you can capture and test it?
Did you try window.location.href?
function LoadSite() {
var url = "http://www.google.com";
window.location.href=url;
}