BUG: Error message when you visit a Web page or interact with a Web application in Internet Explorer: “Operation aborted”

Here is a bug that i came to recently while working with:

var d = document.createElement(“div”);
document.body.appendChild(d);

This bug is only on IE and it’s really annoying one. There is a fix provided by Microsoft, you can take a look at it here.

It is a pretty comprehensive and complete article but there is one thing missing in there. The state that the problem is caused

This problem occurs because a child container HTML element contains script code that tries to modify the parent container element of the child container. The script code tries to modify the parent container element by using either the innerHTML method or the appendChild method.

The solution is

To work around this problem, write script blocks that only modify closed containers or that only modify the script’s immediate container element. To do this, you can use a placeholder to close the target container, or you can move the script block into the container that you want to modify.

That’s a pretty good solution, but what if i don’t want to do that, or can’t handle a code that would generate something like that in the body, e.g When developing in ASP.NET using Master Pages. You must develop some specific module to have a handle in the master page body to be able to call your javascript in the body text itself.

Here is a quick fix that works pretty fine and easy to implement.

In your Page where you want to call the javascript create a DIV element in the body/content ( <div id=”ie_fix”></div> )
With this done you can now modify your javascript to be like that:

var d = document.createElement(“div”);

if(is_ie) //This is a browser check have to code here.
{
var ie_fix = document.getElementById(“ie_fix”);
ie_fix.appendChild(d)
}else
document.body.appendChild(d);

This is a quick fix that should help you waste/avoid unnecessary recoding. This has been Tested on IE 7 – Running on Windows Vista.

the “dark” theme, now widget enabled…

Theme is now widget enabled.

After an hour of widgets documenting, my theme is not widget enabled…

Now it’s time to create some widgets… I have a 2 sidebar widget content. Isn’t this cool !!!

Update

there was a bug in the funtion.php file… :S when i created a new

<?php

–not to forget the conditional tags

if(!is_admin()) //If you forget this the admin panel, might start given up on you
{

<!–
Some funny statements that send out the header….
–>

}
?>

But it’s fixed now, maybe i’ll find out some other bugs latter on.

Theme change… Look out !!!

Changing my fresh pursuit theme to a Bartelme Design theme.

After a long run, i have decided to change my current theme to a more popular one. I thought about creating my own themes, but unfortunately i am left with only half completed designs in photoshop :(. Thus i will be using this theme for a while. But i will also upload my theme proposition very soon on flickr for interested people to try to work on them.

Vinivi.com – Unbiased hotel reviews by travelers

vinivi.com – a place on the web where the traveler can find real reviews by real travelers.

yes, vinivi.com – this is where i have been working for the last year.

vinivi home pageThis is the first part of the home page where you can clearly figure out, what the whole website is about… “hotel reviews” by travelers… blocks just below the navigation bar shows out the different services that the website propose to the user.

Share – Writing reviews to post out to other travelers how your stay/travel was to a particular destination and to recommend or not a place to stay.
Discover – The growing community of vinivi, will enable you to discover where other travelers have been what they liked and what they did not. You will also see travelers travel photos during their stay, either bad or good experience.

Find Out – Find out reviews of hotels around the world with a database of 30,000 hotels, guest houses and growing. Our teams works out for you to get the most information about the hotels and/or guest houses that you have been staying.

After this brief introduction, now come the fun part that i have been working on lately.

Top Travelers destination Map

This part of the home page displays the most popular destination of travelers all around the world. Where they really go… The map on the right displays markers red (needs improvement), orange (average), green (excellent) that represents hotels and guest houses in the specified region of the globe.

Google map Info showing information about the hotel

You can do so much nice things with maps nowadays… YOUPIII to Google maps… 😉 even though it was kinda some headache to get it working, but it is now online and going all fine.

You can try it out and see the different top travelers destination… see in action at vinivi.com.
Next comes the community part of the home page.

Random photos, reviews and the monthly competition

Photos by travelers – see random travelers photos that have been recently posted on vinivi, by travelers that have added a review on a hotel or guest house.

Thumbs up or thumbs down ? – What will it be… see a random average/bad and good review on the home page each time you enter vinivi.

Monthly Competition – yes you heard right Monthly competition, each time you write a review or send email to your friends to talk about vinivi, you get selected to take part in a monthly draw to get a fabulous week in a luxurious hotel in Mauritius. See the details of how to participate on vinivi competition page.

Next section are the latest reviews on vinivi.

The latest reviews posted on vinivi
Displaying the continuous and quality reviews that are reaching the our website the latest review section post out reviews coming from travelers all round the world talking about how there journey were in the hotels or guest houses that they stayed in.

To supplement the latest review section, see our team

Our teamThey read and validate your reviews everyday, taking time to ask for questions or more information whenever necessary to be able to post of the most out of your review on our website.

This ends the home page section vinivi.com

My next post will be on the type of content in vinivi.com