Re: help : submit with javascript problem

2005-01-18 Thread Andrew Hill
Make sure you dont have any field or button whose id or name is also "submit" as in javascript a function is just another type of object, so a button or field on the form named 'submit' will hide the forms submit method and your call to frm.submit() would be trying to refer to the button which

help : submit with javascript problem

2005-01-18 Thread sachin
hi all , i have a Struts form defined like .. and i am tring to submit this form with javascript function like .. function submit() { frm=document.getElementById("paraFrm"); frm.submit(); } but it gives error that object does not support this p

Re: help : submit with javascript problem

2004-10-11 Thread calandraca
Try this: function callSubmit() { frm = document.getElementById("myFrm"); frm.submit(); } Note that styleId attribute in html:form tag will be rendered as an id html attribute (see Struts documentation). So you will have a way for locating the form from

Re: help : submit with javascript problem

2004-10-10 Thread Michael McGrady
Geesch! Wrong again -- I AM. He does have an but it is outside the form and used to submit the form. REALLY ODD! Why is he doing that? Michael McGrady Rick Reumann wrote: I do wonder in this case, however, whether you use buttons or rely on the auto-gui, why use "button" rather than "

Re: help : submit with javascript problem

2004-10-10 Thread Michael McGrady
Heh, Rick, I think we both misread what this gentleman is doing. I know I did. I missed that the button used to submit the form was outside the form. Why it is outside is not clear. But, he said it was. But, you seem to have missed that it was being used to submit the form. An odd situati

Re: help : submit with javascript problem

2004-10-10 Thread Rick Reumann
Michael McGrady wrote the following on 10/10/2004 10:09 PM: I do wonder in this case, however, whether you use buttons or rely on the auto-gui, why use "button" rather than "submit", if you want to submit? I might also say, that is what submit buttons are for. I assume, however, that there is

Re: help : submit with javascript problem

2004-10-10 Thread Michael McGrady
Hello, again, Rick, Thanks for the clarification. Your posts are always enlightening and informative. I mean that. I am not being sardonic in the slightest. I have to admit that I don't think they look bad either. However, they do greatly restrict the GUI team. I like my taste but I know t

Re: help : submit with javascript problem

2004-10-10 Thread Rick Reumann
I often use the regular html buttons for various things. Users are used to seeing these buttons so they know they can click on them. So for example someone might have a button "view logs" which doesn't necessarily submit a form but opens up a pop up window or maybe goes to some other url. Sure

Re: help : submit with javascript problem

2004-10-10 Thread Michael McGrady
Hi, RIck, I don't understand why this would make someone "make an image look like a form button". I am not sure what that means. All my form buttons are images. They look however I want them to look. I probably don't see what you are saying either. We may be coming from different directions

Re: help : submit with javascript problem

2004-10-10 Thread Rick Reumann
Michael McGrady wrote the following on 10/10/2004 4:42 PM: Wjau are you using button? Why not use image? What's the advantage of using an image in this case? Wouldn't this require someone to make an image to look like a form button? I'm probably missing something obvious here:) -- Rick

Re: help : submit with javascript problem

2004-10-10 Thread Michael McGrady
' token. If it still gives you errors give us the error log so it would be easier to Help you. Hope this helps, Erez -Original Message- From: sachin [mailto:[EMAIL PROTECTED] Sent: Saturday, October 09, 2004 5:29 PM To: Struts Users Mailing List Subject: help : submit with javascript pr

RE: help : submit with javascript problem

2004-10-09 Thread Erez Efrati
04 5:29 PM To: Struts Users Mailing List Subject: help : submit with javascript problem hello all , i have a struts form and a button outside the form. on button click , with javascript i need the submit the form any help is welcome. My code is like following. but does not work f

Re: help : submit with javascript problem

2004-10-09 Thread Erik Weber
Sorry, I'm not very good with JavaScript, but could it be that your function needs a return value? All my JavaScript functions return true or false, and it seems like I had a problem with a submit function similar to yours until I put in a return statement. Erik sachin wrote: hello all , i h

help : submit with javascript problem

2004-10-09 Thread sachin
hello all , i have a struts form and a button outside the form. on button click , with javascript i need the submit the form any help is welcome. My code is like following. but does not work function callSubmit() { document.forms[0].submit(); } Sachin Hegde -