Ajax request

Simple reusable asynchronous multibrowser ajax function.

Call a page by javascript and pass the html result to a function when it arrives (. The url to load by HTTP GET method, and the callback function name are passed as parameters. All the litteral content of the result page is passed as parameter.

Note: some security features, like in Firefox, can block AJAX request to other domains than the domain of the calling webpage (where the script is executed from).

function ajaxRequest(url, callbackFunction)
var xmlhttp=false;
/*@cc_on @*/
/*@if (@_jscript_version >= 5)
// JScript gives us Conditional compilation, we can cope with old IE versions.
// and security blocked creation of the objects.
try {
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
xmlhttp = false;
@end @*/
if (!xmlhttp && typeof XMLHttpRequest!='undefined')
xmlhttp = new XMLHttpRequest();
xmlhttp.open("GET", url,true);
if(callbackFunction != null)
if (xmlhttp.readyState == 4)


function sampleCallBackFunction(httpResponseText)
// sample calls
ajaxRequest(document.location,sampleCallBackFunction);//show current page source


Anonymous said...

Good day, sun shines!
There have were times of troubles when I didn't know about opportunities of getting high yields on investments. I was a dump and downright pessimistic person.
I have never thought that there weren't any need in large initial investment.
Now, I feel good, I started take up real money.
It's all about how to choose a correct companion who uses your funds in a right way - that is incorporate it in real business, parts and divides the profit with me.

You may ask, if there are such firms? I'm obliged to answer the truth, YES, there are. Please get to know about one of them:
http://theinvestblog.com [url=http://theinvestblog.com]Online Investment Blog[/url]

Anonymous said...

5. ''. The race is becoming even more challenging with the passing of each day.
The only thing that cannot be "fixed" later is your blog and post titles.
It's so important because once customers begin seeking your product or service you will want to have favorable words making your search results optimized. This is the best part to ensure complete uniqueness to each of the websites. Pages and articles are very different, as far as Joomla is concerned. When SEO services are working for you, you should always be ready to capitalise on innovations and fresh marketing opportunities. Moreover, some companies are not able to get the desired results and their techniques might even have bad effects on the business's website.
Numerous SEO services over competitive price for outsourcing your site online, but, would it be best to
hire the locals if the nature of your business limits to your local as well.
Arrange the H1, H2 and H3 tags serially with proper hierarchy.
For instance, how many TV viewers then came to your car lot and
purchased a vehicle. Let us assume that at this point you
have 6 keywords. Such services also include some research that will need to be done so they can apply
this research on major keyword. Once you find the right and affordable SEO Company,
it is essential to talk about your business objectives,
target customers and future goals with the professionals to help them develop their strategies accordingly.
Originally posted at: digitalmoz. The World Wide Web
is an incredible source of customers and potential revenue for all types of businesses
and companies in all niches. SEO is becoming the most rewarding career nowadays.
A good web solutions company will always provide
you realistic time frame for the results to show up. If customers like what
they see, they just might go on reading.
Also visit my web page :: Products Of seo - What's Needed

Anonymous said...

Without the internet, this is not possible to play these novoline games online and even they can't live online that they perform now with public for additional characteristics and completely attractive in a delusion earth to participate in a game. Naturally the ideal situation is to be able to lose weight really fast with a little amount of discomfort. A Twitter app for Zune has been created and is now available for download through Microsoft's Marketplace.

Here is my website; video downloader

Anonymous said...

Remarkable things here. I'm very happy to peer your post. Thanks a lot and I am having a look forward to touch you. Will you please drop me a mail?

Also visit my website - video downloader

Anonymous said...

My family every time say that I am killing my time here at
net, however I know I am getting familiarity every day by reading such nice posts.

Also visit my weblog; http://raspberryketonesfacts.net/

Anonymous said...

Greetings, There's no doubt that your website might be having web browser compatibility issues. Whenever I take a look at your website in Safari, it looks fine however, when opening in I.E., it has some overlapping issues. I merely wanted to give you a quick heads up! Besides that, great website!

Look at my page ... Ultra Slim Patch
my website :: Ultra Slim Patch

Anonymous said...

I am curious to find out what blog system you're utilizing? I'm having some small security problems with my
latest site and I'd like to find something more risk-free. Do you have any solutions?

Here is my blog post Viarex Cream

Anonymous said...

Each listing includes the skills taught and the suggested age
for the activity. If you want to enjoy the game thoroughly then you need to get on board of a reliable online bingo site to get the
maximum enjoyment as well as benefit of the game. The reason for this
rather strange feature is that, as described above, apps in the Android Market are listed as they are submitted, without any testing.

Feel free to surf to my blog post kostenlos spielen ohne anmeldung

Anonymous said...

If you decide to pursue SEO as a way to generate revenue, you must beware that you will
open yourself up to a host of new scam products. Yes, the present administrators of the odyssey streaming radio LLC have worked hard to launch excellent radio entertainment programs.
Once at your site, users can buy your products and
services or click on your Ad - Sense ads.

Look at my web-site ... just click the next webpage

Anonymous said...

If you are using firewall software such as Outpost Firewall Pro, the paid edition of Online Armor and
Kaspersky Internet Security or PURE, you can take advantage of using
their Blocklist feature that will block connections to known
malicious URL and IP addresses. Spend some time to design
a good-looking 404 page, site offline page, etc.
Content, keywords and link building are some of the factors using which Search Engine Optimization services are taken care of.

Working with an SEO expert in your country can
help as SEO experts within the same country generally know how to
optimize websites for a specific country's audience more effectively. Thus, in minimum cost, you get an opportunity to increase your site ranking on Search Engine Result Page (SERP). Search engines are getting smarter at detecting sites that are spamming keywords or made solely for the purpose of advertising. Domain Authority is influenced by:. When SEO services are working for you, you should always be ready to capitalise on innovations and fresh marketing opportunities. Configure You - Tube settings by changing the default settings to your preferred and secure preferences. This helps auto dealership websites rank higher in the search engines results and get more traffic to the website. Search engine optimization is necessary for online businesses because it lets your website get found. If your website deals with certain products or services, then conduct a proper research on these and then form your SEO content. Effective SEO techniques for Bloggers aren't any different.
No - you name some of your images "breast. In this article, I will show you the best Word - Press SEO plugins you need to use in order to boost your search engine rankings and get more traffic to your blog. The sooner a site is presented in the search result, or the higher it “ranks”, the more searchers will visit the site. With most visitors noting the first 3-5 web links of the first page, further sustained SEO efforts bring the company web link to that web positioning high up as much as possible. When a person enters a keyword into the search box of a particular search engine such as Google, there will be scores of results showing out which are a result of a search engine algorithm devised by that particular search engine. What is the magic formula. If customers like what they see, they just might go on reading.

my site http://leminhphat90.blogspot.ru/2011/07/hamster-free-video-converter-v20016.html

Anonymous said...

The charge volition Story of sexual assault against his daughter, which the man had confessed to later he was initially aerated. [url=http://www.onlinecasinotaste.co.uk/]online casinos uk[/url] online casino But the casino handle metre for visiting the casinos, as we stay fussy in our professional life. http://www.onlinecasinoburger.co.uk/

Anonymous said...

Likewise, checking out every one of the fees, needs, and fine prints is likewise recommended highly [url=http://www.weirdopayday.co.uk/]payday loan[/url] payday loans uk Hence the horrific creditor will need to take the aid of these kind of funds swiftly http://www.payday-weirdo.co.uk/

Anonymous said...

fantastic points altogether, you just won a new reader.

What could you suggest about your post that you just
made some days in the past? Any positive?

my website ... Home Staging Company

Anonymous said...

I believe everythіng postеԁ
made а bunch οf sense. Hοwever, considеr this, suppose yοu typed a сatchier ρost title?

I ain't saying your information is not solid, but suppose you added something that grabbed folk's attention?
I mean "Ajax request" is a little borіng. You should look at Yahoo's home page and see how they create news headlines to grab viewers to click. You might add a video or a related pic or two to get readers interested about what you've written.
In my opinion, it соuld bring your blog a little bit
more іnteгеsting.

Alѕο viѕit mу blog: hemοгroides (blogs.rediff.com)