mehmet07 Posted August 22, 2015 Share Posted August 22, 2015 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 More sharing options...
mhmda Posted August 22, 2015 Share Posted August 22, 2015 Hi, Use something like this: ajaxRequest(MainForm.window, 'test', ['a=10']); Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted August 22, 2015 Administrators Share Posted August 22, 2015 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. Link to comment Share on other sites More sharing options...
mehmet07 Posted August 23, 2015 Author Share Posted August 23, 2015 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 More sharing options...
Administrators Farshad Mohajeri Posted August 23, 2015 Administrators Share Posted August 23, 2015 Sizin yazdığınız koddan anladığım kadarıyla uniGUI ile değil de bir PHP sunucusu ile iletişim kurmaya çalışıyorsunuz. Bu durumda tabiki ajaxRequest çalışmaz. Link to comment Share on other sites More sharing options...
mehmet07 Posted August 23, 2015 Author Share Posted August 23, 2015 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. Link to comment Share on other sites More sharing options...
mehmet07 Posted August 24, 2015 Author Share Posted August 24, 2015 UniHtmlFrame olarak calisti. Ben hep exe olarak denemeler yapiyordum. dll yapip server'a atinca sorun duzeldi. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now