Menu
hi guys,
im trying to do something with ajax….i have a page with three link..when i press the link i want the linked page to load without refreshing..only that much im trying to..anyone can help..
thanx alot for the help..
Noor
One other minor technical thing... What you are trying to do is NOT Ajax. This would be conisdered DHTML.[/QUOTE]
[CODE]<input type="button" onClick="document.getElementById('iframe1').scrolling='no' ;" value="hide">[/CODE]
[CODE]<input type="button" onClick="document.getElementById('iframe1').frame.Border='0' ;" value="hide">[/CODE]
[CODE]<input type="button" onClick="document.getElementById('iframe1').Border='0' ;" value="hide">[/CODE]
[CODE]<html>
<head>
<style>
body
{
margin-top:0;
margin-left:0;
}
</style>
</head>
<body>
<iframe src="test.html" name="iframe1" id="iframe1" height="400" width="750"></iframe>
<form action="#" method="get">
<input type="button" onClick="document.getElementById('iframe1').scrollbar='no' ;" value="hide">
</form>
</body>
</html>[/CODE]
You keep trying to use properties of the IFRAME that do not exist. Change to using the IFRAME's STYLE object and you'll have more success.[/QUOTE]
[code=php]var myURL = "http://webSiteIWantToGoTo.com";
var myIframe = document.getElementById('myIframeIdName');
myIframe.setAttribute('src',myURL);[/code]
[code=php]onClick="document.getElementById('myframeId').style.height='1';document.getElementByI('myframeId').style.width='1';"[/code]
iframe does have this property..[/QUOTE]
[CODE]<input type="button" onClick="document.getElementById('iframe1').Border='0' ;" value="hide">[/CODE]
[/QUOTE]
[CODE]<input type="button" onClick="document.getElementById('iframe1').scrollbar='no' ;" value="hide">
[/CODE]
[/QUOTE]
Though, personally, I would give the IFRAME a NAME attribute and reference it this way:[/QUOTE]
0.1.9 — BETA 5.19