Looking for white elephants

Friday, 9 November 2007 14:39 by James

I wanted to add the Live Messenger plugin to my BlogEngine.NET blog and could get it working when running either in Cassini or IIS 6/7. However when I posted the changed files to my hosting server, it wasn't working. I had previously built a custom template for BE, and had problems with custom Javascript being linked correctly. I ended up adding the JS links to the bottom of the master page with the following code:

<script type="text/javascript" src="<%=Request.ApplicationPath %>/themes/<%=BlogSettings.Instance.Theme%>/jquery.js"></script>

That worked fine and I was stumped why my new JS code wasn't working.

It was only until I did the most simplest of things, "View Source" did I see that the source of the javascript file was now

"//themes/duringlunch/jquery.js"

I don't know why this happened. I hadn't changed the source of BE. Perhaps it was a setting change on the hosting server, I don't know.

What I ended up doing was moving the javascript files to the "js" main folder of BE and now all is good.

BTW, if you want to IM me via Messenger, just click on the "Instant Message James" link in the sidebar, and you're good to go.

James

Tags:   ,
Categories:  
Actions:   E-mail | del.icio.us | Permalink | Comments (5) | Comment RSSRSS comment feed

Comments

December 17. 2008 12:38

Nice blog. Very informative.

Busby SEO Test

January 8. 2009 11:28

nice and great post

Busby SEO Test Pinay

March 11. 2009 17:49

A white elephant is a valuable possession which its owner cannot dispose of and whose cost that exceeds its usefulness. You are looking for it?

100 ice

March 17. 2009 08:57

Very interesting post, and just shows me how details are important in IIS6 environment.

DVD Duplication Company

March 21. 2009 10:35

james you may consider to use ~/ shortcut it creates code that is better resilant.

Mike Roth

James Johnson

My views and opinions on running a .NET User Group, web development, evangelizing, mentoring, utilizing the latest technologies, living as a gringo in a Latin family, and, of course, life in general.

Join BizSpark

BizSpark provides qualified Startups with FREE* software and support getting their idea up and running.
There is no charge for signing up. However a minimal fee of $100 is required when you leave the program.

Recent Comments