Feeds:
Posts
Comments

So you’ve taken the time to carefully craft your Domino web site with standards compliant code, using HTML for the content and CSS for the layout.

No table or frames layout for you! You’ve properly coded your HTML so that the content is separated from the layout,  and carefully crafted your CSS so that the layout is flawless, checking frequently with Firefox. You are using Firefox aren’t you?

You eagerly open your OTHER company approved browser so that you can check your layout, and discover that IE is still sucking eggs! WHAT, I thought I could use CSS? Why is IE still not working properly?

Glad you asked. You probably don’t have a proper DTD. Don’t be offended. It’s not just you. Many people move from Lotus Notes to web development thinking that Domino will handle all the web “stuff” for you. Not so.

What happens is that the DTD that Domino renders is not correct. In r8.5 it has gotten much better, but it still only renders half the information.

This is what you get with 8.5.1.

image

So what’s the problem? Isn’t this a proper DTD? Well, not really. Although the DTD part is correct, there is a piece missing. There should also be a URI that tells the browser where to go to verify the DTD.

Like this…

"http://www.w3.org/TR/html4/loose.dtd">

But Domino doesn’t supply that piece. Without a proper DTD IE will render the page in “Quirks” mode, so your css isn’t nearly as effective as you’d like.

To get that piece you need to do a little bit of work. There is a field that has been around since r7 that will allow you to control the output of code before the “<html>” tag, which is where the DTD is!

1. At the top of your form create a hidden, computed for display field called “$$HTMLFrontMatter”. I do this in a commonFields subform  that gets embedded in all the web forms.

image

2. For the value of the field enter

{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">}

OR,

{<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">}

NOTE: IE will still kick your page into Quirks mode if there is ANYTHING in front of the DTD, so make sure there is NOTHING above it.

3. Save the form, open it with a browser and view the source. You should now have a proper DTD.

image

Of course this doesn’t solve all of IE’s issues. There is still the box model and several others, but at least you are now rendering in the proper mode, and are no longer quirky!

Have Fun!

…for this

I think that we got carried away in the moment

Really? Seriously?

Obama has vowed to keep his children out of the sway, but here is gettting “carried away in the moment”.

If he can’t protect his kids from the vultures, how can we expect him to protect us from the preditors?

Can you just imagine being “carried away in the moment” in conversations with world leaders or terrorists?

I for one want someone that will sit down and seriously, soberly consider all the options, not someone who will be “carried away in the moment”.

Today Obama says that his plan for troop withdrawal will depend on the opinion of the commanders on the ground. He will get this opinion after he has the chance to visit them and talk to them.

From Politico…

“When I go to Iraq and I have a chance to talk to some of the commanders on the ground, I’m sure I’ll have more information and will continue to refine my policies,” he said, according to CBS News. “I have been consistent, throughout this process, that I believe the war in Iraq was a mistake.”

When he goes to Iraq? When might that be? After he is President? He would sit down with mad men with no pre-conditions, but now it seems as though there are pre-conditions on his pull out plan.

I especially like the line where he says “and will continue to refine my policies”, which means ‘I’ll give you my message of the day depending on how the political winds are blowing’

Funny, that’s not what he says on his web site. Here is a quote from his web site (emphasis mine). He says he will Immediately begin to remove our troops. This doesn’t sound like he’s waiting for anyone’s input. His time table also seems firm, all of our combat brigades out of Iraq within 16 months.

Bringing Our Troops Home

Obama will immediately begin to remove our troops from Iraq. He will remove one to two combat brigades each month, and have all of our combat brigades out of Iraq within 16 months. Obama will make it clear that we will not build any permanent bases in Iraq. He will keep some troops in Iraq to protect our embassy and diplomats; if al Qaeda attempts to build a base within Iraq, he will keep troops in Iraq or elsewhere in the region to carry out targeted strikes on al Qaeda.

Tomorrow we’ll probably hear about the “inartful” wording that he used.

The candidate of change, changing his message yet again.

There has been much speculation on Obama’s qualifications to occupy the White House.

Some people say that he is youthful and “Kennedy-esque”. These are the people that are tired of the current president and want the change that Obama has been espousing.

On the other side, there are people that believe that Obama simply lacks the experience needed to be president. They would say that he hasn’t done anything. He has no foreign policy experience, and his experience here at home is basically that he was a local figure helping out his fellow citizens in Chicago.

Apparently, Obama agrees with the second group of people. He doesn’t even believe that he has what it takes to be the agent of change.

Obama Will Not Run in 2008

Calling it as “a silly question,” Sen.-elect Barack Obama (D-IL) pledged “he would resist any overtures to run for president or vice president before the end of his six-year term as a U.S. senator,” the Chicago Sun-Times reports.
Said Obama: “I was elected yesterday. I have never set foot in the U.S. Senate. I’ve never worked in Washington. And the notion that somehow I’m immediately going to start running for higher office just doesn’t make sense.” November 4, 2004

Just 3 1/2 short years ago, he was saying he “never set foot in the U.S. Senate”, and he “never worked in Washington”. And now, after 3 years in the Senate he is supposed to be the man capable of putting an end to the partisan bickering in Washington and bring what he calls needed “change”.

I’ve been doing some web design work and the client uses IE6. There is a bug where at times certain chunks of text don’t appear on the screen, although they are actually present in the html markup.

I had seen this before, but couldn’t remember the fix, so I googled and came across some interesting reading. See here and here.

The fix that I put into place is listed here, under the “But what about IE?” section.

I inserted the following code in my css file and the problem was fixed.

/* Hides from IE-mac \*/
* html .container {height: 1%;}
/* End hide from IE-mac */

I also added the following code for the “Guillotine-Bug”.

.container:after {
content: “.”;
display: block;
height: 0;
clear: both;
visibility: hidden;
}

I was putting together some ajax functionality to work with a Domino site, and kept running into a global error in IE6. Firefox worked fine, but IE 6 kept complaining about a global error. See image below.

IE6 Runtime Error

I had set up a tabbed interface to retrieve the appropriate views via Ajax based on parameters set on the calling document. When the page loaded, and the document tried to get the views from the back-end the error occurred.

I googled around a bit, and came up with this post, which fixed the problem.

The issue is that the site has a “base” element in the head section of the form (<base href=”someURL”/>), and IE needs to have it closed like a normal tag as in <base href=”someURL”></base>.

And so it begins…

New “Life”

Well, it’s becoming increasingly apparent that the Democrats couldn’t keep the promises that they made during the last mid term campaigns. There have been several news stories of how the promises just haven’t been met, but now comes the Democratic Senate whip, Dick Durbin stating that the goal of immediate withdrawal is “unrealistic”. Read the article here.


Well, well. Isn’t this the point that so many people were making during the campaigns? But, the Democrats just kept saying “Put me in office, and we’ll end this war immediately”. Even Durbin was spouting off that we needed an immediate withdrawl. Apparently, he now sees how wrong he and the others were.

Part of the article states

Durbin conceded to the Post that Democrats, with a slim majority in the Senate, won’t be able to placate calls from liberal Democrats who want a specific end date to the war and a funding cut off.

Major troop withdrawal must be done gradually, Durbin said.

“We also understand that just leaving cold turkey, with everything gone, could have the whole region descend into chaos,” Durbin told the Post.

Isn’t this just the opposite of what was promised. The first line above says it all

Durbin conceded to the Post that Democrats, with a slim majority in the Senate, won’t be able to placate calls from liberal Democrats who want a specific end date to the war and a funding cut off.”.

It seems as though the campaign promises were just a ploy to “placate calls from liberal Democrats…”.

One of the amazing things to me is that this article appears at “earthtimes.org”. I did a quick look at ABC and MSNBC and didn’t see any mention of this article there.

When are we going to learn?

It’s amazing to me how it takes someone from another country to say this so well.

Have a look…

Where is the American media on this? They are still reporting it as Scooter outed Plame. Amazing, even after all the nonsense and the trial, the media still doesn’t report the facts.

Let’s review…

Scooter was convicted of lying to a Grand Jury, NOT for outing Plame.

It’s been revealed that Dick Armetage is the one that actually outed Plame to Woodward, and this he did when he thought she wasn’t “covert”.

It’s a witch hunt folks, plain and simple.

Hhhmm. Wasn’t there someone else that got caught lying? Yeh, let’s see he was the last American President to be impeached. Oh, sorry I forgot. He’s the leader of the party. My bad…

Older Posts »

Follow

Get every new post delivered to your Inbox.