Meaningless Drivel is fun!*
The moose likes JSF and the fly likes  how i can submit a form along with some parameters using javascript ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark " how i can submit a form along with some parameters using javascript ? " Watch " how i can submit a form along with some parameters using javascript ? " New topic
Author

how i can submit a form along with some parameters using javascript ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
thank you for reading my post.
is there any way that i can submit a form using javascript and also pass some parameters witht he submitted form ?
i have some parameters in a request scope bean , now in another page
i need to submit them to a 3rd party web page with some parameters that i calculate before.

so the question is :
can we submit an h:form using javascript also pass some parameters ?

thanks
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
Hi
thank you for thanking me for reading your post.

is there any way that i can submit a form using javascript and also pass some parameters witht he submitted form ?
i have some parameters in a request scope bean , now in another page
i need to submit them to a 3rd party web page with some parameters that i calculate before.

i believe you want to submit the form without any user interaction. yes javascript is the go for such requirements.


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
Mohamad Norouzi
Greenhorn

Joined: Oct 12, 2004
Posts: 18
Hi

try this:


sorry I dont know why this site doesnt allow to put "greaterThan" and "less Than" characters.


<a href="http://pixelshot.wordpress.com" target="_blank" rel="nofollow">http://pixelshot.wordpress.com</a><br /><a href="http://brainable.blogspot.com" target="_blank" rel="nofollow">http://brainable.blogspot.com</a>
raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
thank you for reading and replying to my post.
problem here is that all of those parameters value are dynamic.
i thought about using java script and that is the only way , but
bigger problem is those parameters that are calculated in bakcing bean and are set-ed in a Session scope and a request scope bean.


thanks
 
 
subject: how i can submit a form along with some parameters using javascript ?