adobe.com

Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...

makandra dev
code.google.com

Javascript that implements client-side hyphenation of HTML-Documents.

getfirebug.com

You know Firebug as a Firefox extension but there is also a "Lite" version which runs purely off JavaScript.

cssdiscussion.com

If you want your application to display properly on iPad, iPhone or Android there are two things to do:

When you need to see the content of a page (i.e. not all the HTML but the relevant text body...

Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "&lt;élan&gt;"

avdi.org

When rendering a partial with the :collection option, you are automatically provided with a counter variable inside the partial template...

web.archive.org

This step tests whether a given select option comes preselected in the HTML. There is another step to test that...

Regular spaces and non-breaking spaces are hard to distinguish for a human. Instead of using the &nbsp; HTML entity...

If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...

Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:

If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...

This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...

wmd-editor.com

WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...

makandra dev

There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...

To return non-HTML responses (like XLS spreadsheets), we usually use the respond_to do |format| format.xls do # send spreadsheet...

One option is to use partials. Or you can set the @template field to the name of another action:

Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...

regular-expressions.info

You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...

github.com

jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end

tinyMCE.activeEditor.getContent()

Most of these will not work in newer projects because these use the Capybara/Rack::Test combo in lieu of Webrat...

With defaults, RCov doesn't work the way you how you would like it to. To create a nice test...