Ya, I posted this in the other group ... but I wasn't getting any more
responses ... and I still have no clue what's wrong.

Here's the code for http://www.urona.com/simp17.xml ...

<?xml version="1.0" ?>
<Module>
  <ModulePrefs title="simp17"><Require feature="setprefs"/></
ModulePrefs>
  <UserPref name="lyst" display_name="link" datatype="list"
default_value="one|two|three|four|five"/>
  <Content type="html"><![CDATA[
  <style type="text/css">
    a { text-decoration:none; background-color:#FFFFCC; color:navy;
font-size:80%; }
    s { text-decoration:none; background-color:silver; color:black;
font-size:80%; }
  </style>
  <div id="content_div" style="height:100; font-size:80%; padding:
2px;
background-color:#FFFFCC;"></div>
  <script type="text/javascript">
  var p = new _IG_Prefs(__MODULE_ID__);
  function addIt(linc) {
    var l = p.getArray('lyst');
    l.push(linc);
    l.sort();
    p.setArray('lyst',l);
    listIt();
  }
  function ridIt(at) {
        var l = p.getArray('lyst');
        l.splice(at,1);
        p.setArray('lyst',l);
        listIt();
  }
  function listIt() {
    var l = p.getArray('lyst');
    var html = "";
    for (var n = 0; n < l.length ; n++) {
      html += '<a target=\"_blank\" href=\"' + l[n] + '\">' + l[n] +
'</a><s>&nbsp;<a href=\"javascript:ridIt(' + n.toString() + ')
\"><s>&#215;</s></a>&nbsp;</s>&nbsp';
    }
    html += '<form method=get style=\"padding:0px;\"><table border=0
cellspacing=0 cellpadding=0 width=100%><tr>'
    html += '<td width=85%><input type=text name=\"it\" title=\"it\"
value=\"\" style=\"border:none; font-size:80%; width:99%;\"/></td>'
    html += '<td width=15% align=left><s>&nbsp;<a href=
\"javascript:addIt(document.forms[0].elements[0].value)\" title=\"set
\"><s>add</s></a>&nbsp;</s></td>'
    html += '</tr></table></form>';
    _gel('content_div').innerHTML = html;
  }
  listIt();
  </script>
  ]]>
  </Content>
</Module>

I got the "R" in "Require feature", which was holding me back before.
And I can set STRING values just fine.

But setArray does not take.

I tried using FireBug ... I messed with it quite a bit ... even locked
up FireFox ... couldn't make heads or tails of anything other than
that there was an error on line 103 of server.js.

I much prefer Chrome ... so if someone can tell me ... briefly, but
precisely ... how to use Chrome to debug these .xml's, I'd be happy to
try.

My guess, at this point, is setArray is not yet supported in GMail.
In looking at the other gadgets available for GMail, I don't see any
that seem like they use setArray.  But that's totally a guess.

Otherwise, if someone could tell me what's wrong with my code, that'd
be great!

Thanks!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Gadgets-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to