I have a javascript error saying:

gadgets is not defined
connexion()login.ph...module.js (ligne 24)
onclick(click clientX=143, clientY=90)login.ph...muA%3D%3D (ligne 2)
[Break on this error] alert(gadgets.views.getCurrentView().getName());


why do i have this error? i have the libcore.js source...
<script src='http://www.google.com/ig/f/2dhyBXfcpQ8/lib/libcore.js'></
script>



On 21 jan, 16:21, GregParis <[email protected]> wrote:
> Hi,
>
> I haven't been able the find examples using views with the content
> type url, all i've  been able to find is with the html.
> Is it possible de do it with the url type?
>
> I pasted bellow part of my code. I thought this should work...
>
> part of my php file:
>
> <html>
>    <head>
>    <script src='http://www.google.com/ig/f/2dhyBXfcpQ8/lib/
> libcore.js'></script>
>    <script language="javascript" src="md5.js"></script>
>         <link rel="stylesheet" type="text/css" href="style.css" />
>
>         <script type="text/javascript">
>
>                 function initialize()
>                 {
>                         var prefs = new _IG_Prefs();
>
>                 }
>
>                 function navigateTo(dest) {
>                         var supported_views = 
> gadgets.views.getSupportedViews();
>                         
> gadgets.views.requestNavigateTo(supported_views[dest]);
>                 }
>
>                 function connexion(){
>                         var prefs = new _IG_Prefs();
>
>                         
> prefs.set("email",document.getElementById("email").value);
>                         
> prefs.set("pwd",MD5(document.getElementById("pwd").value));
>
>                         navigateTo("main");
>                 }
> </script>
>
> part of my xml file:
>
> <Content type="url" href="http://127.0.0.1/xxx/login.php"; view="login"/
>
> <Content type="url" href="http://127.0.0.1/xxx/main.php"; view="main"/>
>
> Greg
--~--~---------~--~----~------------~-------~--~----~
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