Loading...

prototype-scriptaculous@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

[Proto-Scripty] The callee (server [not server application]) is not available and disappeared EdGioja Sat Apr 14 08:00:14 2012

I am trying to update the opener page.  This works in all browsers but IE.  
IE refuses to update and gives me the error: 

The callee (server [not server application]) is not available and 
disappeared; all connections are invalid

The error occurs on the getinputs line.


Please forgive the random numbers.  In my search for an answer, it was 
suggested that the variable names weren't unique...so I made them unique.  
Removing them doesn't help.
I've seen a number of discussions about .net, but this isn't utilizing any 
of that.  It is simple code in a ColdFusion environment.  
The *activatefield *and *deactivatefield *functions have been in use for a 
long time and, like I said, it all works in Firefox and Safari.

I would appreciate any help.  Here is my code.

       <script language="javascript">

        // Display/Edit Button
    
        <cfoutput>
    
        // Search for buttons on form and update colors
        r = Math.floor((Math.random()*100)+1).toString();
        this['form' + r ]  = 
window.opener.document.getElementById("form#form.judgeviewitem#");
        this['arr' + r]= $(this['form' + r ]).getInputs('button'); 
        var x = 0;
        this['arr' + r].each(function(item) {
            name = item.inspect();
            // Display/Edit button
            if(name.indexOf("DisplayEditOrder") > -1) {
                var newattribute = "background-color:#bgcolor#;";
                $(this['arr' + r][x]).writeAttribute("style", newattribute);
                var newattribute = "deactivatefield(this, \'#bgcolor#\');";
                $(this['arr' + r][x]).writeAttribute("onmouseout", 
newattribute);
                $(this['arr' + r][x]).writeAttribute("onblur", 
newattribute);
                var newattribute = "activatefield(this);";
                $(this['arr' + r][x]).writeAttribute("onmouseover", 
newattribute);
                $(this['arr' + r][x]).writeAttribute("onfocus", 
newattribute);
                var newattribute = "#buttoncaption#";
                $(this['arr' + r][x]).writeAttribute("value", newattribute);
            }
            x++;
        });

        </cfoutput>

        // force refresh of DOM activitty
        var msie = "Microsoft Internet Explorer";
        var elementonshow = 
window.opener.document.getElementById('DisplayEditOrder<cfoutput>#form.judgeviewitem#</cfoutput>');
        var tmp = 0;

        if (navigator.appName == msie) {
            tmp = elementonshow.parentNode.offsetTop + 'px';
        } else {
            tmp = elementonshow.offsetTop;
        }
    </script>


-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/prototype-scriptaculous/-/OdLSFo9KOOkJ.
To post to this group, send email to [EMAIL PROTECTED]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en.