Wednesday, January 4th, 2006
A quick piece of CSS to center a fieldset:
<div style="width: 200px; text-align: center; margin-left: auto; margin-right: auto;"> <div style="text-align: left;">
<fieldset>
...
Here is an example:
Posted in Programming | No Comments »
Tuesday, January 3rd, 2006
One of the recent problem that I ran across at work is an easy way to do highlighting for form fields. Of course the best way would be CSS 2 (as shown here) but alas, IE does not support that.
The alternative is JavaScript onFocus and onBlur method. However, one thing ...
Posted in Programming | No Comments »
Tuesday, January 3rd, 2006
For quite some time I have been trying to track down a strange Javascript error. In one of the forms in our application, we have a dynamically generated set of DOM form fields generated on the fly via Javascript. Something like "document.myForm.appendField(field);". The page in question worked just fine in ...
Posted in Programming | No Comments »
Friday, June 3rd, 2005
One of the questions that recently came up is how to remove vowels from Hebrew characters in Unicode (or any other similar language). A quick look at Hebrew Unicode chart shows that the vowels are all located between 0x0591 (1425) and 0x05C7 (1479). With this and Javascript's charCodeAt function, it ...
Posted in Politics, Programming | 2 Comments »
Thursday, May 5th, 2005
As a followup to yesterday's post, here is how I am wrapping text via XSLT as opposed to CSS and JavaScript. The reason why I am prefering to do this server side via XSLT as opposed to JavaScript client-side is because if I will be doing client-side JavaScripts, I would ...
Posted in Programming | No Comments »
Thursday, May 5th, 2005
An interesting question that came up today during work was how to wrap text in a table cell that does not contain any line breaks or spaces. For example:
ThisIsCell1
ThisIsCell2
We want the text inside the cells to wrap to the next line instead of extending the table size. There are three ...
Posted in Programming | 1 Comment »
Thursday, January 13th, 2005
One of our customers had recently requested a feature to make all links look the same, visited or unvisited. While debates and complaints have been raised about whether they should look the same, in our case this was necessary. A web application such as ours usually dynamically generated all the ...
Posted in Programming | Comments Off
Tuesday, January 11th, 2005
Today I came across a VERY strange IE bug - a certain page would not work in IE6 under Windows XP SP2, while it worked fine in Opera, Mozilla and Firefox. The message shown would be as follows:
Internet Explorer cannot open the Internet site [url] Operation aborted
After more digging, I ...
Posted in Programming | 4 Comments »
Tuesday, January 4th, 2005
Recently I ran across a rather strange error with different browser. Popup windows could be maximized in Opera and Mozilla, but not in IE. The code I was using was as follows (click here to try):
window.open('', '', 'width=200,height=200');
After some digging, I ran across the following snippet in MSDN:
When the sFeatures ...
Posted in Programming | 3 Comments »
Sunday, October 24th, 2004
One of the more fun things in DHTML is dynamic manipulation of page content. An interesting question that recently came up at work was hiding and displaying a single table row. The solution I came up with is pretty simply - set the CSS STYLE tag of the table row ...
Posted in Programming | 2 Comments »