Thank you Marc, 

I hope this will help...


Emile.

Marc Guillemot écrit:

> Ok.
> 
> It comes from
> 
> selectCodeProf.options.length = profs.length;
> 
> which fills the select with empty options in a normal browser but not 
> currently in htmlunit. This is since a few hours as htmlunit bug registered:
> 
> http://sourceforge.net/tracker/index.php?func=detail&aid=1370484&group_id=47038&atid=448266
> 
> Marc.
> 
> [EMAIL PROTECTED] wrote:
> > Sorry, that one was not complete.
> > I think this one should work in the browsers, but not through WebTest...
> > 
> > 
> > Marc Guillemot écrit:
> > 
> > 
> >>Hi Emile,
> >>
> >>this code produces errors as well with FF and with IE (add a try catch 
> >>if you don't see it)
> >>
> >>Marc.
> >>
> >>[EMAIL PROTECTED] wrote:
> >>
> >>>Hi Marc,
> >>>
> >>>yes, this is the old one (attached).
> >>>I have commented the difference with the new one.
> >>>
> >>>Emile.
> >>>
> >>>Marc Guillemot écrit:
> >>>
> >>>
> >>>
> >>>>Hi Emile,
> >>>>
> >>>>may this be your new version with createElement? Do you still have the 
> >>>>old one?
> >>>>
> >>>>Marc.
> >>>>
> >>>>[EMAIL PROTECTED] wrote:
> >>>>
> >>>>
> >>>>>Hi Marc,
> >>>>>
> >>>>>well it does work in both IE and FF, even if I don't know precisely how!
> >>>>>You can check this part of code (sample.html).
> >>>>>
> >>>>>Thanks,
> >>>>>
> >>>>>Emile.
> >>>>>
> >>>>>
> >>>>>
> >>>>>Marc Guillemot écrit:
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>>Hi Emile,
> >>>>>>
> >>>>>>I've tried to reproduce your code that doesn't work in htmlunit and it 
> >>>>>>doesn't seem to work in FF and IE. New options can't be added just by 
> >>>>>>accessing a non-existing index in the options array. Are you sure that 
> >>>>>>it works in a real browser? Can you provide a small html/js 
> >>>>>>illustrating it?
> >>>>>>
> >>>>>>Marc.
> >>>>>>
> >>>>>>[EMAIL PROTECTED] wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>>Hi, I found a solution for my problem.
> >>>>>>>Actually, this script works when it's called by the "onload" tag: 
> >>>>>>>
> >>>>>>>for (i = 0; i < myTab.length; i++) {                   
> >>>>>>>                               var 
> >>>>>>> elt=document.createElement("option");
> >>>>>>>                               elt.value = myTab[ i ].code;
> >>>>>>>                               elt.text = myTab[ i ].libelle;          
> >>>>>>>                 myListBox.options[myListBox.length] =
> >>>>>>>elt;                           
> >>>>>>>                       }
> >>>>>>>
> >>>>>>>though this one does not:
> >>>>>>>
> >>>>>>>
> >>>>>>>for (i = 0; i < myTab.length; i++) {
> >>>>>>>                               myListBox.options[i].value = myTab[ i 
> >>>>>>> ].code;
> >>>>>>>                               myListBox.options[i].text = myTab[ i 
> >>>>>>> ].libelle;
> >>>>>>>                       }
> >>>>>>>
> >>>>>>>That might be useful to know !
> >>>>>>>
> >>>>>>>
> >>>>>>>Emile.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>Marc Guillemot écrit:
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>>Salut Emile,
> >>>>>>>>
> >>>>>>>>jsp doesn't matter, webtest receives only the generated html code.
> >>>>>>>>
> >>>>>>>>htmlunit (the underlying "browser") has no problem with the body's 
> >>>>>>>>onload. Can you give an example of your code. Is it well formed?
> >>>>>>>>
> >>>>>>>>Marc.
> >>>>>>>>
> >>>>>>>>[EMAIL PROTECTED] wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>>>Hi all,
> >>>>>>>>>
> >>>>>>>>>WebTest seems to be unable to open jsp that start with javascript 
> >>>>>>>>>functions
> >>>>>>>>>called by the 'onload' attribute of the <body> tag.
> >>>>>>>>>
> >>>>>>>>>Can you follow me?
> >>>>>>>>>
> >>>>>>>>>That causes me a very big problem, as I just can't get rid of these 
> >>>>>>>>>js
> >>>>>>>>>functions and as I really have to test wy webApp !
> >>>>>>>>>
> >>>>>>>>>Thank you for any help !
> >>>>>>>>>
> >>>>>>>>>Emile, Paris.
> >>>>>>>>>_______________________________________________
> >>>>>>>>>WebTest mailing list
> >>>>>>>>>[email protected]
> >>>>>>>>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>_______________________________________________
> >>>>>>>>WebTest mailing list
> >>>>>>>>[email protected]
> >>>>>>>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>>>>>
> >>>>>>>_______________________________________________
> >>>>>>>WebTest mailing list
> >>>>>>>[email protected]
> >>>>>>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>>>>>
> >>>>>>
> >>>>>>_______________________________________________
> >>>>>>WebTest mailing list
> >>>>>>[email protected]
> >>>>>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>>>>
> >>>>>>
> >>>>>>------------------------------------------------------------------------
> >>>>>>
> >>>>
> >>>>_______________________________________________
> >>>>WebTest mailing list
> >>>>[email protected]
> >>>>http://lists.canoo.com/mailman/listinfo/webtest
> >>>>
> >>>>
> >>>>------------------------------------------------------------------------
> >>>>
> >>
> >>_______________________________________________
> >>WebTest mailing list
> >>[email protected]
> >>http://lists.canoo.com/mailman/listinfo/webtest
> >>
> >>
> >> ------------------------------------------------------------------------
> >>
> 
> _______________________________________________
> WebTest mailing list
> [email protected]
> http://lists.canoo.com/mailman/listinfo/webtest
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to