Re: [xul-interop] Trying to load a URL in Xul browser with javascript

Tom Brito <[email protected]> Thu, 28 Oct 2010 09:28:42 -0200
Newsgroups gmane.comp.lang.xul.general
Message-ID <[email protected]>
--===============7522125267259875836==
Content-Type: multipart/alternative; boundary=20cf301e2d87245da50493aba67c

--20cf301e2d87245da50493aba67c
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

with you button example it says:

Error: document.getElementById("browserID").loadURI is not a function

Source File: chrome://browser/content/browser.xul

Line: 1



I just saw that the problem occurs only if the I add my binding, using this
css:

#browserID { -moz-binding:
url("chrome://browser/content/browser.xml#greenfox_browser_bind"); }


And this binding:

> <?xml version=3D"1.0"?>


> <bindings xmlns=3D"http://www.mozilla.org/xbl" xmlns:xbl=3D"
> http://www.mozilla.org/xbl"

 xmlns:xul=3D"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul=
">


>  <binding id=3D"greenfox_browser_bind">

 <handlers>

 <handler event=3D"keypress" modifiers=3D"control" keycode=3D"DOM_VK_L">

 <![CDATA[

 var url =3D window.prompt('Digite o endere=E7o do site:','');

 dump("url =3D " + url + "\n");

 var browser =3D document.getElementById("browserID");

 dump("element =3D " + browser.nodeName + "\n");

 browser.loadURI(url);

 ]]>

 </handler>

 </handlers>

 </binding>


> </bindings>



If I don't add this binding, your example works fine.
Also I tried changing the browser id (in the 3 file), but it still don't
recognize the browser as an element if I add this binding.
Just don't know why.


*
Wellington B. de Carvalho
*


On Thu, Oct 28, 2010 at 4:11 AM, Evgeny <[email protected]> wrote:

> You can use loadURI from javascript with one argument, just ignore referr=
er
> and charset untill you really need them.
> browserElement.loadURL("http://www.yahoo.com")
> Make sure you call loadURI after browser element is loaded, for example o=
n
> window load event or some button click.
>
>
> <?xml version=3D"1.0"?>
> <?xml-stylesheet href=3D"chrome://global/skin/" type=3D"text/css"?>
>
> <window xmlns=3D"
> http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
>
>  <button height=3D"200" label=3D"go to Yahoo"
> oncommand=3D"netscape.security.PrivilegeManager.enablePrivilege('Universa=
lXPConnect');document.getElementById('browserID').loadURI('
> http://www.yahoo.com')"/>
>
> <browser id=3D"browserID" type=3D"content" src=3D"http://www.google.com.b=
r/"
> flex=3D"1" />
>
> </window>
>
>
>
> I used privilegemanager to test this from xul file loaded in browser, but
> if you writing extension you already have rights
>
>
> On Wed, Oct 27, 2010 at 5:07 PM, Tom Brito <[email protected]> wrote:
>
>> Hi there!
>>
>> I'm trying to use the function loadURI( uri, referrer, charset )<https:/=
/developer.mozilla.org/en/XUL/Method/loadURI>,
>> but I have low knowledge about web, and I really don't know what does it
>> means with "referrer" and what charset should I use. I think most web si=
tes
>> use UTF-16, right? And what should I pass to "referrer"?
>>
>> I just want to load "google.com".
>>
>> *My Xul file:*
>>
>> <window sizemode=3D"maximized" hidechrome=3D"true" id=3D"browserWindow"
>> title=3D"Window"
>>     onload=3D"window.opener.close();
>> document.getElementById('browserID').focus();"
>>     xmlns=3D"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.x=
ul
>> ">
>>     <browser id=3D"browserID" type=3D"content" src=3D"http://www.google.=
com.br/"
>> flex=3D"1" />
>> </window>
>>
>> *My javascript:*
>>
>> var element =3D document.getElementById('browserID');
>> dump('element =3D ' + element.nodeName + '\n');
>> element.loadURI("www.google.com", "", "UTF-16");
>>
>> *The console output:*
>>
>> Error: element.loadURI is not a function
>>
>>
>> *
>>
>> Any hint how to load the page?
>>
>>
>> []s
>>
>> Wellington B. de Carvalho
>> *
>>
>>
>> ------------------------------------------------------------------------=
------
>> Nokia and AT&T present the 2010 Calling All Innovators-North America
>> contest
>> Create new apps & games for the Nokia N8 for consumers in  U.S. and Cana=
da
>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
>> marketing
>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
>> http://p.sf.net/sfu/nokia-dev2dev
>> _______________________________________________
>> XUL News Wire      - http://xulnews.com
>> XUL Job Postings   - http://xuljobs.com
>> Open XUL Alliance - http://xulalliance.org
>> _______________________________________________
>> xul-talk mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xul-talk
>>
>>
>
>
> -------------------------------------------------------------------------=
-----
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canad=
a
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> XUL News Wire      - http://xulnews.com
> XUL Job Postings   - http://xuljobs.com
> Open XUL Alliance - http://xulalliance.org
> _______________________________________________
> xul-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xul-talk
>
>

--20cf301e2d87245da50493aba67c
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

with you button example it says:<div><br></div><blockquote class=3D"webkit-=
indent-blockquote" style=3D"margin: 0 0 0 40px; border: none; padding: 0px;=
"><div><blockquote class=3D"gmail_quote" style=3D"margin-top: 0px; margin-r=
ight: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; =
border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-le=
ft: 1ex; ">

Error: document.getElementById(&quot;browserID&quot;).loadURI is not a func=
tion</blockquote></div><div><blockquote class=3D"gmail_quote" style=3D"marg=
in-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; bor=
der-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-sty=
le: solid; padding-left: 1ex; ">

Source File: chrome://browser/content/browser.xul</blockquote></div><div><b=
lockquote class=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0px=
; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-le=
ft-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; =
">

Line: 1</blockquote></div></blockquote><div><div><br></div><div><br></div><=
div>I just saw that the problem occurs only if the I add my binding, using =
this css:</div></div><blockquote class=3D"webkit-indent-blockquote" style=
=3D"margin: 0 0 0 40px; border: none; padding: 0px;">

<div><div>#browserID { -moz-binding: url(&quot;chrome://browser/content/bro=
wser.xml#greenfox_browser_bind&quot;); }</div></div></blockquote><div><br><=
/div><div>And this binding:</div><div><blockquote class=3D"gmail_quote" sty=
le=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: =
0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); borde=
r-left-style: solid; padding-left: 1ex; ">

&lt;?xml version=3D&quot;1.0&quot;?&gt;</blockquote><blockquote class=3D"gm=
ail_quote" style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px;=
 margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 20=
4, 204); border-left-style: solid; padding-left: 1ex; ">

<br></blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0px=
; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-wi=
dth: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; =
padding-left: 1ex; ">

&lt;bindings xmlns=3D&quot;<a href=3D"http://www.mozilla.org/xbl">http://ww=
w.mozilla.org/xbl</a>&quot; xmlns:xbl=3D&quot;<a href=3D"http://www.mozilla=
.org/xbl">http://www.mozilla.org/xbl</a>&quot;</blockquote><blockquote clas=
s=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0px; margin-botto=
m: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(=
204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>xmlns:xul=
=3D&quot;<a href=3D"http://www.mozilla.org/keymaster/gatekeeper/there.is.on=
ly.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>&q=
uot;&gt;</blockquote>

<blockquote class=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0=
px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-=
left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex=
; ">

<br></blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0px=
; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-wi=
dth: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; =
padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;bindin=
g id=3D&quot;greenfox_browser_bind&quot;&gt;</blockquote><blockquote class=
=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0px; margin-bottom=
: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(2=
04, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;handl=
ers&gt;</blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: =
0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left=
-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: soli=
d; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt;hand=
ler event=3D&quot;keypress&quot; modifiers=3D&quot;control&quot; keycode=3D=
&quot;DOM_VK_L&quot;&gt;</blockquote><blockquote class=3D"gmail_quote" styl=
e=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0=
.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border=
-left-style: solid; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">				</span>&lt;![C=
DATA[</blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0p=
x; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-w=
idth: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid;=
 padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">					</span>var ur=
l =3D window.prompt(&#39;Digite o endere=E7o do site:&#39;,&#39;&#39;);</bl=
ockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0px; margin=
-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px=
; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-=
left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">					</span>dump(&=
quot;url =3D &quot; + url + &quot;\n&quot;);</blockquote><blockquote class=
=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0px; margin-bottom=
: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-color: rgb(2=
04, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">					</span>var br=
owser =3D document.getElementById(&quot;browserID&quot;);</blockquote><bloc=
kquote class=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0px; m=
argin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-left-=
color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">					</span>dump(&=
quot;element =3D &quot; + browser.nodeName + &quot;\n&quot;);</blockquote><=
blockquote class=3D"gmail_quote" style=3D"margin-top: 0px; margin-right: 0p=
x; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: 1px; border-l=
eft-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;=
 ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">					</span>browse=
r.loadURI(url);</blockquote><blockquote class=3D"gmail_quote" style=3D"marg=
in-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; bor=
der-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-sty=
le: solid; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">				</span>]]&gt;<=
/blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0px; mar=
gin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-width: =
1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; paddi=
ng-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">			</span>&lt;/han=
dler&gt;</blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top:=
 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-lef=
t-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: sol=
id; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">		</span>&lt;/hand=
lers&gt;</blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top:=
 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-lef=
t-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: sol=
id; padding-left: 1ex; ">

<span class=3D"Apple-tab-span" style=3D"white-space:pre">	</span>&lt;/bindi=
ng&gt;</blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0=
px; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-=
width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid=
; padding-left: 1ex; ">

<br></blockquote><blockquote class=3D"gmail_quote" style=3D"margin-top: 0px=
; margin-right: 0px; margin-bottom: 0px; margin-left: 0.8ex; border-left-wi=
dth: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; =
padding-left: 1ex; ">

&lt;/bindings&gt;</blockquote></div><div><br></div><div><br></div><div>If I=
 don&#39;t add this binding, your example works fine.</div><div>Also I trie=
d changing the browser id (in the 3 file), but it still don&#39;t recognize=
 the browser as an element if I add this binding.</div>

<div>Just don&#39;t know why.</div><div><br></div><div><div><br></div><i><d=
iv style=3D"text-align:left"><span style=3D"font-style:normal"><i>Wellingto=
n B. de Carvalho</i></span></div></i><br>
<br><br><div class=3D"gmail_quote">On Thu, Oct 28, 2010 at 4:11 AM, Evgeny =
<span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:=
0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>You can use loadURI from javascript with one argument, just ignore ref=
errer and charset untill you really need them.</div><div>browserElement.loa=
dURL(&quot;<a href=3D"http://www.yahoo.com" target=3D"_blank">http://www.ya=
hoo.com</a>&quot;)</div>


<div>Make sure you call loadURI after browser element is loaded, for exampl=
e on window load event or some button click.</div><div><br></div><div><br><=
font face=3D"courier new,monospace">&lt;?xml version=3D&quot;1.0&quot;?&gt;=
  <br>


&lt;?xml-stylesheet href=3D&quot;chrome://global/skin/&quot; type=3D&quot;t=
ext/css&quot;?&gt;  <br>  <br>&lt;window xmlns=3D&quot;<a href=3D"http://ww=
w.mozilla.org/keymaster/gatekeeper/there.is.only.xul" target=3D"_blank">htt=
p://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>&quot;&gt; <b=
r>


<br>=A0&lt;button height=3D&quot;200&quot; label=3D&quot;go to Yahoo&quot; =
oncommand=3D&quot;netscape.security.PrivilegeManager.enablePrivilege(&#39;U=
niversalXPConnect&#39;);document.getElementById(&#39;browserID&#39;).loadUR=
I(&#39;<a href=3D"http://www.yahoo.com" target=3D"_blank">http://www.yahoo.=
com</a>&#39;)&quot;/&gt;<div class=3D"im">

<br>
 &lt;browser id=3D&quot;browserID&quot; type=3D&quot;content&quot; src=3D&q=
uot;<a href=3D"http://www.google.com.br/" target=3D"_blank">http://www.goog=
le.com.br/</a>&quot; flex=3D&quot;1&quot; /&gt;<br><br>&lt;/window&gt;</div=
></font><br>

</div><div><br></div>
<div><br></div><div>I used privilegemanager to test this from xul file load=
ed in browser, but if you writing extension you already have rights</div><d=
iv><br></div><div><br></div><div class=3D"gmail_quote"><div><div></div><div=
 class=3D"h5">

On Wed, Oct 27, 2010 at 5:07 PM, Tom Brito <span dir=3D"ltr">&lt;<a href=3D=
"http://brito.pro" target=3D"_blank">brito.pro</a>@<a href=3D"http://gmail.=
com" target=3D"_blank">gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class=3D"h5=
"><span style=3D"font-family:Arial, &#39;Liberation Sans&#39;, &#39;DejaVu =
Sans&#39;, sans-serif;font-size:14px;border-collapse:collapse;line-height:1=
8px"><p style=3D"margin-top:0px;margin-right:0px;margin-bottom:1em;margin-l=
eft:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0=
px;border-top-width:0px;border-right-width:0px;border-bottom-width:0px;bord=
er-left-width:0px;border-style:initial;border-color:initial;font-size:14px;=
vertical-align:baseline;background-color:transparent;clear:both;word-wrap:b=
reak-word;background-repeat:initial initial">




Hi there!</p><p style=3D"margin-top:0px;margin-right:0px;margin-bottom:1em;=
margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom:0px;paddin=
g-left:0px;border-top-width:0px;border-right-width:0px;border-bottom-width:=
0px;border-left-width:0px;border-style:initial;border-color:initial;font-si=
ze:14px;vertical-align:baseline;background-color:transparent;clear:both;wor=
d-wrap:break-word;background-repeat:initial initial">




I&#39;m trying to use the function=A0<a href=3D"https://developer.mozilla.o=
rg/en/XUL/Method/loadURI" rel=3D"nofollow" style=3D"margin-top:0px;margin-r=
ight:0px;margin-bottom:0px;margin-left:0px;padding-top:0px;padding-right:0p=
x;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-wid=
th:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;b=
order-color:initial;font-size:14px;vertical-align:baseline;background-color=
:transparent;color:rgb(0, 119, 204);text-decoration:none;background-repeat:=
initial initial" target=3D"_blank">loadURI( uri, referrer, charset )</a>, b=
ut I have low knowledge about web, and I really don&#39;t know what does it=
 means with &quot;referrer&quot; and what charset should I use. I think mos=
t web sites use UTF-16, right? And what should I pass to &quot;referrer&quo=
t;?</p>




<p style=3D"margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0=
px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo=
rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le=
ft-width:0px;border-style:initial;border-color:initial;font-size:14px;verti=
cal-align:baseline;background-color:transparent;clear:both;word-wrap:break-=
word;background-repeat:initial initial">




I just want to load &quot;<a href=3D"http://google.com" target=3D"_blank">g=
oogle.com</a>&quot;.</p><p style=3D"margin-top:0px;margin-right:0px;margin-=
bottom:1em;margin-left:0px;padding-top:0px;padding-right:0px;padding-bottom=
:0px;padding-left:0px;border-top-width:0px;border-right-width:0px;border-bo=
ttom-width:0px;border-left-width:0px;border-style:initial;border-color:init=
ial;font-size:14px;vertical-align:baseline;background-color:transparent;cle=
ar:both;word-wrap:break-word;background-repeat:initial initial">




<b style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0=
px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo=
rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le=
ft-width:0px;border-style:initial;border-color:initial;font-size:14px;verti=
cal-align:baseline;background-color:transparent;font-weight:bold;background=
-repeat:initial initial">My Xul file:</b></p>




</span><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><spa=
n style=3D"font-family:Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#=
39;, sans-serif;font-size:14px;border-collapse:collapse;line-height:18px"><=
font face=3D"arial"><span style=3D"border-collapse:separate;line-height:nor=
mal;font-size:small">&lt;window sizemode=3D&quot;maximized&quot; hidechrome=
=3D&quot;true&quot; id=3D&quot;browserWindow&quot; title=3D&quot;Window&quo=
t;<br>




</span></font></span><span style=3D"font-family:Arial, &#39;Liberation Sans=
&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;border-collapse:col=
lapse;line-height:18px"><font face=3D"arial"><span style=3D"border-collapse=
:separate;line-height:normal;font-size:small">=A0=A0 =A0onload=3D&quot;wind=
ow.opener.close(); document.getElementById(&#39;browserID&#39;).focus();&qu=
ot;<br>




</span></font></span><span style=3D"font-family:Arial, &#39;Liberation Sans=
&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;border-collapse:col=
lapse;line-height:18px"><font face=3D"arial"><span style=3D"border-collapse=
:separate;line-height:normal;font-size:small">=A0=A0 =A0xmlns=3D&quot;<a hr=
ef=3D"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" target=
=3D"_blank">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</=
a>&quot;&gt;<br>




</span></font></span><span style=3D"font-family:Arial, &#39;Liberation Sans=
&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;border-collapse:col=
lapse;line-height:18px"><font face=3D"arial"><span style=3D"border-collapse=
:separate;line-height:normal;font-size:small">=A0=A0 =A0&lt;browser id=3D&q=
uot;browserID&quot; type=3D&quot;content&quot; src=3D&quot;<a href=3D"http:=
//www.google.com.br/" target=3D"_blank">http://www.google.com.br/</a>&quot;=
 flex=3D&quot;1&quot; /&gt;<br>




</span></font></span><span style=3D"font-family:Arial, &#39;Liberation Sans=
&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;border-collapse:col=
lapse;line-height:18px"><font face=3D"arial"><span style=3D"border-collapse=
:separate;line-height:normal;font-size:small">&lt;/window&gt;<br>




<br></span></font></span></blockquote><span style=3D"font-family:Arial, &#3=
9;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;bo=
rder-collapse:collapse;line-height:18px"><p style=3D"margin-top:0px;margin-=
right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0=
px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-wi=
dth:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;=
border-color:initial;font-size:14px;vertical-align:baseline;background-colo=
r:transparent;clear:both;word-wrap:break-word;background-repeat:initial ini=
tial">




<b style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0=
px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo=
rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le=
ft-width:0px;border-style:initial;border-color:initial;font-size:14px;verti=
cal-align:baseline;background-color:transparent;font-weight:bold;background=
-repeat:initial initial">My javascript:</b></p>




</span><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><spa=
n style=3D"font-family:Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#=
39;, sans-serif;font-size:14px;border-collapse:collapse;line-height:18px"><=
font face=3D"arial"><span style=3D"border-collapse:separate;line-height:nor=
mal;font-size:small">var element =3D document.getElementById(&#39;browserID=
&#39;);<br>




</span></font></span><span style=3D"font-family:Arial, &#39;Liberation Sans=
&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;border-collapse:col=
lapse;line-height:18px"><font face=3D"arial"><span style=3D"border-collapse=
:separate;line-height:normal;font-size:small">dump(&#39;element =3D &#39; +=
 element.nodeName + &#39;\n&#39;);<br>




</span></font></span><span style=3D"font-family:Arial, &#39;Liberation Sans=
&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;border-collapse:col=
lapse;line-height:18px"><font face=3D"arial"><span style=3D"border-collapse=
:separate;line-height:normal;font-size:small">element.loadURI(&quot;<a href=
=3D"http://www.google.com" target=3D"_blank">www.google.com</a>&quot;, &quo=
t;&quot;, &quot;UTF-16&quot;);<br>




<br></span></font></span></blockquote><span style=3D"font-family:Arial, &#3=
9;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif;font-size:14px;bo=
rder-collapse:collapse;line-height:18px"><p style=3D"margin-top:0px;margin-=
right:0px;margin-bottom:1em;margin-left:0px;padding-top:0px;padding-right:0=
px;padding-bottom:0px;padding-left:0px;border-top-width:0px;border-right-wi=
dth:0px;border-bottom-width:0px;border-left-width:0px;border-style:initial;=
border-color:initial;font-size:14px;vertical-align:baseline;background-colo=
r:transparent;clear:both;word-wrap:break-word;background-repeat:initial ini=
tial">




<b style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0=
px;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px;bo=
rder-top-width:0px;border-right-width:0px;border-bottom-width:0px;border-le=
ft-width:0px;border-style:initial;border-color:initial;font-size:14px;verti=
cal-align:baseline;background-color:transparent;font-weight:bold;background=
-repeat:initial initial">The console output:</b></p>




</span><blockquote style=3D"margin:0 0 0 40px;border:none;padding:0px"><spa=
n style=3D"font-family:Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#=
39;, sans-serif;font-size:14px;border-collapse:collapse;line-height:18px"><=
font face=3D"arial"><span style=3D"border-collapse:separate;line-height:nor=
mal;font-size:small">Error: element.loadURI is not a function</span></font>=
</span></blockquote>




<div><br></div><i><div style=3D"text-align:left"><span style=3D"font-style:=
normal"><br></span></div><div style=3D"text-align:left"><span style=3D"font=
-style:normal">Any hint how to load the page?</span></div>

<div style=3D"text-align:left"><span style=3D"font-style:normal"><br></span=
></div><div style=3D"text-align:left"><span style=3D"font-style:normal"><br=
></span></div><div style=3D"text-align:left">

<span style=3D"font-style:normal">[]s</span></div><div style=3D"text-align:=
left"><span style=3D"font-style:normal"><i><br></i></span></div><div style=
=3D"text-align:left"><span style=3D"font-style:normal"><i>Wellington B. de =
Carvalho</i></span></div>




</i><br>
<br></div></div>-----------------------------------------------------------=
-------------------<br>
Nokia and AT&amp;T present the 2010 Calling All Innovators-North America co=
ntest<br>
Create new apps &amp; games for the Nokia N8 for consumers in =A0U.S. and C=
anada<br>
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketin=
g<br>
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br=
>
<a href=3D"http://p.sf.net/sfu/nokia-dev2dev" target=3D"_blank">http://p.sf=
.net/sfu/nokia-dev2dev</a><br>_____________________________________________=
__<br>
XUL News Wire =A0 =A0 =A0- <a href=3D"http://xulnews.com" target=3D"_blank"=
>http://xulnews.com</a><br>
XUL Job Postings =A0 - <a href=3D"http://xuljobs.com" target=3D"_blank">htt=
p://xuljobs.com</a><br>
Open XUL Alliance - <a href=3D"http://xulalliance.org" target=3D"_blank">ht=
tp://xulalliance.org</a><br>
_______________________________________________<br>
xul-talk mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">xul-tal=
[email protected]</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/xul-talk" target=3D=
"_blank">https://lists.sourceforge.net/lists/listinfo/xul-talk</a><br>
<br></blockquote></div><br>
<br>-----------------------------------------------------------------------=
-------<br>
Nokia and AT&amp;T present the 2010 Calling All Innovators-North America co=
ntest<br>
Create new apps &amp; games for the Nokia N8 for consumers in =A0U.S. and C=
anada<br>
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketin=
g<br>
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store<br=
>
<a href=3D"http://p.sf.net/sfu/nokia-dev2dev" target=3D"_blank">http://p.sf=
.net/sfu/nokia-dev2dev</a><br>_____________________________________________=
__<br>
XUL News Wire =A0 =A0 =A0- <a href=3D"http://xulnews.com" target=3D"_blank"=
>http://xulnews.com</a><br>
XUL Job Postings =A0 - <a href=3D"http://xuljobs.com" target=3D"_blank">htt=
p://xuljobs.com</a><br>
Open XUL Alliance - <a href=3D"http://xulalliance.org" target=3D"_blank">ht=
tp://xulalliance.org</a><br>
_______________________________________________<br>
xul-talk mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
e.net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/xul-talk" target=3D=
"_blank">https://lists.sourceforge.net/lists/listinfo/xul-talk</a><br>
<br></blockquote></div><br></div>

--20cf301e2d87245da50493aba67c--


--===============7522125267259875836==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
--===============7522125267259875836==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
XUL News Wire      - http://xulnews.com
XUL Job Postings   - http://xuljobs.com
Open XUL Alliance - http://xulalliance.org  
_______________________________________________
xul-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xul-talk

--===============7522125267259875836==--