Results 1 to 8 of 8

Thread: 3.0-rc1 updater ie8 callback

  1. #1
    Sencha User TopKatz's Avatar
    Join Date
    Mar 2007
    Posts
    340

    Default 3.0-rc1 updater ie8 callback

    I have a page that has been working for over a year. Recently switched over to 3.0-rc1 and have been working along. I went back and made sure things played nice in ie8, and have found a problem. I have a chained sequence that occurs, but for whatever reason the last part is not executed in ie.

    First the user selects a combo value, and the id is collected, the first function is the callback function for the combos select:

    Code:
    function firstFunc(id){
        id = id;
        secondFunc(id);
    }
    This second function performs an updater on a div element:

    Code:
    function secondFunc(id){
    	hcaId = id;
    
    	var infoUpdate = Ext.get('dynamHcaInfo').getUpdater();
    	infoUpdate.update({
    		url:Ihc.app.HCARequestURL,
    		scripts:true,
    		params:'routine=getHCAInfo&hcaID='+id,
    		text:'Loading HCA......',
    		callback: loadCompleated
    		});
    
    }
    This is were it gets interesting. In ie8, the callback is never executed. It never fires loadCompleated. If I skip the first function (which is redundant at this point) it works, and ie8 fires the callback. But if I chain these functions together ie8 just ignores that callback.

    Is there something Im missing here? I have worked around it to some extent now, but Im curious what is wrong with what I was doing?

    Thanks

    Katz

  2. #2
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966

    Wink Anonymous Functions are Verbot anyway

    Try:
    Code:
    var firstFunc = function (id){
        secondFunc(id);
    };
    var secondFunc =function (id){
        hcaId = id;
    
        var infoUpdate = Ext.get('dynamHcaInfo').getUpdater();
        infoUpdate.update({
            url:Ihc.app.HCARequestURL,
            scripts:true,
            params:'routine=getHCAInfo&hcaID='+id,
            text:'Loading HCA......',
            callback: loadCompleated
            });
    
    }
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  3. #3
    Sencha User TopKatz's Avatar
    Join Date
    Mar 2007
    Posts
    340

    Default

    your the man hendricd.

    thanks

  4. #4
    Sencha User TopKatz's Avatar
    Join Date
    Mar 2007
    Posts
    340

    Default

    I thought this fixed my problem but it has not : (

    I had seen some intermittent success in my testing, and Ill have to attribute this to that.

    Even if I change the callback to this

    Code:
    callback : function(){alert('callback')}
    ie8 is ignoring it silently. FF3 fires the alert. I have not been able to reproduce this in a small sample. It appears to just work. However in my page its failing.

  5. #5
    Sencha User TopKatz's Avatar
    Join Date
    Mar 2007
    Posts
    340

    Default

    Just ran my code base against ext-2.2.1 and this issue is not present. Maybe someone else can confirm this and we can move this to bugs?

  6. #6
    Sencha User hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,966

    Default

    Quote Originally Posted by TopKatz View Post
    Just ran my code base against ext-2.2.1 and this issue is not present. Maybe someone else can confirm this and we can move this to bugs?
    I tracked most of the request chain from Updater -> data.Connection -> Ext.lib.Ajax (all re-written BTW)

    data.Connection-level callbacks look suspect, but you'd need to build an elaborate test-harness to confirm anything.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  7. #7
    Sencha User TopKatz's Avatar
    Join Date
    Mar 2007
    Posts
    340

    Default

    Quote Originally Posted by hendricd View Post
    I tracked most of the request chain from Updater -> data.Connection -> Ext.lib.Ajax (all re-written BTW)

    data.Connection-level callbacks look suspect, but you'd need to build an elaborate test-harness to confirm anything.
    Yeah, I have a simple example that works as expected. My actual page is a very complex 'glue' type script that brings in all my class objects together and builds the viewport and coordinates all the toys.

    Not sure how to reproduce this in a sample really.

  8. #8
    Sencha User TopKatz's Avatar
    Join Date
    Mar 2007
    Posts
    340

    Default

    Finaly found out what is going on:

    https://extjs.com/forum/showthread.php?t=70435

    and

    http://extjs.com/forum/showthread.ph...121#post338121

    This was causing my updater callback to fail silently. I had to hack the ext-base file with the code from the first post, but ie is playing nice again.

Posting Permissions

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