From: Mike B. <gar...@ya...> - 2002-10-11 15:36:48
|
> I looked at your code to see if I could make it work like > IE, but it wasn't clear to me where the action attribute > gets defined. In Form.java, you'll see methods like this: public String jsGet_action() { return getHtmlForm().getActionAttribute(); } Any method that starts with jsGet_ will become an attribute with this method as the getter. Same for jsSet_ and jsFunction_. This is all done by the Rhino engine via the magic of reflection. If I wanted to have action (and id and method and...) there only if there isn't an input with the same name then I'll have to assign them dynamically. Less convenient but not horrible. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com ______________________________________________________________________ Post your free ad now! http://personals.yahoo.ca |