xyeze
10-20-2011, 09:34 AM
hi everyone ; just i am very sorry for bad english :(
just demopage is that : http://xyeze.com/aqajax/levent/
my problem is ajax post problem..my code is that ...
this is index.php ;
/////////////
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#ustkolon {
width:979px;
height:36px;
margin-left:4px;
margin-bottom:10px;
border: 1px dashed #3ca3c1;
background:#AEE1E2;
}
#solkolon{
float:left;
margin-left:4px;
overflow:auto;
background:#91CED2;
width:250px;
height: 500px;
border: 1px dashed #3ca3c1;
padding: 3px;
}
a.tryitbtn,a.tryitbtn:link,a.tryitbtn:visited,a.showbtn,a.showbtn:link,a.showbtn:visited
{
display:block;
font: normal 12px arial;color:#096F78;
background:#ffffff;
width:225px;
border: 1px dashed #ffffff;
padding:3px;
margin-bottom:4px;
text-decoration:none;
}
a.tryitbtn:hover,a.tryitbtn:active,a.showbtn:hover,a.showbtn:active
{
color:#ffffff;
text-decoration :none;
background-color:#0E929E;
}
#sagkolon{
overflow:auto;
margin-left:10px;
float:left;
background:#CBC3C1;
height:500px;
width:714px;
margin-right: 5px;
padding-bottom: 8px;
}
</style>
<script type="text/javascript">
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, true)
page_request.send(null)
}
function loadpage(page_request, containerid){
if (page_request.readyState == 1)
{
document.getElementById(containerid).innerHTML='<img src="../yenixyezeeee/tools/images/loading.gif" />';
}
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
</script>
<div id="ustkolon">
<a class='uibutton confirm' title='yeni başlık açacağı' alt='yeni başlık açacağı' style='text-decoration:none;'
href="javascript:ajaxpage('cagrilanilk.php', 'sagkolon');">başlık aç</a>
</div>
<div id="solkolon"></div>
<div id="sagkolon">veri olmadımı burası gelir veri çağrıldımı bu kalkar sayfa gelir</div>
/////////////
this is cagrilanilk.php
/////////////
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="df" style="padding:10px;">
<form method="GET" action="javascript:ajaxpage('cagrilanilk2.php','sagkolon');">
<textarea id='fikrim' style='border-color:#BEF2DF;width:573px;height:150px;' class='content' name='fikrim'></textarea>
<input type="submit" class="uibutton confirm" value="sal başlığı ortama">
</form>
</div>
/////////////
end this is cagrilanilk2.php :((
////////////
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?
$fikrim=$_GET['fikrim'];
echo "gelen veri ==>> $fikrim";
?>
////////////
please help me friends pleaseeeeee ... :(
$fikrim is not getting... :((
and demopage is that : http://xyeze.com/aqajax/levent/
just demopage is that : http://xyeze.com/aqajax/levent/
my problem is ajax post problem..my code is that ...
this is index.php ;
/////////////
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
#ustkolon {
width:979px;
height:36px;
margin-left:4px;
margin-bottom:10px;
border: 1px dashed #3ca3c1;
background:#AEE1E2;
}
#solkolon{
float:left;
margin-left:4px;
overflow:auto;
background:#91CED2;
width:250px;
height: 500px;
border: 1px dashed #3ca3c1;
padding: 3px;
}
a.tryitbtn,a.tryitbtn:link,a.tryitbtn:visited,a.showbtn,a.showbtn:link,a.showbtn:visited
{
display:block;
font: normal 12px arial;color:#096F78;
background:#ffffff;
width:225px;
border: 1px dashed #ffffff;
padding:3px;
margin-bottom:4px;
text-decoration:none;
}
a.tryitbtn:hover,a.tryitbtn:active,a.showbtn:hover,a.showbtn:active
{
color:#ffffff;
text-decoration :none;
background-color:#0E929E;
}
#sagkolon{
overflow:auto;
margin-left:10px;
float:left;
background:#CBC3C1;
height:500px;
width:714px;
margin-right: 5px;
padding-bottom: 8px;
}
</style>
<script type="text/javascript">
var loadedobjects=""
var rootdomain="http://"+window.location.hostname
function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
}
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){
loadpage(page_request, containerid)
}
page_request.open('GET', url, true)
page_request.send(null)
}
function loadpage(page_request, containerid){
if (page_request.readyState == 1)
{
document.getElementById(containerid).innerHTML='<img src="../yenixyezeeee/tools/images/loading.gif" />';
}
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
document.getElementById(containerid).innerHTML=page_request.responseText
}
if (fileref!=""){
document.getElementsByTagName("head").item(0).appendChild(fileref)
loadedobjects+=file+" " //Remember this object as being already added to page
}
</script>
<div id="ustkolon">
<a class='uibutton confirm' title='yeni başlık açacağı' alt='yeni başlık açacağı' style='text-decoration:none;'
href="javascript:ajaxpage('cagrilanilk.php', 'sagkolon');">başlık aç</a>
</div>
<div id="solkolon"></div>
<div id="sagkolon">veri olmadımı burası gelir veri çağrıldımı bu kalkar sayfa gelir</div>
/////////////
this is cagrilanilk.php
/////////////
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<div class="df" style="padding:10px;">
<form method="GET" action="javascript:ajaxpage('cagrilanilk2.php','sagkolon');">
<textarea id='fikrim' style='border-color:#BEF2DF;width:573px;height:150px;' class='content' name='fikrim'></textarea>
<input type="submit" class="uibutton confirm" value="sal başlığı ortama">
</form>
</div>
/////////////
end this is cagrilanilk2.php :((
////////////
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<?
$fikrim=$_GET['fikrim'];
echo "gelen veri ==>> $fikrim";
?>
////////////
please help me friends pleaseeeeee ... :(
$fikrim is not getting... :((
and demopage is that : http://xyeze.com/aqajax/levent/