Read, read, read. Read everything - trash, classics, good and bad, and see how they do it. Just like a carpenter who works as an apprentice and studies the master. Read! You'll absorb it. Then write. If it is good, you'll find out. If it is not, throw it out the window.
-
William Faulkner
About / Biography
Resume
Contact
Journal / Blog
Recommended Reading
Reviews
View Adam Kahtava's profile
Recent entries
Categories
.NET
AJAX
ASP.NET
ASP.NET AJAX
ASP.NET MVC
BarCamp
Book
C++
Calgary
Career News
Code Camp
Community
Contest
Creativity
CSharp
CSS
dasBlog
DOM
Ergonomics
Events
Firebug
Firefox
greasemonkey
IE
Interview
JavaScript
Links
Merb
Musings
Open Source
Opera
Ottawa
Personal
PowerShell
Programming Languages
Quality Assurance
Review
RoR
Software
Team Work
Themes and Skins
Toronto
Twitter
Unit Testing
Videos
XML
Archives
December, 2008 (4)
November, 2008 (6)
October, 2008 (10)
September, 2008 (8)
August, 2008 (2)
July, 2008 (4)
June, 2008 (7)
May, 2008 (6)
April, 2008 (8)
March, 2008 (7)
February, 2008 (3)
January, 2008 (1)
December, 2007 (1)
November, 2007 (2)
October, 2007 (1)
September, 2007 (3)
July, 2007 (1)
May, 2007 (3)
April, 2007 (4)
March, 2007 (4)
February, 2007 (5)
January, 2007 (3)
December, 2006 (1)
November, 2006 (5)
October, 2006 (6)
September, 2006 (8)
August, 2006 (2)
July, 2006 (8)
June, 2006 (9)
May, 2006 (1)
Syndicate this site
Sign In
powered by
dasBlog
Journal / Blog
Sunday, September 02, 2007
Goodbye Technorati, Hello Comments from IE - Comments from Internet Explorer 6 & 7 now work on this site. The problem: JavaScript from Technorati
Visitors using Internet Explorer (6 & 7) were unable to post comments on this site (my site runs
dasBlog
) ever since I added a JavaScript snippet from
Technorati
.
The Problem in More Details:
For visitors using IE (Internet Explorer 6 & 7)
dasBlog
's "Save Comment" button wouldn't fire, hence the web form wouldn't submit, and the comment wouldn't be posted. When
dasBlog
's Captcha feature was enabled the Captcha validation wouldn't fire, and again the form would not submit. When JavaScript was disabled in Internet Explorer,
dasBlog
/ ASP.NET would revert to server side validation, the web form would submit, and the comment would be saved. Everything worked fine in Firefox and Opera.
A wild goose chase
: I'm using a ASP.NET 1.x version of
dasBlog
converted to ASP.NET 2.0, and customized to run on a medium trust environment. I initially assumed that something had been corrupted during the ASP.NET 1.x to 2.0 conversion - I thought that some of the ASP.NET client side scripts had been corrupted, or that somehow this ASP.NET 2.0 application was referencing some older ASP.NET 1.x scripts. This assumption proved to be fruitless. I then started looking at
Jeff Atwood's
Captcha control as the source of the problem, but after disabling the Captcha my "Save Comment" button still didn't work. It had to be something else, I thought that it was a bug with
dasBlog
, but upon downloading the latest release of
dasBlog
2.0 (kudos to the
dasBlog
team!), I noticed that I could post comments to my site when using any theme other than my own. I started looking at my theme, I disabled my JavaScript links and discovered...
The Solution
: a JavaScript linked from Technorati was preventing my comments from being saved. I removed the conflicting script - Goodbye Technorati, Hello Comments from IE.
I wish I would have figured this out sooner, hopefully this article will help anyone else with a similar problem (
dasBlog
's "Save Comment" button doesn't work).
I'll be looking closer at the Technorati script and post another entry here with my findings. In the meantime
look through the conflicting script yourself at:
http://embed.technorati.com/embed/93ja2gejnr.js
Update:
The second line of Technorati's JavaScript causes ASP.NET's postback to fail - ASP.NET can only have one form tag declaration.
The rough JavaScript:
document.write('<
form
id="te_s" method="post" ...
.NET
|
ASP.NET
|
dasBlog
|
Firefox
|
IE
|
Opera
PermaLink
|
Digg It
|
Del.icio.us
|
Comments [0]
Related posts:
MVC is a Welcome Addition to ASP.NET, but.... MVC Frameworks, like Ruby on Rails are More Mature
Winforms / Webforms Can Make You Obsolete: Framework or Metaphor Lock-in is a Liability For Your Career
How To Display Your Amazon Reviews and Wish List (on your site) Using Amazon's Web Services
Microsoft and jQuery Finally: Thank-You!
Cross Language Naming Conventions: Avoiding Verbosity In The Presentation Layer
Writing a Control for the AJAX Control Toolkit: How ASP.NET AJAX Failed
Comments are closed.
Page rendered at Friday, December 05, 2008 1:00:23 PM (GMT Standard Time, UTC+00:00)
Disclaimer & Copyright
© 2008
Adam Kahtava
(
Adam.Kahtava.com
/
AdamDotCom.com
)
:: Friday, December 05, 2008 1:00:23 PM (GMT Standard Time, UTC+00:00)