Subversion Repositories HomeAutomation

Rev

Rev 2093 | Rev 2192 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 2093 Rev 2111
Line 8... Line 8...
8
 
8
 
9
    /* Function to update values of sliders based on new server data */
9
    /* Function to update values of sliders based on new server data */
10
    function handleServerData(jsonData)
10
    function handleServerData(jsonData)
11
    {
11
    {
12
      /* Loop through all results */
12
      /* Loop through all results */
13
      jQuery.each(jsonData.results, function(alias, data)
13
      jQuery.each(jsonData, function(alias, data)
14
      {
14
      {
15
        /* Only do something if we know the alias*/
15
        /* Only do something if we know the alias*/
16
        if (pageInstance.pageInfoElements[alias])
16
        if (pageInstance.pageInfoElements[alias])
17
        {
17
        {
18
          /* Clear existing information */
18
          /* Clear existing information */
Line 62... Line 62...
62
   
62
   
63
   
63
   
64
    /* Function to request new values from the server */
64
    /* Function to request new values from the server */
65
    function requestServerData()
65
    function requestServerData()
66
    {
66
    {
67
      sendCommand("Module_GetLastDataRaw " + pageInstance.aliases.join(" "), handleServerData);
67
      sendCommand("JSON.stringify(Module_GetLastDataNative('" + pageInstance.aliases.join("','") + "'));", handleServerData);
68
    }
68
    }
69
       
69
       
70
 
70
 
71
    /* Loop through all the aliases and create sliders */
71
    /* Loop through all the aliases and create sliders */
72
    jQuery.each(pageInstance.aliases, function(n, alias)
72
    jQuery.each(pageInstance.aliases, function(n, alias)