Follow me on Twitter at Twitter.com/wbm
FYI, I'm blogging most of my stuff over at More Wally now.
You might want to add my rss feed to your reader at:http://morewally.com/cs/blogs/wallym/rss.aspx
October 2005 - Posts - Wallace B. McClure

Wallace B. McClure

All About Wally McClure - The musings of Wallym on Web, HTML5, Mobile, Xamarin.iOS, Xamarin.Android, and Windows Azure.

News

Visual Studio Magazine Column Personal Blog

.NET

Book Authors

Business

Family

Friends

Georgia Tech Bloggers

Personal

Archives

October 2005 - Posts

ASP.NET Podcast Show #24 - More Atlas, Debugging with Atlas, and Various Book Status

Subscribe, its the good thing to do. iTunes and iPodder links.

 

Download.

 

Special thanks go out to Wilco Bauwer who has posted a lot of his insight into Atlas in the ASP.NET forums.

 

Show Notes:

  • Emails.
    • Our hero Phil Winstanley supports the show
      And thanks go out to Plip for these pictures:
      Super Wally
    • Scott Fletcher says that “Wally is the hottest thing in Podcasting!”
    • Chris Frazier agrees with Scott.
  • Atlas.
    • What are some of the Atlas pieces-n-parts.  Wally bloggerizes from Nikhil Kothari’s weblog. (Note: Wally made up the word bloggerize.  It means to steal from someone else's blog without their permission.  You learn something new on a podcast every day.........).
    • Example (Note: There is an sState, which refers to an HTML tag, and there is a property referred to as State.  These are separate and I appologize for any confusion):

Client Side Code:
        function LoadTest(){

            Samples.AspNet.WebServiceTest.ReturnDataSet(ReturnDataTableCallBack);

        }

       

        function ReturnDataTableCallBack(result)

        {

            var i = 0;

            var ddl = document.getElementById("sState");

            var optionItem;

            iLength = document.getElementById("sState").options.length;

            document.getElementById("sState").visible = true;

            //document.getElementById("txtAreaResult").value = result.get_data();

            for(i=0; i<iLength; i++)

            {

                document.getElementById("sState").options[0] = null;

            }

            alert("Length: " + result.get_length() );

            for(i=0; i<result.get_length(); i++)

            {

                var optAdd = new Option(result.getItem(i).getProperty("State"),result.getItem(i).getProperty("tblStateId"));

                for(m in result.getItem(i)){

                    //alert(m);

                }

                document.getElementById("sState").options.add(optAdd);

            }

            debug.dump(result, "DataTable Result", true);

        }
Server Side Code:
        [WebMethod]

        public System.Data.DataTable ReturnDataSet()

        {

            DataTable dt = new DataTable();

            DataRow dr;

            dt.Columns.Add(new DataColumn("tblStateId", System.Type.GetType("System.Int32")));

            dt.Columns.Add(new DataColumn("State", System.Type.GetType("System.String")));

            dr = dt.NewRow();

            dr["tblStateId"] = 1;

            dr["State"] = "Tennessee";

            dt.Rows.Add(dr);

            dr = dt.NewRow();

            dr["tblStateId"] = 2;

            dr["State"] = "Alabama";

            dt.Rows.Add(dr);

            return (dt);

        }

  • Debugging with Atlas.
    • debug.dump(object, name [, recursive[, indention padding]]);The output from debug.dump.>
    • for(m in results) alert(m);
  • Wally does pimp himself.
  • Book Status.
    • ADO.NET.
    • Ajax/Atlas Book.
    • Please come be the IIS7 lead author.  Being a lead author is so much fun.
A tip for debugging with Atlas
This code shows you what you can call on your serialized object when using Atlas:
for(m in myObject){  //in my case, I was using result.getItem(i)
    alert(m);
}

Thanks to Wilco Bauwer for showing it to me in the asp.net forums.

Posted: Oct 18 2005, 03:38 PM by Wallym | with no comments
Filed under:
ASP.NET Podcast Show #23 - Spang, Summit Round Up, Intro to Atlas, Oh My!

Subscribe  - It makes life easier.  Get a copy of iPodder or iTunes.

Download.

Show Notes:

  • Spang.
    • What Spang Truly is.
    • Dave Sussman's Reaction to the Spang announcement. Dave: "I can't get enough Spang!".
    • The Joke takes root and grows exponentially.
  • The Channel9 Reaction.
  • Atlas code.
    • Server side Web Code:
      [WebMethod]
      public string HelloWorld(string strInput)
      {
      return "Hello " + strInput + " Server Time: " + DateTime.Now.ToString() ;
      }
    • Client Side Javascript:
      <script type="text/xml-script">
      function
      OnClickTest() {
      var txtInputBox = document.getElementById("txtInput");
      Samples.AspNet.WebServiceTest.HelloWorld(txtInputBox.value, HelloWorldCallBack);
      }
      function HelloWorldCallBack(result){
      alert("Returned Value: " + result);
      }
      </script>

Sorry for the delay, but I have not been feeling well since I got back.

AJAX in the Enterprise

Infoworld has a pretty good article about AJAX in the Enterprise.  It seems that the minimization of traffic is a big deal to folks in the Enterprise.

http://www.infoworld.com/article/05/10/17/42FEajaxcase_1.html

Posted: Oct 17 2005, 10:28 PM by Wallym | with no comments
Filed under:
Windows Vista October CTP build 5231
Its up on MSDN for Subscribers.  Downloading now................Thank goodness for my cable modem.
AJAX with ASP.NET book status

Just a quick update.  After having worked out of town in DC all most all summer, I viewed the ASPInsider Summit October 3-5 as the starting point of our AJAX with ASP.NET book.  Well, I came back from the event sick.  While I am still sick, we also have been discussing issues from the Summit regarding Atlas.  It has only been since Friday that I have been able to get writing started.  Since Saturday, I have put together thirteen pages of real material.  I'll be covering the book status in a podcast later this week.

Wally

Posted: Oct 17 2005, 04:09 PM by Wallym | with 1 comment(s)
Filed under: ,
Buttons in AJAX
Ok, so Plip continues to have this seizure over AJAX.  I thought he was going to have coronary over this on the last day at the ASPInsider Summit.  To be honest, I really don't "get" what the issue is.  This is old news, but I guess that he is upset because he was in diapers when these problems got solved.  Web Applications have had issues with the Back Button and the Reload Button for years.  If you have just completed a database operation and then hit Reload, you have most likely just performed that database operation again.  Similar issues occur with the Back Button.  There are ways around all of these issues, but developers need to handle the issues. 

Wally
Posted: Oct 16 2005, 07:53 PM by Wallym | with 2 comment(s)
Filed under:
Cross Site Scripting Attack hits MySpace. Is AJAX to blame?

http://www.betanews.com/article/CrossSite_Scripting_Worm_Hits_MySpace/1129232391

This is pretty amazing.  While not specifically an issue with AJAX, XmlHttpRequest is at the center of the problem.

First, by examining the restrictions put into place by MySpace, Samy discovered how to insert raw HTML into his user profile page. But MySpace stripped out the word "javascript" from any text, which would be needed to execute code.

With the help of Internet Explorer, Samy was able to break the word JavaScript into two lines and place script code within a Cascading Style Sheet tag.

The next step was to simply instruct the Web browser to load a MySpace URL that would automatically invite Samy as a friend, and later add him as a "hero" to the visitor's own profile page. To do this without a user's knowledge, the code utilized XMLHTTPRequest - a JavaScript object used in AJAX, or Web 2.0, applications such as Google Maps.

Posted: Oct 16 2005, 09:56 AM by Wallym | with 1 comment(s)
Filed under:
USC/ND or WVU/UL?

I don't have a dog in any of these fights, but today's college football was really exciting.  USC 34 - ND 31 was unbelievable.  On fourth down Matt Lienart thru a short pass that turned into a 63 yard play late in the game.  With 7 seconds to go and the entire USC bench distracting the ND players with calls to down the ball, Matt Lienart scored on a 1 yard quarterback draw.  USC won 34 to 31 over ND.

With UL beating up on WVU 24-7 with about 10 minutes to go in the game, I turned away.  What a comeback by WVU.  They went into overtime.  In the third overtime, WVU held UL on a 2-pt conversation attempt to win 46-44.

Awesome, what a day for college football.

Wally

Hold Developers Accountable? - Will Customers Pay for Security?

http://news.com.com/Expert+Hold+developers+liable+for+flaws/2100-1002_3-5893849.html?tag=nefd.top

I'm a big believer in free-markets and such, however, I question whether customers will really pay for security.

More Posts « Previous page - Next page »