Javascript Setting Options
Hay
Posted: Wednesday, August 02, 2006 1:34:39 PM
Rank: Devotee

Joined: 8/2/2006
Posts: 47
Hi Guys,

Any chance for version 3 we can have a Javascript folder simular to Stylesheets.

It would make the whole thing along more manageable... I like having not to use FTP when working with Umbraco.

Additionally code highlighting would go down well...

Thanks for your time.

Mike
neehouse
Posted: Friday, August 11, 2006 5:11:43 AM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,069
Location: Charleston, West Virginia, United States
I agree. At that, a basic file manager/text editor would be handy...

Niels: you taking notes? ;oP

• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
daniel
Posted: Friday, August 11, 2006 5:18:43 AM

Rank: Aficionado

Joined: 7/19/2006
Posts: 188
Location: Norway
real developers don't need fancy colors.. :-p

But a folder for javascript, like css/xslt would be handy :-)

Right, Niels?
jesper
Posted: Friday, August 11, 2006 1:20:55 PM

Rank: Administration

Joined: 7/25/2006
Posts: 413
Location: vipperoed, denmark
I've experimenting around this:
I've created a documenttype called DesignFile and for each js/css file I create a specific template. Finally I've created 1 node called the same 'designfile'.

This allowes me to reference the different files like this:

<script type="text/javascript" src="/designfile.aspx?altTemplate=prototype.js"/>
<script type="text/javascript" src="/designfile.aspx?altTemplate=myferrari.js"/>

I haven't decided if it really is that great yet.

Jesper





webbureau jesper.com doing webdesign / development / umbraco implementations / 2007&2008 MVP
neehouse
Posted: Friday, August 11, 2006 3:54:45 PM

Rank: Umbracoholic

Joined: 7/20/2006
Posts: 1,069
Location: Charleston, West Virginia, United States
Jesper: Be careful doing this. Unless you are using the content-type tool, this could cause problems in different browsers. If you do not change it, IIS sends the default for ASPX pages, which is "text/html". I know CSS ("text/css") fails in this case, but javascript may as well. It should have a content-type of "application/x-javascript".

This <a href="http://bclary.com/log/2004/09/26/boot-camp-content-type">webpage</a> has a lot of information on why this is important.

It may not affect your specific page now, but you never know when a browser update may blow your pages up.


• 2007/2008 MVP • 2008/2009 MVP • Core Developer • Certified Professional Level I & II •
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.