Skip to main content

Hi all, if i have a custom javascript which is call a web service and return a string "HelloWord", how can i display the string to the form label control? thanks.

 

function fun() 
{
   var data="hello";  
   $
.get("http://localhost/ws/service.asmx/HelloWord", function(response) {
            
data = response;  
      
}).error(function(){ 
      alert
("Sorry could not proceed");
      
});   
   return data;
}

NWF$("#" + yourcontrolName).val(YourValue);


hi Joe,

refer to this link

 

regards,

race eka patria


Hi Ranjith Can you tell me in Javascript how to block a user from submitting the form if some fields are not filled in?

i tried event.preventDefault(); but this hang at saving dialog and user cannot go back and fill the form and retry.


Hi Reva Can you tell me in Javascript how to block a user from submitting the form if some fields are not filled in?

i tried event.preventDefault(); but this hang at saving dialog and user cannot go back and fill the form and retry.


Reply