June 2007

You are currently browsing the articles from TechToolBlog written in the month of June 2007.

xajax - PHP Notices/Warnings

Today we were playing with xajax trying to eliminate some redundant page reloads and also keeps some divs hidden based on user input without having to manage their state.  All was working as expected on our Linux box (Fedora) but when we tried to get it running on IIS it was dying.  It looked like no response or anything was coming back from some simple AJAX calls.  So we did as every good web developer should do - bust out FireBug.  Looking at the NET results we noticed we were in fact getting a response from our request but with an additional “PHP Notice undeclared variable message” (not show in the pic). It didn’t really dawn on us that this was the culprit until we opened IE 7 and it returned with a dialog box saying it could not parse the XML because of a space, pointing out the “Notice” message was returned before the XML response.  A closer look at our PHP.ini file resulted in use turning off Notices and turning on Errors only.  This was the issue.  Goes to show you having two browsers for debugging is a good thing :)

image

Written by Tim on June 25th, 2007 with 5 comments.
Read more articles on php and web 2.0 ish.



Safari on Windows

Thanks to Scott for clueing me in on the Safari 3 for Windows Public Beta.  I must have been hiding in a hole, cause I did not see this coming at all.

First Impression

I’m not switching from FF because of the extensive plugins I use but for some fast web browsing this might make take over my IE.

image

Written by Tim on June 11th, 2007 with 1 comment.
Read more articles on unix and web 2.0 ish and windows.





Stored Procedures vs Ad Hoc SQL

Stored procedures debate from my point of view:

Pros of using Stored Procedures

Cons of using Stored Procedures

I’m not entirely sure which side of the fence I lie.  Right now I’m more comfortable with not using stored procedures because of the maintenance factor.  I really think LINQ is going to make stored procedures deprecated.

.NET specific - Here is a nice line of code to keep around when working with stored procedures that I end up using when getting the the dreaded “Parameters do not match” error.  You can put this on your datasource Inserting Event.

For x As Integer = 0 To e.Command.Parameters.Count - 1

Trace.Write(e.Command.Parameters(x).ParameterName)

Trace.Write(e.Command.Parameters(x).Value)

Next

Written by Tim on June 1st, 2007 with 1 comment.
Read more articles on asp.net and database.