m_ekici Posted April 7, 2023 Share Posted April 7, 2023 Merhaba Demo içerisinde bulunan (ClientEvents-HtmlToAjax\html2ajax.dproj) HTMLFrame componenti koduna aşağıdaki satırı ekledim. <td style="width: 10%;height: 100px"><img style="display:block;" width="100%" height="100%" src="./B2B_Resim/Firma/test.png" name="Resim" id="Resim" onClick="imageReflesh('Resim')"></img></td> beforescript bölümüne de <script> function imageReflesh(imageName) { var HTMLFrame = Ext.getCmp("_HTMLTestFrame"); var params=[]; params = ["id="+imageName]; ajaxRequest(HTMLFrame, 'testserver', params); } </script> Buradaki resim üzerine tıkladığımda HTMLFrameAjaxEvent(Sender: çalışıyor ve tıkladığım resmin ID bilgisini alıyorum. Evt=testserver id=Resim Aynı komponent ve kodları benim projeme taşıdığımda HTMLFrameAjaxEvent(Sender: procedure girmiyor. Bunun nedeni ne olabilir? (Beforescrip alanına yazdığım kodu Servermodule/customfile içerisine test.js olarak ekledim yine olmadı) İyi Çalışmalar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 7, 2023 Share Posted April 7, 2023 23 minutes ago, m_ekici said: Aynı komponent ve kodları benim projeme taşıdığımda HTMLFrameAjaxEvent(Sender: procedure girmiyor. Merhaba, Quote Link to comment Share on other sites More sharing options...
m_ekici Posted April 7, 2023 Author Share Posted April 7, 2023 Demodan çalışan komponenti kopyaladığım için orası da geldi. O bölüm olmasa bile HTMLFrameAjaxEvent(Sender: procedure girip event name hatalı olması lazım. procedure hiç girmiyor. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 8, 2023 Share Posted April 8, 2023 22 hours ago, m_ekici said: Demodan çalışan komponenti kopyaladığım için orası da geldi. O bölüm olmasa bile HTMLFrameAjaxEvent(Sender: procedure girip event name hatalı olması lazım. procedure hiç girmiyor. Okay. Wrong here: function imageReflesh(imageName) { var HTMLFrame = Ext.getCmp("_HTMLTestFrame"); Should be: function imageReflesh(imageName) { var HTMLFrame = Ext.getCmp("_HTMLFrame"); Quote Link to comment Share on other sites More sharing options...
m_ekici Posted April 10, 2023 Author Share Posted April 10, 2023 Merhaba, ilginize teşekkür ederim fakat orada hata yok. Demo ya 2. TUniHTMLFrame ekledim, 2. logoya tıkladığımda sorunsuz çalışıyor. Çalışan komponenti benim projeme kopyaladığımda çalışmıyor. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 10, 2023 Share Posted April 10, 2023 What value is set in your project? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.