NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: mpalade on May 04, 2009, 03:03:58 PM

Title: Integrate openID Login Box (Plugin)
Post by: mpalade on May 04, 2009, 03:03:58 PM
Hello,

I am testing WebServer a little bit a try to obtain the same effect as:
http://openid.myofiz.com/login.example.html (http://openid.myofiz.com/login.example.html)
using the NetTalk web server.

I deploy the HTML and script files in the corresponding subfolders, I check for the right references, but I get errors at runtime, like the one attached. It seems that is related to the permission of running scripts.

Any ideea what am I missing?

Thank you,

Mihai PALADE

[attachment deleted by admin]
Title: Re: Integrate openID Login Box (Plugin)
Post by: mpalade on May 06, 2009, 10:39:28 AM
Further investigating:
I managed to generate exactly the source code below, using Nettalk:

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>                                                                 
<head>                                                                 
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>OpenID Login Box</title>                                                           
</head>                                                                 
<body style="padding: 50px">
<div id="openidloginbox" style="width:270px; border:1px solid lightblue; padding:2px;"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery.cookie.js"></script>         
<script type="text/javascript" src="jx-base-0.61.min.js"></script>
<script type="text/javascript" src="openidloginbox.config.js"></script>
<script type="text/javascript" src="openidloginbox-0.2.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$("#openidloginbox").append(OpenID.LoginBox);
OpenID.LoginBox.doLayout();

});

                             
</script> 

<script>bodyOnLoad();</script>
 
</body>                                                                 
</html>

This HTML page can be seen perfectly if loaded from a file on HDD, but at runtime I get JavaScript errors. Of course, all the *.js files referenced by OpenIDLoginBox plugin are in the "scripts" subfolder (I also tried to put them directly in "web" subfolder - the effect is the same, not working).

Mihai PALADE
Title: Re: Integrate openID Login Box (Plugin)
Post by: Bruce on May 06, 2009, 10:46:54 PM
Hi Mihai,

it seems to me that it might be a conflict between the JavaScript used there, and the rico.js file which NetTalk uses.

Probably your best approach for now is to add "static" pages to your web folder to do the OpenId login. ie pages which do not include the rico javascript (or indeed any of the other NetTalk JavaScript.)

However I'm not sufficiently up to speed on OpenId to follow the process through at this time. But please keep us posted on your progress.

Cheers
Bruce