javascript using jQuery.js and prototype.js doesnt work 2get

Hi........ br M hving javascript quot;scripts.jsquot; which uses jQuery.js in rails br application. bt when it is used along with prototype.js, one of the br javascripts which hs been included first in my application.rhtml br fails... ...>>Read More

[Related Article]
http://xslforum.com/39938-javascript-using-jquery-js-prototype-js-doesnt-work-2get.html
[Posted On]
15:53:26 02-26-2009

Building jQuery functions beyond the original library

The separation of jQuery from alternative JavaScript libraries such as mootools, yui, and prototype.js has become even more pronounced as of late. And now even Microsoft has chosen to use jQuery as the only JavaScript library includedin its Visual Studio suite. The popularity of jQuery owes a lot to its decision to include a plug-in architecture for third-party developers. This article describes this plug-in architecture and explains how jQuery can help your Web application behave just like a d>>Read More

[Related Article]
http://www.dzone.com/links/rss/building_jquery_functions_beyond_the_original_lib.html
[Posted On]
20:15:39 02-25-2009

javascript - ソースを見せてかつ動かすための3つのtips

livedoor Blogを私が愛用しつづけている理由のひとつが、JavaScriptを受け付けること。おかげでかなりのentriesが溜まりましたが、それだけにで実行用のソースと表示用のソースを用意するのが人一倍おっくうに感じられます。そんなわけで、どうやれば怠慢をもっと発揮できるかをまとめてみました。 0. DOMにIDをふらずにデモるこんな感じのデモがあったとしましょう。「404 Blog Not Found:javascript - Array#sortがオレquicksortより遅い!?」にあるものを書き直したものです。 # of Items: よくあるのは、inputタグやpreタグにIDをふって、document.getElementById('foobar')でアクセスするというもの。Prototype.jsやjQueryを使っていれば$('foobar')と短くはなりますが、HTMLを書く方の手間は減りません。しかしこのように書くことで、IDは不要になります。 # of Items: >>Read More

[Related Article]
http://blog.livedoor.jp/dankogai/archives/51181390.html
[Posted On]
04:30:43 02-24-2009

On Javascript frameworks « The lost outpost

What's available in out of the box with just jquery.js, prototype.js, dojo.js. With each, the ability to do progressive ajax page enhancement to do DOM queries via CSS selectors, DOM and CSSOM manipulation via chaining api calls, ...>>Read More

[Related Article]
http://andypiper.co.uk/2009/02/23/on-javascript-frameworks/
[Posted On]
00:03:23 02-24-2009

Compacting contents using Glider script

Thanks to Iva for requesting for this tutorial! Finally I have something to add to my long-dormant list of resources. Iva asked me over Twitter whether could I write a tutorial on how I’ve incorporated the famous Coda glider effect on my blog header. The basic function of the glider script is to replicate the effects of the Coda glider. Gliders, like accordions, are very useful in compressing/compacting contents in an area of a fixed size, and animate the process when a visitor switches betw>>Read More

[Related Article]
http://www.teddy-o-ted.com/tutorials/compacting-contents-using-glider-script/
[Posted On]
08:25:17 02-21-2009

Head Cleaner (仮)

WordPress にプラグインをガンガンと突っ込んでいくと 部に、JavaScript やら CSS やらが、ドンドン追加されて、カオスなことになってしまいます。 そんな状態の自サイトを「 YSlow for Firebug 」で診断してみると、とても低いスコアになったりしてガックリ来るわけです。 プラグインを外したりしたくなかったりするので、チマチマと修正したりして使っていたんですが、プラグインのバージョンアップのたびに修正するのも面倒です。 そんな折、「 WordPress Head Cleaner 」というプラグインを見かけました。 これは、ひょっとして 部を自動でキレイにしてくれるのか?と期待してダウンロードしてみたんですが、ソースを見てガッカリ。 ついカッとなって、こんなプラグインを作ってしまいました。 ダウンロード Head Cleaner @WordPress Plugins または Head Cleaner (最適化&高速化) @JSeries [2/24 6:00 追記] コメント蘭での、ゆりこさんからの指摘により、 Safar>>Read More

[Related Article]
http://dogmap.jp/2009/02/20/head-cleaner/
[Posted On]
23:40:16 02-20-2009

Sprockets: Build time JavaScript dependancy management

Sprockets is a build time Ruby tool that reads in your JavaScript files, preprocesses and concatenates: It takes any number of source files and preprocesses them line-by-line in order to build a single concatenation. Specially formatted lines act as directives to the Sprockets preprocessor, telling it to require the contents of another file or library first or to provide a set of asset files (such as images or stylesheets) to the document root. Sprockets attempts to fulfill required depende>>Read More

[Related Article]
http://ajaxian.com/archives/sprockets-build-time-javascript-dependancy-management
[Posted On]
06:12:17 02-20-2009

Box2D based Javascript 2D Physics Engine called Box2DJS

Box2D is responsible for inspiring many 2d physics engines including Motor2, Box2DFlashAS3 and others.  Box2D the original toolkit is a solid c++ physics engine that has many great examples and features including real collision. Now it has inspired a pure Javascript version of Box2D called Box2Djs to (using prototype dependency) to implement many of the same demos using the same functionality.  So it appears Box2D if you want to find a baseline standard physics kit for 2D, it now has versio>>Read More

[Related Article]
http://drawlogic.com/2009/02/18/box2d-based-javascript-2d-physics-engine-called-box2djs/
[Posted On]
05:31:12 02-19-2009

スクリーン座標・クライアント座標の変換いろいろ

GUI なコーディングしてると必ず出てくる「スクリーン座標とクライアント座標の変換」。 環境によって名前がバラバラで思い出すのに時間がかかってしまうのでメモしておく。 環境 変換方法 ActionScript3 DisplayObject.globalToLocal(pt:Point), DisplayObject.localToGlobal(pt:Point) JavaScript event.screenX, event.screenY, event.clientX, event.clientY JavaScript (prototype.js) Position.positionedOffset() Win32 ClientToScreen(), ScreenToClient(), GetWindowRect() WinForms Control.PointToClient(), Control.PointToScreen() WPF/XAML MouseEventArgs.GetPosition(IIn>>Read More

[Related Article]
http://d.hatena.ne.jp/nitoyon/20090218/screen_client_transform
[Posted On]
00:00:00 02-18-2009

Validate a Forms With Javascript

A small open source javascript library for making client-side validation quick, easy, and powerful. It comprises of two main parts. Two versions are provided - a prototype.js version (ideal for use with Rails) and a standalone version ...>>Read More

[Related Article]
http://ignati.com/form-validator-with-javascript/
[Posted On]
01:53:58 02-16-2009