Advertisement
Guest User

ladon js client

a guest
Jan 10th, 2013
25
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function carregarProjectes() {
  2.     //carreguem la descripcio dels webservices
  3.     client.loadDescription("http://100.100.100.207/gesalight/Projectes/jsonwsp/description", function() {
  4.         //obtenim tots els projectes i omplim el select
  5.         client.getAllProjectes({}, null, function(resp) {
  6.             var projlst = "<option value='9999'>[ Tria Un Projecte ]</option>";
  7.             projects = resp;
  8.             for (var i = 0; i < resp.length; i++) {
  9.                 projlst = projlst + "<option value='" + i + "'>" + resp[i].tipus + resp[i].codi + "</option><br>";
  10.             }
  11.             document.getElementById("projecte").innerHTML = projlst;
  12.         });
  13.     });
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement