Foros del Web » Programando para Internet » Javascript » Frameworks JS »

Problemas con Framework en IE

Estas en el tema de Problemas con Framework en IE en el foro de Frameworks JS en Foros del Web. hola, desearia que me puedan ayudar con in inconveniente que presento, lo que sucede es que tengo un form de registro hecho con ext.js, sucede ...
  #1 (permalink)  
Antiguo 31/05/2013, 09:52
 
Fecha de Ingreso: febrero-2013
Ubicación: Lima
Mensajes: 301
Antigüedad: 11 años, 2 meses
Puntos: 5
Exclamación Problemas con Framework en IE

hola, desearia que me puedan ayudar con in inconveniente que presento, lo que sucede es que tengo un form de registro hecho con ext.js, sucede que el formulario funciona sin problemas en el chrome y el firefox, pero en el IE se queda pensando, es decir no muestra el mensaje de confirmacion pero si ingresa los valores a la BD.
les comparto el codigo esperando su apoyo.
Código Javascript:
Ver original
  1. Ext.onReady(function(){
  2.  
  3. Ext.QuickTips.init();
  4.  
  5. // turn on validation errors beside the field globally
  6. Ext.form.Field.prototype.msgTarget = 'side';
  7.  
  8. var bd = Ext.getBody();
  9.  
  10. var simple = new Ext.FormPanel({
  11.     frame: true,
  12.     title:'Registrar Usuario',
  13.     width:400,
  14.     autoHeight:true,
  15.     url:'save-form.php',
  16.     waitMsgTarget: true,
  17.     monitorValid:true,
  18.     items:[{
  19.         labelAlign: 'left',
  20.         labelWidth: 125,
  21.             items: [
  22.                 new Ext.form.FieldSet({
  23.                 title: 'Detalles de Registro',
  24.                 autoHeight: true,
  25.                 defaultType: 'textfield',
  26.                     items: [{
  27.                         fieldLabel: 'User',
  28.                         name: 'user',
  29.                         width:90,
  30.                         allowBlank:false
  31.                     },{
  32.                         fieldLabel: 'Password',
  33.                         name: 'passwd',
  34.                         inputType:'password',
  35.                         width:90,
  36.                         allowBlank:false
  37.                     },{
  38.                         fieldLabel: 'Area',
  39.                         name: 'area',
  40.                         width:190,
  41.                         allowBlank:false
  42.                     },{
  43.                         fieldLabel: 'Nombre',
  44.                         name: 'nombre',
  45.                         width:190,
  46.                         allowBlank:false
  47.                     },{
  48.                         fieldLabel: 'Ap. Paterno',
  49.                         name: 'apellidop',
  50.                         width:190,
  51.                         allowBlank:false
  52.                     },{
  53.                         fieldLabel: 'Ap. Materno',
  54.                         name: 'apellidom',
  55.                         width:190,
  56.                         allowBlank:false
  57.                     },{
  58.                         fieldLabel: 'Oficina',
  59.                         name: 'oficina',
  60.                         width:190,
  61.                         allowBlank:false
  62.                     },{
  63.                         fieldLabel: 'Referencia',
  64.                         name: 'referencia',
  65.                         width:190,
  66.                         allowBlank:false
  67.                     },
  68.                         new Ext.form.ComboBox({
  69.                         fieldLabel: 'Tipo',
  70.                         name:'tipo',
  71.                         store: new Ext.data.ArrayStore({
  72.                             fields: ['numero', 'detalle'],
  73.                             data : [
  74.                                 ['1','ADMIN'],
  75.                                 ['2','USER']]
  76.                             }),
  77.                         valueField:'numero',
  78.                         displayField:'detalle',
  79.                         typeAhead: true,
  80.                         mode: 'local',
  81.                         triggerAction: 'all',
  82.                         emptyText:'Elija el Tipo de Usuario...',
  83.                         selectOnFocus:true,
  84.                         width:190,
  85.                         allowBlank:false
  86.                     }),{
  87.                         fieldLabel: 'E-mail',
  88.                         name: 'email',
  89.                         vtype:'email',
  90.                         width:190,
  91.                         allowBlank:false
  92.                     }]
  93.                 })
  94.                 ]
  95.         }],
  96.     buttons: [{
  97.         text: 'Registrar',
  98.         formBind: true,
  99.         // Function that fires when user clicks the button
  100.         handler:function(){
  101.         simple.getForm().submit({
  102.             method:'POST',
  103.             waitTitle:'Conectando',
  104.             waitMsg:'Enviando Data...',
  105.             success:function(){
  106.                 Ext.Msg.alert('Exito', 'Registro Exitoso!', function(btn, text){
  107.                     if (btn == 'ok'){
  108.                         var redirect = 'index.php'; //url luego de registrar usuario
  109.                         window.location = redirect;
  110.                     }
  111.                 });
  112.             },
  113.             failure:function(form, action){
  114.                 if(action.failureType == 'server'){
  115.                     obj = Ext.util.JSON.decode(action.response.responseText);
  116.                     Ext.Msg.alert('Registro Fallido!', obj.errors.reason);
  117.                 }else{
  118.                     Ext.Msg.alert('Error!', 'Autenticacion con el Servidor Rechazada : ' + action.response.responseText);
  119.                 }
  120.                 simple.getForm().reset();
  121.             }
  122.         });
  123.         }
  124.  
  125.     },{
  126.         text: 'Cancelar',
  127.         handler: function(){
  128.             Ext.Msg.alert('Advertencia', 'Esta Seguro de Eliminar los Datos Ingresados?', function(btn, text){
  129.                 if (btn == 'ok'){
  130.                     simple.getForm().reset();
  131.                 }
  132.             });
  133.         }
  134.     }]
  135.     });
  136.  
  137. simple.render('mant');
  138.  
  139. });
  #2 (permalink)  
Antiguo 03/06/2013, 07:38
Avatar de maycolalvarez
Colaborador
 
Fecha de Ingreso: julio-2008
Ubicación: Caracas
Mensajes: 12.120
Antigüedad: 15 años, 8 meses
Puntos: 1532
Respuesta: Problemas con Framework en IE

borra la caché del IE e intenta de nuevo, si tu IE tiene consola de depuración abrela y verifica que le llegue el HTTP 200
__________________
¡Por favor!: usa el highlight para mostrar código
El que busca, encuentra...

Etiquetas: formulario, framework, funcion, input, js, php, select
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 14:41.