want to auto click the link when a field update happens picklist value is "sent to customer".
I have a link from website that when i click on link it will change status on website.
what i want is ,Want to auto click that link when a slaesforce field upadte happenes pick list value is"sent to customer".
auto click should run on back ground it should not reload page.
Help me suggesting some ideas .say me this is possible or not
{!REQUIRESCRIPT("/soap/ajax/19.0/connection.js")}
var c = new sforce.SObject("service_request__c");
c.id = "{!Service_Request__c.Id}";
c.status__c = "sent to customer";
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10) {
dd='0'+dd
}
if(mm<10) {
mm='0'+mm
}
today =yyyy+'-'+mm+'-'+ dd;
c.sentdate__c=today;
var a="{!Service_Request__c.Nicomatic_request_Id__c}".replace(",","");
result = sforce.connection.update([c]);
location.reload(true);
window.open('http://www.nicomatic.com/_1new_website/index.phpaction=ProcessReq3&idd='+'a')
I dont want to use open this url i want to click on this url ( i mean to execute this url ) without opening on new window browser