problem with image buttom in crm4

Spørgsmål problem with image buttom in crm4

  • 28. april 2012 07:17
     
     

    hi

    this is my code.

    //at first i create an nvarchar fild with name msc_confirmbutton

    crmForm.all.msc_confirmbutton_d.style.visibility = ‘hidden’;

    if (crmForm.all.msc_confirmbutton != null)
    {
    var field = crmForm.all.msc_confirmbutton_c;

    var html = “<table border=’0? cellspacing=’0? cellpadding=’0?><tr><img width=’32? height=’32? style=’cursor:hand’   src= 'http://crmsrc/files/img/images2.jpg'         alt=’Click button’ onclick=’Button_OnClick()’ /></tr></table>”;

    field.innerHTML = html;
    }
    Button_OnClick = function()
    {


    alert(“hello”);
    }


Alle besvarelser