Hi,

Seems the button needs to respond to both mouseOver and mouseOut events.
Have you
tried to add the respond attribute as

respond: ["mouseOver", "mouseOut"]

Please let us know if that works.

Thanks,

Jian

On Thu, Jun 10, 2010 at 1:51 AM, Loo <[email protected]> wrote:

> Hi ,
> thanks for the quick response . i've tried adding the "reponed"
> but still a no go. Here's some additional data :
>
> ModuleUI:
>  public void defineUi(){
>    ui. Container(uid: "SearchCourses",clocator: [:]){
>      Selector(uid: "Faculty", clocator: [tag:"select" , name:
> "faculty"])
>      Selector(uid: "Department", clocator: [tag:"select" , name:
> "hug"])
>      Button(uid: "SearchButton", clocator: [tag: "input", type:
> "button", name: "search"],respond: ["click"])
>    }
>  }
> ...
> public void doCoursesSearch() {
>   click "SearchCourses.SearchButton"
>  waitForPageToLoad 30000
> }
>
> ##############HTML Source#############:
> <input type="button" onmouseout="changeClass(this,'button');"
> onmouseover="changeClass(this,'button_over');" class="button" value="
> חפש " onclick="javascript:shelach(document.blabla)" name="search">
>
> ##############Java Script#############:
> function shelach(x){
>
> var k=0;
> var boxes = new Array();
>    var c=0;
>
> if(x.faculty.value > 0 ){
>
>    //alert(x.faculty.value);
>
>    for(i=0;i<facultyKlaleiRishum.length;i++){
>    if(facultyKlaleiRishum[i]==x.faculty.value){
>      k=1;
>      break;
>    }
>   }
>
>    if((x.hug==null || x.hug.value==0) || ( (x.maslul==null ||
> x.maslul.value==0) && k) ){
>
>       for(var j=0;j<x.elements.length;j++){
>        var f=x.elements[j];
>           if(f.type=='checkbox' && f.checked && f.value>0 &&
> f.value<10 ) c++;
>        }
>
>    //    alert(c);
>
>        if(c==0){
>            if(k)
>                alert('לא ניתן לחפש בכל הפקולטה ו או בכל חוג בלי לציין
> חיתוכים נוספים');
>            else
>                alert('לא ניתן לחפש בכל הפקולטה בלי לציין חיתוכים
> נוספים');
>            return false;
>        }
>
>    }
>
>        if( x.toar!=null && x.toar.value > 0 ) x.action+='#master';
>         x.submit();
>
> }else{ alert('נא לבחור פקולטה');}
>
>
> }
> #############################################
>
> As you can see just from the code this was written by a complete
> amateur , yet altering the code is not an option since i don't
> have access to it.
>
> The javascript function which is called by the button is doing some
> basic validation and then submit the form ("x.submit()").
>
> Using debug mode i've checked to see whether the jscript failed
> validation
> and because of that i didn't get the next page . but if i click the
> button (when in debug
> mode)  leaving all the other option to be set by code it works .
>
>
> Thanks a lot in advance ,
> Loo
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
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/tellurium-users?hl=en.

Reply via email to