[jQuery] Re: jquery compatibility test 01

2008-05-29 Thread arden liu
Thanks for your suggestion. Now, I reduce my code as the following. But it
still does not work under Opera.
Maybe I have to use my own javascript instead of jquery, or I will try to
fix this problem of jquery.

===


Insert title here

 
  function refreshProgress(){
$("#test1").val("e");
setTimeout(refreshProgress, 1500);
  }
   $(function(){
$("#formtest").submit(function(){
 setTimeout(refreshProgress, 1500);
});
   });
 


 
  
  
 


===

On Wed, May 28, 2008 at 7:47 PM, Ariel Flesler <[EMAIL PROTECTED]> wrote:

>
> Reducing that to the real situation... you're setting a number as
> value to a text field.
> That did cause troubles (for selects) but was fixed on 1.2.6.
> I tried this (setting the val to a text field) and worked well.
>
> Maybe something else is failing ? try to remove all the irrelevant
> code and generate a minimalistic test case.
>
> Cheers
>
> --
> Ariel Flesler
> http://flesler.blogspot.com
>
> On 28 mayo, 17:25, "arden liu" <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Today, I did some tests of compatibility among IE 7.0.5730.11, Firefox
> > 2.0.0.14, Opera 9.27, Safari 3.1.1
> > The following JSP(includes Javascrpt) works fine under all these browser.
> > Then I used JQuery to implement the same function, it works fine under
> > IE/FF/Safari
> > The submit function does not work correctly under Opera.
> >
> > Maybe I did not use Jquery correctly, or it is a compatibility problem of
> > jquery-1.2.6.
> > Thanks.
> > Arden
> >
> ===Javascript==­===
> > 
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
> >  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > http://www.w3.org/1999/xhtml";>
> > 
> > 
> > Insert title here
> >  
> >   var ipVal=0;
> >   function refreshProgress(){
> > ipVal = ipVal + 1;
> > document.getElementById('test1').value=ipVal;
> > setTimeout("refreshProgress()", 1500);
> >   }
> >  
> > 
> > 
> >  Click Me!
> >   > onsubmit="setTimeout('refreshProgress()', 1500);">
> >   
> >   
> >  
> > 
> > 
> >
> >
> =JQuery­===
> > 
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
> >  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > http://www.w3.org/1999/xhtml";>
> > 
> > 
> > Insert title here
> > 
> >  
> >   var ipVal=0;
> >   function refreshProgress(){
> > ipVal = ipVal + 1;
> > $("#test1").val(ipVal);
> > setTimeout(refreshProgress, 1500);
> >   }
> >$(function(){
> > $("#buttonTest").click(function(){
> >  setTimeout(refreshProgress, 1500);
> > });
> > $("#formtest").submit(function(){
> >  setTimeout(refreshProgress, 1500);
> > });
> >});
> >  
> > 
> > 
> >  Click Me!
> >  
> >   
> >   
> >  
> > 
> > 
> >
> =s.jsp=­==
> > 
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
> >  http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > http://www.w3.org/1999/xhtml";>
> > 
> > <%
> > Thread.sleep(1);
> > %>
> > 
> > 
> >  Click Me!
> > 
> > 
>


[jQuery] Re: jquery compatibility test 01

2008-05-28 Thread Ariel Flesler

Reducing that to the real situation... you're setting a number as
value to a text field.
That did cause troubles (for selects) but was fixed on 1.2.6.
I tried this (setting the val to a text field) and worked well.

Maybe something else is failing ? try to remove all the irrelevant
code and generate a minimalistic test case.

Cheers

--
Ariel Flesler
http://flesler.blogspot.com

On 28 mayo, 17:25, "arden liu" <[EMAIL PROTECTED]> wrote:
> Hi,
> Today, I did some tests of compatibility among IE 7.0.5730.11, Firefox
> 2.0.0.14, Opera 9.27, Safari 3.1.1
> The following JSP(includes Javascrpt) works fine under all these browser.
> Then I used JQuery to implement the same function, it works fine under
> IE/FF/Safari
> The submit function does not work correctly under Opera.
>
> Maybe I did not use Jquery correctly, or it is a compatibility problem of
> jquery-1.2.6.
> Thanks.
> Arden
> ===Javascript==­===
> 
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> Insert title here
>  
>   var ipVal=0;
>   function refreshProgress(){
>     ipVal = ipVal + 1;
>     document.getElementById('test1').value=ipVal;
>     setTimeout("refreshProgress()", 1500);
>   }
>  
> 
> 
>  Click Me!
>   onsubmit="setTimeout('refreshProgress()', 1500);">
>   
>   
>  
> 
> 
>
> =JQuery­===
> 
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> 
> Insert title here
> 
>  
>   var ipVal=0;
>   function refreshProgress(){
>     ipVal = ipVal + 1;
>     $("#test1").val(ipVal);
>     setTimeout(refreshProgress, 1500);
>   }
>    $(function(){
>     $("#buttonTest").click(function(){
>      setTimeout(refreshProgress, 1500);
>     });
>     $("#formtest").submit(function(){
>      setTimeout(refreshProgress, 1500);
>     });
>    });
>  
> 
> 
>  Click Me!
>  
>   
>   
>  
> 
> 
> =s.jsp=­==
> 
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
>  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> http://www.w3.org/1999/xhtml";>
> 
> <%
> Thread.sleep(1);
> %>
> 
> 
>  Click Me!
> 
>