Applying background dynamically from ajax [ iframe issue ]

August 6, 2007 at 8:51 am Leave a comment

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” ““>
<html xmlns=”“>
<script type=”text/javascript” language=”javascript”>
var http_request = false;

  function makeRequest(url,id) {

   try {“UniversalBrowserRead”);
   } catch (e) {
    alert(“Permission UniversalBrowserRead denied.”);

    http_request = false;
    http_request = new XMLHttpRequest();
    if (http_request.overrideMimeType) {
    if (!http_request) {
      alert(‘Cannot create XMLHTTP instance’);
      return false;
    http_request.onreadystatechange = alertContents;‘GET’, url);

  function alertContents() {
    if (http_request.readyState == 4) {
      if (http_request.status == 200) {

        var string = http_request.responseText;
  // }

      } else {
        alert(‘There was a problem with the request.’);
  function updateweather() {
  function change_bgcolor(string)

<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<title>Untitled Document</title>

<body bgcolor=”#FFFFCC” onload=”updateweather();>

<div  id=”test”  style=”width:468px; height:60px;top:0px;left:0px;border:none; display:block; background:#FF0000″>



Entry filed under: Ajax.

Scroll / Scroller in css em conversion in css

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Trackback this post  |  Subscribe to the comments via RSS Feed

Flickr Photos

so goddamn hot today (brescia, italy)

Past memories

Iglesia del antiguo Monasterio de Carboeiro.

More Photos

Blog Stats

  • 714,885 hits

%d bloggers like this: