Re: [xul-interop] Trying to load a URL in Xul browser with javascript
Tom Brito <[email protected]> Wed, 3 Nov 2010 09:56:40 -0200
| Newsgroups | gmane.comp.lang.xul.general |
|---|---|
| Message-ID | <[email protected]> |
--===============5829846579572621029== Content-Type: multipart/alternative; boundary=0016e65a09bc2e91a1049424bd33 --0016e65a09bc2e91a1049424bd33 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Found: the error was in the binder. Putting the browser tag withing the XBL and using getAnonymousNodes it work= s just fine. * Wellington B. de Carvalho * On Thu, Oct 28, 2010 at 9:28 AM, Tom Brito <[email protected]> wrote: > 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 th= is > 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.x= ul >> "> > > >> <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 >> referrer 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 = on >> 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('Univers= alXPConnect');document.getElementById('browserID').loadURI(' >> http://www.yahoo.com')"/> >> >> <browser id=3D"browserID" type=3D"content" src=3D"http://www.google.com.= br/" >> flex=3D"1" /> >> >> </window> >> >> >> >> I used privilegemanager to test this from xul file loaded in browser, bu= t >> 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 i= t >>> means with "referrer" and what charset should I use. I think most web s= ites >>> 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.= xul >>> "> >>> <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 >>> 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 Stor= e >>> 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 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 >> >> > --0016e65a09bc2e91a1049424bd33 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Found: the error was in the binder.<div>Putting the browser tag withing the= XBL and using getAnonymousNodes it works just fine.<br clear=3D"all"><div>= <br></div><div><br></div><i><div style=3D"text-align:left"><span style=3D"f= ont-style:normal"><i>Wellington B. de Carvalho</i></span></div> </i><br> <br><br><div class=3D"gmail_quote">On Thu, Oct 28, 2010 at 9:28 AM, Tom Bri= to <span dir=3D"ltr"><<a href=3D"http://brito.pro">brito.pro</a>@<a href= =3D"http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class= =3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padd= ing-left:1ex;"> with you button example it says:<div><br></div><blockquote style=3D"margin:= 0 0 0 40px;border:none;padding:0px"><div><blockquote class=3D"gmail_quote" = style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8e= x;border-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-st= yle:solid;padding-left:1ex"> Error: document.getElementById("browserID").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;border-left= -width:1px;border-left-color:rgb(204, 204, 204);border-left-style:solid;pad= ding-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;ma= rgin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:r= gb(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 style=3D"margin:0 0 0 40px;border:none;pad= ding:0px"> <div><div>#browserID { -moz-binding: url("chrome://browser/content/bro= wser.xml#greenfox_browser_bind"); }</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;b= order-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style= :solid;padding-left:1ex"> <?xml version=3D"1.0"?></blockquote><blockquote class=3D"gm= ail_quote" style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margi= n-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);bor= der-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-width:1px;= border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1= ex"> <bindings xmlns=3D"<a href=3D"http://www.mozilla.org/xbl" target=3D= "_blank">http://www.mozilla.org/xbl</a>" xmlns:xbl=3D"<a href=3D"= http://www.mozilla.org/xbl" target=3D"_blank">http://www.mozilla.org/xbl</a= >"</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:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span>xmlns:xul=3D"<a href=3D"h= ttp://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" target=3D"_bl= ank">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"= ;></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: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-width:1px;= border-left-color:rgb(204, 204, 204);border-left-style:solid;padding-left:1= ex"> <span style=3D"white-space:pre-wrap"> </span><binding id=3D"greenfo= x_browser_bind"></blockquote><blockquote class=3D"gmail_quote" styl= e=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;bo= rder-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:= solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span><handlers></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:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span><handler event=3D"ke= ypress" modifiers=3D"control" keycode=3D"DOM_VK_L"= ></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:solid;padding-left:1= ex"> <span style=3D"white-space:pre-wrap"> </span><![CDATA[</blockquote><b= lockquote class=3D"gmail_quote" style=3D"margin-top:0px;margin-right:0px;ma= rgin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:r= gb(204, 204, 204);border-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span>var url =3D window.prompt(= 'Digite o endere=E7o do site:','');</blockquote><blockquote= class=3D"gmail_quote" style=3D"margin-top:0px;margin-right:0px;margin-bott= om:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 2= 04, 204);border-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span>dump("url =3D " = + url + "\n");</blockquote><blockquote class=3D"gmail_quote" styl= e=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;bo= rder-left-width:1px;border-left-color:rgb(204, 204, 204);border-left-style:= solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span>var browser =3D document.g= etElementById("browserID");</blockquote><blockquote class=3D"gmai= l_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);borde= r-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span>dump("element =3D &qu= ot; + browser.nodeName + "\n");</blockquote><blockquote class=3D"= gmail_quote" style=3D"margin-top:0px;margin-right:0px;margin-bottom:0px;mar= gin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204, 204, 204);b= order-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span>browser.loadURI(url);</blo= ckquote><blockquote class=3D"gmail_quote" style=3D"margin-top:0px;margin-ri= ght: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"> <span style=3D"white-space:pre-wrap"> </span>]]></blockquote><blockqu= ote class=3D"gmail_quote" style=3D"margin-top:0px;margin-right:0px;margin-b= ottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204= , 204, 204);border-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span></handler></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-colo= r:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span></handlers></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-colo= r:rgb(204, 204, 204);border-left-style:solid;padding-left:1ex"> <span style=3D"white-space:pre-wrap"> </span></binding></blockquote><= blockquote 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"> <br></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:solid;padding-left:1= ex"> </bindings></blockquote></div><div><br></div><div><br></div><div>If I= don'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't recognize= the browser as an element if I add this binding.</div> <div>Just don'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><div><div></div><div class=3D"h5"><br> <br><br><div class=3D"gmail_quote">On Thu, Oct 28, 2010 at 4:11 AM, Evgeny = <span dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank"= >[email protected]</a>></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("<a href=3D"http://www.yahoo.com" target=3D"_blank">http://www.ya= hoo.com</a>")</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"><?xml version=3D"1.0"?>= <br> <?xml-stylesheet href=3D"chrome://global/skin/" type=3D"t= ext/css"?> <br> <br><window xmlns=3D"<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>"> <b= r> <br>=A0<button height=3D"200" label=3D"go to Yahoo" = oncommand=3D"netscape.security.PrivilegeManager.enablePrivilege('U= niversalXPConnect');document.getElementById('browserID').loadUR= I('<a href=3D"http://www.yahoo.com" target=3D"_blank">http://www.yahoo.= com</a>')"/><div> <br> <browser id=3D"browserID" type=3D"content" src=3D&q= uot;<a href=3D"http://www.google.com.br/" target=3D"_blank">http://www.goog= le.com.br/</a>" flex=3D"1" /><br><br></window></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= > On Wed, Oct 27, 2010 at 5:07 PM, Tom Brito <span dir=3D"ltr"><<a href=3D= "http://brito.pro" target=3D"_blank">brito.pro</a>@<a href=3D"http://gmail.= com" target=3D"_blank">gmail.com</a>></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><span style= =3D"font-family:Arial, 'Liberation Sans', 'DejaVu Sans', sa= ns-serif;font-size:14px;border-collapse:collapse;line-height:18px"><p style= =3D"margin-top:0px;margin-right:0px;margin-bottom:1em;margin-left:0px;paddi= ng-top:0px;padding-right:0px;padding-bottom:0px;padding-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-size:14px;vertical-alig= n:baseline;background-color:transparent;clear:both;word-wrap:break-word;bac= kground-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'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't know what does it= means with "referrer" and what charset should I use. I think mos= t web sites use UTF-16, right? And what should I pass to "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 "<a href=3D"http://google.com" target=3D"_blank">g= oogle.com</a>".</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, 'Liberation Sans', '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"><window sizemode=3D"maximized" hidechrome= =3D"true" id=3D"browserWindow" title=3D"Window&quo= t;<br> </span></font></span><span style=3D"font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', 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"wind= ow.opener.close(); document.getElementById('browserID').focus();&qu= ot;<br> </span></font></span><span style=3D"font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', 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"<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>"><br> </span></font></span><span style=3D"font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', 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<browser id=3D&q= uot;browserID" type=3D"content" src=3D"<a href=3D"http:= //www.google.com.br/" target=3D"_blank">http://www.google.com.br/</a>"= flex=3D"1" /><br> </span></font></span><span style=3D"font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', 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"></window><br> <br></span></font></span></blockquote><span style=3D"font-family:Arial, = 9;Liberation Sans', 'DejaVu Sans', 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, 'Liberation Sans', '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('browserID= ');<br> </span></font></span><span style=3D"font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', 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('element =3D ' += element.nodeName + '\n');<br> </span></font></span><span style=3D"font-family:Arial, 'Liberation Sans= ', 'DejaVu Sans', 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("<a href= =3D"http://www.google.com" target=3D"_blank">www.google.com</a>", &quo= t;", "UTF-16");<br> <br></span></font></span></blockquote><span style=3D"font-family:Arial, = 9;Liberation Sans', 'DejaVu Sans', 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, 'Liberation Sans', '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&T present the 2010 Calling All Innovators-North America co= ntest<br> Create new apps & 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&T present the 2010 Calling All Innovators-North America co= ntest<br> Create new apps & 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></div></div></div> </blockquote></div><br></div> --0016e65a09bc2e91a1049424bd33-- --===============5829846579572621029== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Achieve Improved Network Security with IP and DNS Reputation. Defend against bad network traffic, including botnets, malware, phishing sites, and compromised hosts - saving your company time, money, and embarrassment. Learn More! http://p.sf.net/sfu/hpdev2dev-nov --===============5829846579572621029== 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 --===============5829846579572621029==--