Toronto Web Design - 3magine Inc.

toll free 1 (866) 365 2407

Levitra online Vicodin Online Propecia online

Labs

Currently Viewing: What's New

Mootools wrapInner

Viagra online

Adderall online
Cialis online
Viagra online

Today I worked on a project which was using jQuery and have encountered a nifty little function called wrapInnner. What it does is wraps the html contents of the element calling it with the element that is being passed to the function. Here’s a very simple jQuery example:

<div id="user">My name is Pedro</div>
$('user').wrapInner($("<span class='red'></span>"));

will produce:

<div id="user"><span class="red">My name is Pedro</span></div>

I’ve tried doing the same in mootools using Element.wraps but it doesn’t accept html, it only accepts the id of an element or an element itself. There was no other Element method that could accomplish this task so I decided to write one.  And here goes the implementation of wrapInner for Mootools:

Element.implement({
     wrapInner:function(e){
          this.clone(false,true).adopt(
               $(e).set('html',this.get('html'))
          ).replaces(this);
     }
});

and the same example using mootools wrapInner:

<div id="user">My name is Pedro</div>
$('t').wrapInner(new Element('span',{'class':'red'}));

will produce:

<div id="user"><span class="red">My name  is Pedro</span></div>

The above implementation is very simple, it does not accept function as a parameter but it does accept an id or element.

BattleBlasters for the iPhone

Memorial day
Memorial day 2010

Instead of writing an in-depth review, let me just say that along with Zenonia and Inotia this is my new favorite iPhone game. Super addictive, and super fun. Here’s a video preview.


Get it on iTunes, http://itunes.apple.com/us/app/battle-blasters/id344610797?mt=8

Welcoming a new programmer

Thomas, a PHP programmer has joined our development team at 3magine Inc. We’d like to extend a warm welcome to Thomas. We’re sure our clients will greatly appreciate another fresh talent joining our team.

Monday, November 9th, 2009 What's New No Comments

Website design. Great resource for choosing the right company.

We have been introduced to a rather interesting website a few weeks ago. Haystack (http://haystack.com) developed by the guys from 37signals (http://37signals.com) is a directory of website designers and website design firms, showcasing their best work as well as the budgets they work within. To a potential client, this can be a great tool in choosing their next website design company, based on both their skill as well as their prices. Check us out on Haystack, at http://haystack.com/company/2309-3magine-inc

Tags: ,

Monday, November 9th, 2009 Websites, What's New 2 Comments

New office around the corner.

We are very excited about moving to a bigger, better, and brighter office mid November. The space is everything we’ve been looking for and more. We’ll have new pictures up soon.

Monday, October 26th, 2009 What's New No Comments

XML Sitemap Generator

We’ve been receiving quite a bit of traffic to our old sitemap generator, which was created a few years back and is a bit outdated. These days, a little Google search will reveal hundreds of different sitemap generators, of which we’d like to recommend one, XML-Sitemaps.com. This is an automated and very easy to use online sitemap generator allowing for up to 500 indexed pages using their FREE generator or if you’d like to have a self hosted automated generator without any limitations and with extra features you can purcahse it for only $19.99. Give it a try, we’re sure you’ll be very pleased.

Tags: ,

Thursday, September 17th, 2009 What's New 20 Comments

FashionHungry.net private beta signups open.

We’ve just opened up private beta signups to FashionHungry.net, a new and exciting fashion based social network allowing users to share and discover the hottest men’s and women’s fashions, trends and brands. Reserve your spot at http://www.fashionhungry.net/ today, they’re going FAST.

Tags: , , ,

Friday, January 2nd, 2009 What's New No Comments

Happy New Year!

Wishing everyone a Happy and Prosperous New Year.

Tags:

Friday, January 2nd, 2009 What's New No Comments

Looking for an experienced CodeIgniter or Kohana contract programmer.

We are currently seeking to hire an experienced CodeIgniter or Kohana programmer on a contract basis. Please submit your resume and links to your work along with your hourly rate to krystian@3magine.com.

Tags: , ,

Sunday, December 21st, 2008 What's New 1 Comment

New website, new ideas.

It has been about 3 years since we’ve updated our website. This was mainly due to the fact that 3magine was always a side venture for us, while having full time jobs. At the beginning of October we’ve decided that it was time to revive the company, and take it full time. We have many fresh ideas that we would like to bring forth in the next little while, so check back often for updates.

The new design is fresh and simple. We hope you like it. Don’t forget to check out our work.

Tags: ,

Friday, November 7th, 2008 What's New No Comments