Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/01/2012, 19:35
Avatar de Fabu_dina
Fabu_dina
 
Fecha de Ingreso: enero-2004
Mensajes: 425
Antigüedad: 20 años, 4 meses
Puntos: 1
Jqgrid no funciona en Firefox 9.

Tengo una aplicacion que se muestra perfecto en iE9 Chrome pero en Firefox no me muestra el listado alguien sabo porque la forma en que genero el xml para mostrar el listado en la rejilla es :

Código ASP:
Ver original
  1. page        = CInt(Request("page"))
  2. rp          = CInt(Request("rows"))
  3. sortname    = Request("sidx")
  4. sortorder   = Request("sord")
  5.  
  6. if sortname = "" then
  7.     sortname = "depto_ide"
  8. end if 
  9. if sortorder = "" then
  10.     sortorder = "asc"
  11. end if 
  12.  
  13. order       = "Order By "&sortname&" "&sortorder&""
  14.  
  15. if page = "" then
  16.     page = 2
  17. end if 
  18. if rp = 0 then
  19.     rp = 4
  20. end if 
  21.  
  22. strStart = (rp*page) -rp
  23. strStart = (page -1) * rp
  24.  
  25. If (strStart < 0) Then
  26.     strStart = 0
  27. End If
  28.  
  29. limit ="Limit "&strStart&","&cdbl(rp)&""
  30.  
  31. strSearchOn = Request("_search")
  32. If (strSearchOn = "true") Then
  33. strField    = Request("searchField")
  34.     If (strField = "depto_desc") Then
  35.         strFieldData    = Request("searchString")
  36.         strSearchOper   = Request("searchOper")
  37.         'construct where
  38.         strWhere = " Where " & strField
  39.  
  40.         Select Case strSearchOper
  41.         Case "bw" : 'Begin With
  42.             strFieldData = strFieldData & "%"
  43.             strWhere = strWhere & " LIKE '" & strFieldData & "'"
  44.         Case "eq" : 'Equal
  45.             If(IsNumeric(strFieldData)) Then
  46.                     strWhere = strWhere & " = " & strFieldData
  47.             Else
  48.                     strWhere = strWhere & " = '" & strFieldData & "'"
  49.             End If
  50.         Case "ne": 'Not Equal
  51.                 If(IsNumeric(strFieldData)) Then
  52.                     strWhere = strWhere & " <> " & strFieldData
  53.                 Else
  54.                     strWhere = strWhere & " <> '"& strFieldData &"'"
  55.                 End If
  56.         Case "lt": 'Less Than
  57.                 If(IsNumeric(strFieldData)) Then
  58.                     strWhere = strWhere & " < " & strFieldData
  59.                 Else
  60.                     strWhere = strWhere & " < '"& strFieldData &"'"
  61.                 End If
  62.         Case "le": 'Less Or Equal
  63.                 If(IsNumeric(strFieldData)) Then
  64.                     strWhere = strWhere & " <= " & strFieldData
  65.                 Else
  66.                     strWhere = strWhere & " <= '"& strFieldData &"'"
  67.                 End If
  68.         Case "gt": 'Greater Than
  69.                 If(IsNumeric(strFieldData)) Then
  70.                     strWhere = strWhere & " > " & strFieldData
  71.                 Else
  72.                     strWhere = strWhere & " > '"& strFieldData &"'"
  73.                 End If
  74.         Case "ge": 'Greater Or Equal
  75.                 If(IsNumeric(strFieldData)) Then
  76.                     strWhere = strWhere & " >= " & strFieldData
  77.                 Else
  78.                     strWhere = strWhere & " >= '"& strFieldData &"'"
  79.                 End If
  80.         Case "ew" : 'End With
  81.             strWhere = strWhere & " LIKE '%" & strFieldData & "'"
  82.         Case "cn" : 'Contains
  83.             strWhere = strWhere & " LIKE '%" & strFieldData & "%'"
  84.         End Select
  85.        
  86.     End if
  87. End If
  88.  
  89. Set Conn_sql = Server.CreateObject("ADODB.Connection")
  90. Conn_sql.Open ConString
  91. set rs_info = server.CreateObject("ADODB.Recordset")
  92.  
  93. sql = "Select * From departamentos "&strWhere&" "&order&" "&limit&" "
  94. Set rs      = Conn_SQL.Execute(sql)
  95.  
  96. '$total = countRec("iso","country $where");
  97. sql_total = "Select count(*) as total From departamentos "&strWhere
  98. Set rs_total        = Conn_SQL.Execute(sql_total)
  99.  
  100.  
  101. if ( cdbl(rs_total("total")) mod cdbl(rp) ) > 0 then
  102.     total_paginas = cint(( cdbl(rs_total("total")) / cdbl(rp) )) '+1
  103. else
  104.     total_paginas = ( cdbl(rs_total("total")) / cdbl(rp) )
  105. end if
  106.  
  107.  
  108.  
  109. Response.Write ("<?xml version='1.0' encoding='iso-8859-1'?>")
  110. Response.Write ("<rows>")
  111. Response.Write ("<page>"&cdbl(Page)&"</page>")
  112. Response.Write ("<total>"&cdbl(total_paginas)&"</total>")
  113. Response.Write ("<records>"&cdbl(rs_total("total"))&"</records>")
  114.  
  115. rs.MoveFirst
  116. Do While Not rs.Eof
  117.  
  118. Response.contenttype = "text/xml"
  119. Response.Write "<row id='"&rs("depto_ide")&"'>"
  120. Response.Write "<cell>"&rs("depto_ide")&"</cell>"
  121. Response.Write "<cell><![CDATA["&rs("depto_desc")&"]]></cell>"
  122. Response.Write "<cell><![CDATA["&rs("depto_imagen")&"]]></cell>"
  123. If rs("depto_activo")=1 then
  124.     Response.Write "<cell>ACT</cell>"
  125. else
  126.     Response.Write "<cell></cell>"
  127. end if
  128. Response.Write "<cell><![CDATA["&rs("depto_visitas")&"]]></cell>"
  129. Response.Write "<cell><![CDATA["&rs("depto_descripcion")&"]]></cell>"
  130. Response.Write "</row>"
  131.  
  132.  
  133.  
  134. rs.MoveNext
  135. Loop
  136.  
  137. Response.Write "</rows>"
  138.  
  139. rs.Close
  140. Set Conn = Nothing