Jump to content

Recommended Posts

Posted

Merhabalar,

unihtmlframe bilesenin html ozelligine ajax ile post kodlarini yaziyorum. ama bir turlu ilgili url adresine veri post islemini basaramadim. ayni kodu html dosyasina yazip calistirinca sorunsuz calisiyor. unihtmlframe bileseni icerisinde yapinca error veriyor.

bu sorunu nasil cozebilirim acaba?

$.ajax({
type : 'POST',
url  : 'http://localhost/ajax/veri.php',
data : data,
success :  function(data)
  {
$("#reg-form").fadeOut(500).hide(function()
{
$(".result").fadeIn(500).show(function()
{
$(".result").html(data);

}),
error :  function(data)
  {
alert("hata");
});

});

 

 

  • Administrators
Posted

Merhaba,

 

htmlframe'de çalışmayabilir çünkü oradaki HTML kodu mevcut sayfanın bir parçasıdır ve jQuery ile yapacağınız POST işlemi doğru çalışmayabilir.

URLFrame kullanırsanız çalışabilir.

Posted

thanks Mohammad  and Farshad.  

Jquery nin diger fonksiyonlari sorunsuz calisiyor ama post olayi calismiyor. Aynı sayfayı html olarak yazdim ve apache server icerisine attim. Browserdan cagirinca sıkıntısız calisiyor. Fakat Urlframe icerisinden ajaxRequest gonderemiyorum ana programıma. Sitedeki kullanım sekillerini denedim.Bir sonuc alamadim.

ajaxRequest(MainForm.uniUrlframe1 , "dosyasecildi", ['konu=2123']);
top.ajaxRequest(top.MainForm.uniUrlframe1 , "dosyasecildi", ['konu=2123']); 
ajaxRequest(MainForm.window, 'test', ['a=10']);

program icerisindeki ajaxevent

If SameText(EventName, 'dosyacildi' ) Then
Begin
showmessage(Params.Values['konu']);
End;

bu sekillerde denedim. ama bir turlu istek programa gelmiyor. Yeni farkettim bu kodlari ekleyince html sayfasindaki javascript kod blogu islerken  bu kodlara kadar geliyor bu kodlardan sonra duruyor. ajaxRequest komutunu tanimiyor. veya ben yanlis yaziyorum.

 

 

 

 

i try this code but not working.

ajaxRequest(MainForm.window, 'test', ['a=10']);
Posted

Farshad bey kucuk bir demo gonderiyorum. yapmak istedigimi anlatmak icin.

apache server altinda calisan html dosyasi.

ajax.rar

 

program dosyalari

demo.rar

 

UniURLFrame1AjaxEvent olayini tetikletemiyorum bi turlu.

 

Teşekkürler.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...