I have a problem displaying to the gadget's main window , a string
that i make in the javascript file . please help . the problem
intervenes when i use the functions document.write(); , it doesn't
recognise "document". I'm new to GD-Gadgets , so a little help would
be  welcomed ..


here is the javascript document :


function DisplayOrar()
{ var fin="";
debug.info("incepe debug..");
view.alert("a inceput display orar");
var n=MON.length; var txt=MON; var i=0; var j=0; var curr='I';
  while(i<n) {
if(txt.charAt(i)=='[') {j=0; i++;
                if(txt.charAt(i) != curr && txt.charAt(i) != ']' ) j=1;
                          i=i+1; if (txt.charAt(i) == ']' ) i++; fin
+='\n'   }
        if(j==0) { fin+=txt.charAt(i);  }
i++; }
//////////
/////////
document.write(fin);
/////////
/////////
// the problem intervenes here ; the rest is ok , the string MON is
declaired in the //en/strings file
}



here is the main xml file :


<view height="300" width="250">
  <img src="background.png"/>
<script type="text/javascript" src="main.js" />
  <label id="x" enabled="true" width="250" x="0" y="60" align="center"
size="15" onopen="DisplayOrar()" onclick="DisplayOrar()">
text
  </label>

</view>





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" 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-desktop-developer?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to