<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Developing a &#8216;login&#8217; with ajaxed</title>
	<atom:link href="http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/</link>
	<description>hot talk about web scripting</description>
	<pubDate>Sat, 22 Nov 2008 04:51:53 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Jake</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-9583</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Fri, 14 Nov 2008 15:50:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-9583</guid>
		<description>The login.asp didn't work until I added [asp] page.DBConnection = true [/asp]</description>
		<content:encoded><![CDATA[<p>The login.asp didn't work until I added
<div class="igBar"><span id="lasp-1"><a href="#" onclick="javascript:showCodeTxt('asp-1'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">ASP:</span>
<div id="asp-1">
<div class="asp">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#767676;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">page.<span style="color:#9900CC;">DBConnection</span> = <span style="color:#0000FF; font-weight:bold;">true</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8987</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Mon, 21 Jul 2008 01:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8987</guid>
		<description>i see.. dunno if this makes a lot sense but i will think about it ... maybe its useful</description>
		<content:encoded><![CDATA[<p>i see.. dunno if this makes a lot sense but i will think about it ... maybe its useful</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Russo</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8985</link>
		<dc:creator>Vince Russo</dc:creator>
		<pubDate>Mon, 21 Jul 2008 01:15:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8985</guid>
		<description>All I've done is change the column name to something that is different.
I changed line 241 in your JSON.asp file to read
toJSON lCase("c"&#38;i), val.fields(i).value, true

I just changed "c"&#38;i - c is just a letter and the i is your incremented value.
together they will make c0,c2,c3, etc...

Every column in the table will have its named pair to be substituted with c0,c1,c2,c3,c4, etc...  (this hides the true column names)

In javascript access the passed JSON using Ajax request.
myObject.rows[i].c1;
myObject.rows[i].c2; etc.

This hides the actual name of my sql columns, but I can still access the data by using the substituted names. 

It is a quicker and simpler way.

What do you think?</description>
		<content:encoded><![CDATA[<p>All I've done is change the column name to something that is different.<br />
I changed line 241 in your JSON.asp file to read<br />
toJSON lCase("c"&amp;i), val.fields(i).value, true</p>
<p>I just changed "c"&amp;i - c is just a letter and the i is your incremented value.<br />
together they will make c0,c2,c3, etc...</p>
<p>Every column in the table will have its named pair to be substituted with c0,c1,c2,c3,c4, etc...  (this hides the true column names)</p>
<p>In javascript access the passed JSON using Ajax request.<br />
myObject.rows[i].c1;<br />
myObject.rows[i].c2; etc.</p>
<p>This hides the actual name of my sql columns, but I can still access the data by using the substituted names. </p>
<p>It is a quicker and simpler way.</p>
<p>What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8983</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sun, 20 Jul 2008 23:52:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8983</guid>
		<description>this makes no sense .. if you hide it then you cannot use it anymore ;)</description>
		<content:encoded><![CDATA[<p>this makes no sense .. if you hide it then you cannot use it anymore ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Russo</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8977</link>
		<dc:creator>Vince Russo</dc:creator>
		<pubDate>Sun, 20 Jul 2008 15:44:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8977</guid>
		<description>OK.

I do want all the columns returned, I just don't want their real column names returned in the JSON feed.
  
I could use an alias as you suggest, I never thought of that.

But, it would be cool to provide the functionality that I suggested to hide the column names if an alias wasn't used.

I think less work then alias column names in a table.

Just my 2 cents.

Thanks for you suggestion, it does make sense.

Vince</description>
		<content:encoded><![CDATA[<p>OK.</p>
<p>I do want all the columns returned, I just don't want their real column names returned in the JSON feed.</p>
<p>I could use an alias as you suggest, I never thought of that.</p>
<p>But, it would be cool to provide the functionality that I suggested to hide the column names if an alias wasn't used.</p>
<p>I think less work then alias column names in a table.</p>
<p>Just my 2 cents.</p>
<p>Thanks for you suggestion, it does make sense.</p>
<p>Vince</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8976</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sun, 20 Jul 2008 15:19:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8976</guid>
		<description>when you return a recordset then you should only select those columns which you want to return .. e.g

&lt;code&gt;
sql = "SELECT col1, col2 FROM table"
page.return(db.getRecordset(sql))
&lt;/code&gt;

only col1 and col2 will be returned. they must be returned because you want to do something with them ..
you could also alias the columns if you dont want to keep the "real" names:

&lt;code&gt;
sql = "SELECT col1 AS myCol FROM table"
&lt;/code&gt;

hope that helps you.... greets</description>
		<content:encoded><![CDATA[<p>when you return a recordset then you should only select those columns which you want to return .. e.g</p>
<p><code><br />
sql = "SELECT col1, col2 FROM table"<br />
page.return(db.getRecordset(sql))<br />
</code></p>
<p>only col1 and col2 will be returned. they must be returned because you want to do something with them ..<br />
you could also alias the columns if you dont want to keep the "real" names:</p>
<p><code><br />
sql = "SELECT col1 AS myCol FROM table"<br />
</code></p>
<p>hope that helps you.... greets</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Russo</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8974</link>
		<dc:creator>Vince Russo</dc:creator>
		<pubDate>Sun, 20 Jul 2008 14:46:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8974</guid>
		<description>Hi Michal,

I see you made a post, I didn't realize that.

I'm not sure what you mean by just don't select them.

They are in the recordset.

Vince</description>
		<content:encoded><![CDATA[<p>Hi Michal,</p>
<p>I see you made a post, I didn't realize that.</p>
<p>I'm not sure what you mean by just don't select them.</p>
<p>They are in the recordset.</p>
<p>Vince</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Russo</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8973</link>
		<dc:creator>Vince Russo</dc:creator>
		<pubDate>Sun, 20 Jul 2008 14:45:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8973</guid>
		<description>I changed line 241 to
toJSON lCase("c"&#38;i), val.fields(i).value, true

This will do what I want, it now sends c0,c1,c2,c3 etc... as my col names, so this wont expose the actual column names in my database.

I would be cool to add a flag to the toJSON call though so it would work the way it does now, or with my mod just by setting the flag.

Just a suggestion.

THanks 

Michal

This is awsome</description>
		<content:encoded><![CDATA[<p>I changed line 241 to<br />
toJSON lCase("c"&amp;i), val.fields(i).value, true</p>
<p>This will do what I want, it now sends c0,c1,c2,c3 etc... as my col names, so this wont expose the actual column names in my database.</p>
<p>I would be cool to add a flag to the toJSON call though so it would work the way it does now, or with my mod just by setting the flag.</p>
<p>Just a suggestion.</p>
<p>THanks </p>
<p>Michal</p>
<p>This is awsome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michal</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8972</link>
		<dc:creator>Michal</dc:creator>
		<pubDate>Sun, 20 Jul 2008 14:38:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8972</guid>
		<description>you can hide columns easily .. just dont select them ;)</description>
		<content:encoded><![CDATA[<p>you can hide columns easily .. just dont select them ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vince Russo</title>
		<link>http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8971</link>
		<dc:creator>Vince Russo</dc:creator>
		<pubDate>Sun, 20 Jul 2008 14:13:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.webdevbros.net/2008/04/17/developing-a-login-with-ajaxed/#comment-8971</guid>
		<description>Is there anyway to hide the column names in the JSON that is returned?

Say, instead of the names of the tables just have them named c1,c2,c3 etc..

Is that possible, maybe it can be set by a flag in the call.

response.write((new JSON).toJSON("rows", Recordset1,False,nocolnames))

I thought if someone knows the column names in a table it allows the database to be hacked more easily.

Vince</description>
		<content:encoded><![CDATA[<p>Is there anyway to hide the column names in the JSON that is returned?</p>
<p>Say, instead of the names of the tables just have them named c1,c2,c3 etc..</p>
<p>Is that possible, maybe it can be set by a flag in the call.</p>
<p>response.write((new JSON).toJSON("rows", Recordset1,False,nocolnames))</p>
<p>I thought if someone knows the column names in a table it allows the database to be hacked more easily.</p>
<p>Vince</p>
]]></content:encoded>
	</item>
</channel>
</rss>
