Results 1 to 8 of 8

Thread: Problem in QuickCreate from module Notes in IE 6 / 7

  1. #1
    joel.oliveira is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Unhappy Problem in QuickCreate from module Notes in IE 6 / 7

    Hi,

    PHP : version 4.3.11
    MySql : version 4.1.20
    SugarCrm version 4.5.1e (Build 1049)
    Sugar Edition : Open-source
    Category : Notes

    I added the following code in the file QuickCreate.tpl of the module Notes and it works using Mozilla Firefox but it doesn't work on Internet Explorer 6 or 7 and I am little lost in trying to know what is happening.

    PHP Code:
     <td width='5%'><input id='ParaFecho' type='button' class='button' value ='Para Fecho' onclick='testaParaFecho("{$NAME}","1","{$REQUEST.return_id}")'></td>
              <
    td><input id='AtrCondicionado' type='button' class='button' value 'Atribuir Não Condicionado' onclick='testaCond("{$REQUEST.return_id}","0");'></td>
              <
    td><input id='RemCondicionado' type='button' class='button' value 'Remover Não Condicionado'  onclick='testaCond("{$REQUEST.return_id}","1");'></td
    Can anybody help me please?
    I inserted the same kind of buttons in the EditView.html from the same module and it works in both Firefox and IE.

    I would be very happy if someone could help me ... I am already stressin' out with this thing :\

    Best regards,
    Joel Oliveira
    Last edited by joel.oliveira; 2007-12-13 at 05:57 PM.

  2. #2
    HolmesA's Avatar
    HolmesA is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    109

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Hi

    What mean: it doesn't work? Simple do nothing or shows you some JS-error?
    Last edited by HolmesA; 2007-12-18 at 07:24 PM.

  3. #3
    joel.oliveira is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Thanks for the response,

    It simple does nothing, but if I turn on the script debugger I get a message like "object expected".

    First I thought it was something about AJAX but as I said i have the same functions being called at the EditView.html and it works just fine.

    Don't forget that we are talking about IE, this browser has poor debbuging tools, I already tried Microsoft Script Debugger and Microsoft Script Editor but I didn't get anywhere. I even tried Firebug for IE and all I could get was that all the functions were being called the right way (with the right parameters and all ).

    Thanks in advance,
    Joel Oliveira

  4. #4
    HolmesA's Avatar
    HolmesA is offline Sugar Community Member
    Join Date
    Nov 2007
    Posts
    109

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Hi

    Try to debug on-line using the alert messages. I hope this isn't on some of your production system.

    It is hard to say something else. Need to see your custom functions and final HTML code of this buttons.
    Last edited by HolmesA; 2007-12-18 at 07:26 PM.

  5. #5
    joel.oliveira is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Thanks again for the response,

    I already tried the debugging using the alert messages and I didn't get any one of them, and I am calling one right after the start of the function i.e. : I think that the IE never gets to run this javascript functions because I didn't get any feedback from the javascript.

    Remember that this just happens at the QuickCreate of the module Notes and doesn't happen at the EditView, when the same exact functions are called.

    The functions there are calling some PHP file via AJAX, and I am starting to think that I am getting this problem because the use of AJAX on this kind of "view".

    Example of the function testaCond in JS:

    PHP Code:

    function testaCond(idflag)
    {
            
    alert('zios');
      
            var 
    urlC;

            
    xmlHttpCon=GetXmlHttpObjectCon();

            if(
    xmlHttpCon==null)
            {
                    
    alert ("Your browser does not support AJAX!");
                    return;
            }

            if(
    flag==0)
            {
                    
    urlC "include/javascript/testaAtribuirCond.php"+"?q="+id;
            }
            else
            {
                    
    urlC "include/javascript/testaRemoverCond.php"+"?q="+id;
            }

            
    xmlHttpCon.onreadystatechange=stateCon;
            
    xmlHttpCon.open("GET",urlC,true);
            
    xmlHttpCon.send(null);
    }

    function 
    stateCon()
    {  

            var 
    responseArrayCon = new Array();

            if (
    xmlHttpCon.readyState==4)
            {
                    
    //retorno do php, numero de tickets por queue
                    
    responseArrayCon[0] = xmlHttpCon.responseText;
                    
    //alert(responseArrayCon[0]);

                    
    if(responseArrayCon[0]==-2)
                    {
                            
    alert('Cliente ja se encontra condicionado!');
                    }
                    else
                    {
                            if(
    responseArrayCon[0]==-1)
                            {
                                    
    alert('Cliente ja se encontra nao condicionado!');

                            }
                            else
                            {
                                    if(
    responseArrayCon[0]==1)
                                    {
                                            
    document.getElementById('assunto').value 'Cliente passou a Nao Condicionado';
                                    }
                                    else
                                    {
                                            if(
    responseArrayCon[0]==2)
                                            {
                                                    
    document.getElementById('assunto').value 'Cliente retirado de Nao Condicionado';
                                            }
                                            else
                                            {
                                                    
    alert('Ocorreu um erro desconhecido!');
                                            }
                                    }
                            }
                    }
            }
    }

    function 
    GetXmlHttpObjectCon()
    {
    var 
    xmlHttpCon=null;
    try
      {
      
    // Firefox, Opera 8.0+, Safari
      
    xmlHttpCon=new XMLHttpRequest();
      }
    catch (
    e)
      {
      
    // Internet Explorer
      
    try
        {
        
    xmlHttpCon=new ActiveXObject("Msxml2.XMLHTTP");
        }
      catch (
    e)
        {
        
    xmlHttpCon=new ActiveXObject("Microsoft.XMLHTTP");
        }
      }
    return 
    xmlHttpCon;

    And this is the final HTML code (I get it by using Firebug on IE, I think that was what I was supposed to do, right?) :

    HTML Code:
    <input type="button" onclick="testaCond("4e1c44a6-14fd-f647-eb1a-4761f34c7c66","0");" value="Atribuir Não Condicionado" class="button" id="AtrCondicionado"/>
    If you need all the files I can send it to you too, but this would be in a PM. Note that the thing that's missing here is only the PHP file ... and unfortenally I don't think it has anything to do with this.

    Once again, I hope somebody can help me ... because I am going crazy with this thing because one of my bosses uses only IE

    Thank you,
    Joel Oliveira

  6. #6
    joel.oliveira is offline Sugar Community Member
    Join Date
    Sep 2007
    Posts
    29

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Hi again,

    Can anybody help me with this problem? It seems to me that the QuickCreate feature from some modules may be unusable/incompatible with Internet Explorer and I'm getting a little desperate with this issue.

    Best regards,
    Joel Oliveira

  7. #7
    kgeving is offline Sugar Community Member
    Join Date
    Mar 2006
    Location
    Minnesota, USA
    Posts
    12

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Hi all!

    Just wondering if this problem ever got resolved. We are having the same problem with QuickCreate and IE 7. Everything works fine in Firefox, Safari, etc, but not in IE 7. No errors are evident in logs or debugging.

    Thanks!!


    Keith

    Sugar 5.1c
    MySQL 5.0.27
    PHP 5.2.1
    Apache 1.33

  8. #8
    ashishmathur is offline Senior Member
    Join Date
    Aug 2008
    Posts
    37

    Default Re: Problem in QuickCreate from module Notes in IE 6 / 7

    Just a bump. Facing same problem even with IE8.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with campaign module
    By stasila in forum Help
    Replies: 3
    Last Post: 2008-03-12, 03:53 PM
  2. Replies: 1
    Last Post: 2007-09-10, 12:17 AM
  3. Problem in Cloning module
    By palsoftware22 in forum Developer Help
    Replies: 0
    Last Post: 2006-12-12, 11:23 AM
  4. v4.2.0d Module Problem (Please Help)
    By CNSofADREVENUE in forum Help
    Replies: 2
    Last Post: 2006-06-14, 08:47 PM
  5. Install Module problem
    By tdp in forum Help
    Replies: 1
    Last Post: 2005-09-22, 05:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •