Jump to content

AjaxEvent


m_ekici

Recommended Posts

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 

Link to comment
Share on other sites

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

image.png.8ebc6cd74bd95a2fac2e446ec477852e.png

Link to comment
Share on other sites

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...