httpunit and javascript???

Hi! Im developing a web application and use httpunit to http test it.

Here's the scenario, i had a page that has a form(html form) and a couple of text,button and hidden fields.When the form is submitted there's a javascript function that is called

<form onSubmit="javascript:validate();">.In the javascript function, some validation  and use the javascript function parseInt. parseInt function in javascript, as we all know, well just convert the given string to a number(whole number).

Well, i tried to run my apps in browser and the parseInt is returning a whole number.But when i tried to run httpunit, parseInt returns a decimal number.

IE - 6

what do you think guys? Is this has something to do with the javascript version used by httpunit?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Probably, If you read you can see that their JavaScript support is pretty limited
and parseInt is not among the supported methods.
Though what surprised me is that httpunit delegates the javascript calls to rhino which actually applies the parseInt correctly, so that leave
me to belive that httpunit wraps it with the wrong type (like Double instead of Integer).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rdy1437Author Commented:
Thanks for the reply you know or have used other http test aside from httpunit thats support javascript?
No, I used for that purpose only httpunit and I didn't use much the JavaScript validation feature (I used rhino directly to test my scripts).
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.