You need to sign in to do that
Don't have an account?
jburns12
Simple Problem, send Sip command from java
Basically what we need is a dial button, I have been able to get it to work by simply having the button navigate to sip:{!Landing_Page_Lead__c.Dial__c}.... However then the user has to close the new window. What I would like to do is send an http request with java...I cannot seem to get it to work: Please help
{!requireScript("/soap/ajax/13.0/connection.js")}
{
URL sip = new URL("sip:{!Landing_Page_Lead__c.Dial__c}");
URLConnection yahooConnection = sip.openConnection();
sipConnection.connect();
} catch (MalformedURLException e) { // new URL() failed
. . .
} catch (IOException e) { // openConnection() failed
. . .
}
From java or javascript (the requestScript line is throwing me) ?
either one, doesnt make a difference to me, i was under the impression it needed to be there to pass the custom field values. I just need to get this working, I have tried opening a popup and closing it automatically...cant get that work either
You can't write java in the browser (without compiling it to an applet), so how exactly are you trying to run the java code ?
thanks for your help we solved the problem by opening and autoclosing a popup window