Jump to content

unihtmlframe ile post islemi


mehmet07

Recommended Posts

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");
});

});

 

 

Link to comment
Share on other sites

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']);
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...