Real Estate Webmaster Help Menu
Webmaster Guidance · Planning · Multiple Site Setup · Adding Widgets · Library of Samples

Adding Javascript Widgets

(the technical stuff!)

MBB WidgetsThe My Buying Buddy service is displayed in your website using Javascript and AJAX technologies.

There's NO need for 3rd level domains, redirects or other complex technical stuff..!

You will need to place Javascript on each page of your website where any aspect of the My Buying Buddy service is to be displayed.

Library Scripts

The first scripts to be loaded are general library scripts. These need to be loaded first and we suggest they are placed in the page HEAD section of your website so that they are loaded on every page.

These Library Scripts don't have to go in the HEAD section, but we recommend that you do place them there if you can.

If you are unable to place JavaScript in the HEAD section of your website, then this is OK, the library scripts can be placed anywhere on the page (the higher the better) - they must be sequenced BEFORE any Widget scripts.

Avoiding Conflicts with Existing JQUERY Scripts

If your website is using JQUERY then the MBB <SCRIPT> file must load AFTER any existing JQuery <SCRIPT> file includes in your page <HEAD> section.

JQuery is commonly used on many sites and is associated with special effects on sites such as slideshows, pop ups and so on.

If you use WORDPRESS, or MOOTOOLS and similar libraries, then these will use JQUERY!

For example - if your site has a line of code in the <HEAD> section like this:

<script type='text/javascript' src='http://mywebsite.com/js/jquery/jquery.js?ver=1.3.2'></script> 

Then you need to sequence the MBB <SCRIPT> tag after it, like this:

<script type='text/javascript' src='http://mywebsite.com/js/jquery/jquery.js?ver=1.3.2'></script>
.....
<script src="http://www.leadsandcontacts.com/mbbv3/index/"  type="text/javascript"></script>

Widget Scripts

An additional piece of Javascript is then added to your web pages where ever you want to display a specific Widget.

CSS

Every widget has its own CSS files that controls how it looks in your website. Part of the widget configuration and set up is to create these definitions to make the widget seamlessly blend with your site.

Placement

Although many widgets do not require this, we suggest that you may want to create containing DIVs for the widgets in your site. If the widget has a specific height and widget, then make sure this is accommodated and defined in the containing DIV.

 

Real Estate Webmaster Help Menu
Webmaster Guidance · Planning · Multiple Site Setup · Adding Widgets · Library of Samples