Wednesday, April 1, 2009

Is it worth the wait for any feature on visual studio?




The class discussion about "wait for the feature" untill microsoft officially releases a product feature (Drag and drop for AJAX).




Dr.Pardue showed his love for only sticking with and using Microsoft's "officially released" features.




Corporate companies have their own corporate cultures in terms of the best practises to be used, it is confusing when one company has outlook 'A' when it comes to best practise where as a different company may have outlook 'B' to the same particular problem. The best practise is decided based on the fact if the company likes to be on the edge in terms of technology. Where as a company developing a business Application would cohear to more safe and tested best practises.




Presenter: Informed us about using DOJO the javascript toolkit, with the application development under ASP.net




Went over the AJAX Toolkit (how to install it videos) showed us the samples .




Scalability?







AJAX: Clay Davidson article (doc)
What is LINQ? (A new reserch topic)

Draft version of CSS3. Only mozilla implements it.

How AJAX is ajax?

Ajax very well known as (Asynchronous JavaScript and XML), has made itself to the top of the buzz word list. When you think of the the concept of AJAX it has been implemented using different technologies in the past. Microsoft started that post back technology and named it as ActiveX control.

Most of the times when ever you see the fancy script on a webpage doing funky things. I tell my self oh.. that must be AJAX magic. But to my wonder most of those funky doing scripts I have come accross were either mainly doing javascripts or were combination of Asynchronous Javascripts.

If I was to guess from my browsing experience, XML is barely 20% of the times used where ever the word AJAX is used.

Monday, March 30, 2009

CTS presentation on AJAX

Asynchronous Java Script And XML


1. Asynchronous
2. Javasript
3. XML (Not in literal sense) (Could be tags)




Why? AJAX??


- Lots of data running back and forth.
- Instant feedback for actions from database.
- Not asking server to get the whole page.
Example: some calculation that took long time on a given page and you need to refresh a small component on a page
It would refresh and goes over the same query for that small piece of code.




Microsoft solution inplace of AJAX was ActiveX control
-======-
ASP.NET Examples below.




Asyncronous
- Communication - XML Http Request


Javascript
- Client side processing
- DHTML
Change all the properties of HTML on the fly.


XML
- Data Exchange format.




Script Manager
- Brings the thousands of lines of code to the programming, Its like a container
- In code add where ever but always should be before Update Panel.


Update Panel
- To Ajaxify the exisiting buttons tables or other controls
- After adding
<?xml:namespace prefix = asp /><asp:updatepanel id="panel1update" runat="server"> </asp:updatepanel>

-Add the
 <contenttemplate> </contenttemplate>
tag right after update panel


Question: What if there was object that was outside the scope of <scriptmanager>because of the asthetic reasons?</scriptmanager>
A: Use
<trigger> </trigger>
tag
<triggers></triggers>

 <asp:asyncpostbacktrigger controlid="Button1"></asp:asyncpostbacktrigger>

// CAN HAVE AS MANY AS NEED BE
 



Update Progress
-


Timer
- Shows the time used.








DEMONSTRATION
---------------------------
Client side
============





var xmlHttp;


function PrepareRequest()
{
Request("PrimativeAjax.aspx?data=a");
}


funtion Request(url)
{
xmlHtp = null;
if(window.XMLHttpRequest)
{
xmlHttp = new XMLHttpRequest();
}
else if (window.ActiveXObject) {
isIE = true;
return new ActiveXObject("Microsoft.XMLHTTP");
}
}




function doCompletion() {
if (completeField.value == "") {
clearTable();
} else {
var url = "autocomplete?action=complete&id=" +
escape(completeField.value);
var req = initRequest();
req.onreadystatechange = function() {
if (req.readyState == 4) {
if (req.status == 200) {
parseMessages(req.responseXML);
} else if (req.status == 204){
clearTable();
}
}
};
req.open("GET", url, true);
req.send(null);
}
}
fucntion ReloadPage(data){
if(data != null)
{
document.getElementById("textbox1").innerText = data;
}








==========
Server Side
==========
if(
Response.Write(Time.Now().ToString());
httpContext.Current.ApplicationInstance.Complete(); // this is for sending the 200 code to the requesting client.

Thursday, March 26, 2009

Color Scheme



#####  Color Palette by Color Scheme Generator #####  Palette URL: http://colorschemedesigner.com/#2K62nsOsOK-K-   *** Primary Color:     var. 1 = #38C113 = rgb( 56,193, 19)    var. 2 = #437935 = rgb( 67,121, 53)    var. 3 = #155C02 = rgb( 21, 92,  2)    var. 4 = #85F069 = rgb(133,240,105)    var. 5 = #B8F0A9 = rgb(184,240,169)  *** Secondary Color A:     var. 1 = #1C4A98 = rgb( 28, 74,152)    var. 2 = #2F415F = rgb( 47, 65, 95)    var. 3 = #031D48 = rgb(  3, 29, 72)    var. 4 = #719CE5 = rgb(113,156,229)    var. 5 = #A9BFE5 = rgb(169,191,229)  *** Secondary Color B:     var. 1 = #E6DE17 = rgb(230,222, 23)    var. 2 = #8F8C3F = rgb(143,140, 63)    var. 3 = #6D6903 = rgb(109,105,  3)    var. 4 = #F9F36D = rgb(249,243,109)    var. 5 = #F9F6B0 = rgb(249,246,176)  *** Complementary Color:     var. 1 = #DC162D = rgb(220, 22, 45)    var. 2 = #8A3C45 = rgb(138, 60, 69)    var. 3 = #69030F = rgb(105,  3, 15)    var. 4 = #F66C7C = rgb(246,108,124)    var. 5 = #F6AEB7 = rgb(246,174,183)   #####  Generated by Color Scheme Designer © Petr Stanicek 2002-2009

CSS tags for a:link a:hover

Found Solution 
a:link:hover, a:visited:hover {text-decoration: underline; color: red; background: yellow}


reference

Tuesday, March 24, 2009

Almost Lost the previous post, Thanks to the auto save feature (draft) in the blogger.com website

This new HP DV9207us laptop craps out on me everytime I am about to finishing up something valuable. 

After the lappy craped out on me, I had 4 mins before the class and had to rush... so on my way was thinking about the google mails auto save feature, and hoping that google integrated that to this blogger website.

Really this feature is a life saver and I rejoiced seeing my typed blog post was saved in as a drafts under posts

rANdOM ThOUgHTS

Just finished watching interview of the whole house crew... and the question about "would you go to medical school?", and their replies were either "I could last their for a week" , "I could be a lawn doctor" makes me wonder... are we all really getting stupid.. yes, i say we cause I feel no different when it comes to thinking "Its too much for me to do or learn"...

After years I realize that a blog might help me share my ideas and elaborate on my thought process and think more clearly... and I Come back to this blog....

Ok, so getting back to the thought process... Is it genetically part of all human beings to set limits for themselves and start saying "I can..." and "I can't..." do this... or its the fear of learning new things and failing... or we are just complaisant enough with what we know, and not learn new things and think would get us around, without them.

I have realized many times, when things start falling apart, my thought process automatically weakens and starts falling apart too and this happens in a growing progression... (It is more in terms that my mind says "I can't" instead of "I can") the only way out for me, is to either completely focus on that thought fight with it or find some digression far away from that thought. When starting to fall apart... the psychological response: if i decide to focus and stick with the thought, then it is to go about taking a nap and relax my body. while the mind has all the freedom to solve the complexities of mind (formal thougth: think only about the problems) and not get distracted by the interrupts raised by other organ system.