Quantcast
Channel: User Walter Rumsby - Stack Overflow
Browsing all 39 articles
Browse latest View live

Comment by Walter Rumsby on getting boolean properties from objects in jsp el

I think it depends on the version of JSP you're running against. Older versions may need getIsXxxx() while newer versions support isXxxx().

View Article



Comment by Walter Rumsby on Remove unwanted jQuery functions

If you come up with a sensible caching strategy then you could serve the whole jQuery file locally, but cache it so that you won't have to worry about the cost of the download/additional HTTP request....

View Article

Comment by Walter Rumsby on YUI Autocomplete: search after pasting?

You could also use YAHOO.lang.later instead of window.setTimeout.

View Article

Comment by Walter Rumsby on jRuby called in Ant can't find gems, what am I...

Initial hunch is it's something to do with specifying more than one -r param.

View Article

Comment by Walter Rumsby on jRuby called in Ant can't find gems, what am I...

I also decided to use a <script> block instead of <java> calling jRuby, but the core problem was with an incorrectly packaged .jar.

View Article


Comment by Walter Rumsby on Highlight label if checkbox is checked

The accepted solution uses the adjacent sibling selector which is actually a feature of CSS 2.1.

View Article

Comment by Walter Rumsby on What is DOCTYPE?

These days I favour the HTML5 DOCTYPE: <!DOCTYPE html> it works in all modern browsers, including IE6.

View Article

Comment by Walter Rumsby on Java ImageIO: Can I convert a PNG-24 file to PNG-8?

ubuntuforums.org/showthread.php?t=1060128 discusses using Java ImageIO to convert a PNG to a GIF.

View Article


Comment by Walter Rumsby on Getting file not found error running Sass and...

This part of your path looks like it's problematic: C:\Users\aliu\workspace\ui/src/main/webapp/apps/resources/sa‌​ss Note the mix of \ and /.

View Article


Comment by Walter Rumsby on Custom event library for JavaScript. Are there...

YUI 3's Event Target is really nice.

View Article

Comment by Walter Rumsby on Using jQuery validation, is there a way I can...

BTW, you can remove multiple pieces of data with a single call to removeData - either pass an array of strings or a space-delimited string, e.g. $('form').removeData(['validator',...

View Article

Comment by Walter Rumsby on IE9 fails to parse CSS file having more than ~...

Here's a JS Fiddle demonstrating the above - jsfiddle.net/wrumsby/S8kVC - n.b. you need to run this in IE9, not IE10 emulating IE9 to see the problem.

View Article

Comment by Walter Rumsby on Polymer: Registering Elements in External Scripts

AFAICT if I do this then index.html will not document attributes, events, etc. Is there a way to use an external script? Thinking about this more, this is just how core-component-page works, it would...

View Article


Answer by Walter Rumsby for this === window in firebug

So if this in firebug means the firebug object, how can I reference the normal this?In your sample code this will be the window object because that is the Global Object when running in a browser. In...

View Article

Answer by Walter Rumsby for Don't submit form unless JavaScript is enabled

Hiding the submit button won't work because the browser will try to submit the form if you press enter in an input type="text".What you might want to try is adding the form element via JavaScript (i.e....

View Article


Answer by Walter Rumsby for Is it possible to do live events in YUI, similar...

YUI 2's Event Utility also supports a delegate method.

View Article

When should I change the tlib-version of my tag library?

I'm after guidelines on when I should change the tlib-version in the .tld of a tag library that I author.Specifically I'm wondering if I should bump the version number if I add new tags to the library...

View Article


Answer by Walter Rumsby for html doctype adds whitespace?

The first DOCTYPE will render your page in almost standards mode:"Almost standards" mode rendering matches "standards" mode in all details except for one. The layout of images inside table cells is...

View Article

Answer by Walter Rumsby for Compact Java syntax for conditional arguments?

If enemy_composition can only be nature.MATTER or nature.ANTIMATTER then you could use a ternery operator:DeathRay mynewWpn = new DeathRay(enemy_composition == nature.MATTER ? particle.anti-proton :...

View Article

Answer by Walter Rumsby for How to get posts' content as HTML from a...

Take a look at Yahoo! Pipes.

View Article
Browsing all 39 articles
Browse latest View live




Latest Images