Hi im try to display a html external file intead of a text msg
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   christian_arroyo
Posted On:   Sunday, April 16, 2006 02:55 PM

function $contacts(id) { var content = [ ' posting new stuff ', ]; /* Index for content */ var i = arguments.callee.i ? arguments.callee.i : 0; arguments.callee.i = (i+1) % content.length; /* Get the element to update */ var e = document.getElementById(id); if (!e) { return false; } /* Display the AJAX loading image */ e.innerHTML = ' Loading...'; e.style.display = 'block'; /* Wait a random amount of time then set the content of the element */ if (arguments.callee.timeout) { clearTimeout(arguments.callee.timeout); } arguments.callee.timeout = setTimeout(functi   More>>
			
function $contacts(id)
{

var content =
[
'
posting new stuff
',
];

/* Index for content */
var i = arguments.callee.i ? arguments.callee.i : 0;
arguments.callee.i = (i+1) % content.length;

/* Get the element to update */
var e = document.getElementById(id);
if (!e) { return false; }

/* Display the AJAX loading image */
e.innerHTML = ' Loading...';
e.style.display = 'block';

/* Wait a random amount of time then set the content of the element */
if (arguments.callee.timeout) {
clearTimeout(arguments.callee.timeout);
}
arguments.callee.timeout = setTimeout(function(){e.innerHTML=content[i];},
1000 + (Math.random()*2000));
return false;
}

var anim = new Image();
anim.src='ajax-anim.gif';


that is actualy my code it only display a txt msg when u click on a link onClick but i want it to show in the drop zone a external html page after loading... image..    <<Less

Re: Hi im try to display a html external file intead of a text msg

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, April 29, 2006 03:48 PM

If you are expecting to display an entire html document inside of a "div", then I think you'll have to put it inside an "iframe", in that "div", right?
About | Sitemap | Contact