<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
<channel>
<title>CodeStore.net comments on "How to Embed a Login Form on All Lotus Domino Pages"</title>
<description>Replies to blog "How to Embed a Login Form on All Lotus Domino Pages" on codestore.net.</description>
<link>http://www.codestore.net/</link>
<lastBuildDate></lastBuildDate>
<atom:link href="http://www.codestore.net/store.nsf/blog.xml?Open=20080130" rel="self" type="application/rss+xml" />

<item>
	<title>Reply from andy</title>
	<pubDate></pubDate>
	<author>andy</author>
	<description><![CDATA[ 
		<p>Here is a modified way of logging on using AJAX...</p>
		<p>Using the same form from Jake..</p>
		<p>add this code to your jsHeader..</p>
		<p>var oXmlHttp;</p>
		<p>function getHTTPObject()</p>
		<p>{</p>
		<p>if (typeof XMLHttpRequest != "undefined") {</p>
		<p>return new XMLHttpRequest();</p>
		<p>} else if (typeof ActiveXObject != "undefined") {</p>
		<p>return new ActiveXObject("Microsoft.XMLHTTP");</p>
		<p>} else {</p>
		<p>throw new Error("XMLHttpRequest not supported");</p>
		<p>}</p>
		<p>}</p>
		<p>function stateChanged()</p>
		<p>{</p>
		<p>if (oXmlHttp.readyState==4 || oXmlHttp.readyState=="complete")</p>
		<p>{</p>
		<p>document.write(oXmlHttp.responseText);</p>
		<p>}</p>
		<p>}</p>
		<p>function login()</p>
		<p>{</p>
		<p>var content = '';</p>
		<p>oXmlHttp = getHTTPObject();</p>
		<p>oXmlHttp.onreadystatechange = stateChanged;</p>
		<p>oXmlHttp.open( "POST", '/names.nsf?login', true );</p>
		<p>oXmlHttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); </p>
		<p>content += "&redirectto=" + document.getElementById('redirectto').value;</p>
		<p>content += "&username=" + document.getElementById('form_email').value;</p>
		<p>content += "&password=" + document.getElementById('form_password').value;</p>
		<p>oXmlHttp.send(content);</p>
		<p>}</p>
		<p>and this to your form...</p>
		<p>&lt;input type ="button" value ="login" onclick= "login()"&gt;</p>
		<p>everything else remains the same.</p>
		<p>andy : notes411</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=93841427E2D2B3A6852573ED0040BA2B"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_93841427</link>
</item><item>
	<title>Reply from Jake Howlett</title>
	<pubDate></pubDate>
	<author>Jake Howlett</author>
	<description><![CDATA[ 
		<p>Do you mean session-based authentication Ian? If so, yes. No need for SSO as such.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=740C73F147ADE772852573EC005A1494"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_740C73F1</link>
</item><item>
	<title>Reply from Ian</title>
	<pubDate></pubDate>
	<author>Ian</author>
	<description><![CDATA[ 
		<p>Does the login form rely on single signon being switched on?</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=FC60F1F152EEFF08852573EC00581713"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_FC60F1F1</link>
</item><item>
	<title>Reply from Rob</title>
	<pubDate></pubDate>
	<author>Rob</author>
	<description><![CDATA[ 
		<p>Thanks Jake. That's just the info I need to try out your flyout login (that has a ring to it).</p>
		<p>I like Tommy's idea about squeezing the code into the HTML body attribute form field too.</p>
		<p>You're making me a hero to my customers.</p>
		<p>Rob:-]</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=C20F0A99545B87AB852573E3005B9D7B"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_C20F0A99</link>
</item><item>
	<title>Reply from Chris Toohey</title>
	<pubDate></pubDate>
	<author>Chris Toohey</author>
	<description><![CDATA[ 
		<p>Well, if Tommy can link to *his* article... ;-)</p>
		<p>{<a rel="nofollow" href="http://www.dominoguru.com/pages/01302008012143.html">Link</a>}</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=22D07803A57AA385852573E0006D2568"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_22D07803</link>
</item><item>
	<title>Reply from Tommy Valand</title>
	<pubDate></pubDate>
	<author>Tommy Valand</author>
	<description><![CDATA[ 
		<p>@Ajay: I've made a demoapplication on how to inject forms using DHTML if you're interested. Somewhat similar technique to what Chris is talking about, although not as fancy, as it was a quick mockup.</p>
		<p>{<a rel="nofollow" href="http://dontpanic82.blogspot.com/2008/01/embed-multiple-standalone-forms-on.html">Link</a>}</p>
		<p>Sorry for the intrusion Jake.. :)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=525BFE96D25AC72A852573E00066ACF5"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_525BFE96</link>
</item><item>
	<title>Reply from Chris Toohey</title>
	<pubDate></pubDate>
	<author>Chris Toohey</author>
	<description><![CDATA[ 
		<p>I do something like this - but as I roll my own forms etc. I don't have to worry about this as much.  What I typically do is have a DIV id'ed as "popup", where I'll throw UI prompt content and make it act as a modal window (ie., z-index it out, drop a full-page semi-transparent DIV between the background and the "popup") and use AJAX to populate said popup with whatever I need.</p>
		<p>Most of the time it's field-level stuff - ie., a widget to complete a subset of fields on the form or something like that (think name pickers, etc.), but I've used the same approach to give the user a login form from anywhere in the application.  The "popup" DIV sits right after the BODY tag, so it's never really an issue having to deal with nested forms - despite the DHTML giving the appearance of such functionality.</p>
		<p>That being said, good stuff! ;-)</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=D73CF2D8EFA70EA2852573E0005DC709"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_D73CF2D8</link>
</item><item>
	<title>Reply from Erik</title>
	<pubDate></pubDate>
	<author>Erik</author>
	<description><![CDATA[ 
		<p>Thank you!</p>
		<p>Sometimes we focus on domino being so different, that we try to make things to hard and miss these simple solutions.</p>
		<p>You're the man!</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=2B08B0F07DC0B027852573E00051656C"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_2B08B0F0</link>
</item><item>
	<title>Reply from jay</title>
	<pubDate></pubDate>
	<author>jay</author>
	<description><![CDATA[ 
		<p>Just make sure that the LOGIN form is NOT nested inside the MAIN form. As long as they are not nested, the correct form will be submitted.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=AB065F39AA4CD20B852573E0004F52A6"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_AB065F39</link>
</item><item>
	<title>Reply from Ajay B Mali</title>
	<pubDate></pubDate>
	<author>Ajay B Mali</author>
	<description><![CDATA[ 
		<p>Hi Jake,</p>
		<p>We are getting two HTML form tag in view source of page in browser, one form tag for main form and other which is login form.</p>
		<p>My question is, How will I handle when we are submiiting the Login form ? Will it submit the main form as well ?</p>
		<p>Could you please help me</p>
		<p>Regards</p>
		<p>Ajay  B Mali</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=5543D9D63EF0764D852573E00048FFB6"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_5543D9D6</link>
</item><item>
	<title>Reply from Nick</title>
	<pubDate></pubDate>
	<author>Nick</author>
	<description><![CDATA[ 
		<p>Ooops. No money in it, I guess I should have said "Award"</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=051E164C7D8F244C852573E000473588"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_051E164C</link>
</item><item>
	<title>Reply from Nick</title>
	<pubDate></pubDate>
	<author>Nick</author>
	<description><![CDATA[ 
		<p>Thanks Jake. More reason you got the reward. I never put any thought into putting this into our website, and I am quickly applying this as we speak.</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=6B6F108D643650FE852573E000472D82"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_6B6F108D</link>
</item><item>
	<title>Reply from Caroline</title>
	<pubDate></pubDate>
	<author>Caroline</author>
	<description><![CDATA[ 
		<p>This looks useful - not something I've ever thought about doing until now. Thanks. </p>
		<p>Not sure about the &lt;orm&gt; element though! ;-)</p>
		<p>"Form elements in HTML can not be nested. This means that if there's an open &lt;orm&gt; tag on the page then you need to close it with a &lt;/form&gt; before you can include the above PassThru!"</p>

		<p><a href="http://www.codestore.net/store.nsf/reply?OpenForm&ParentUNID=A9796682BBCBB4ED852573E0003D1766"><img border="0" src="http://www.codestore.net/store.nsf/images/rss_reply.gif" alt="Click here to post a response" /></a></p>
	]]></description>
	<link>http://www.codestore.net/store.nsf/unid/BLOG-20080130?OpenDocument#DOC_A9796682</link>
</item>

</channel>
</rss> 
