[Httpunit-commit] CVS: httpunit/doc Javascript-support.html,1.37,1.38 release_notes.txt,1.297,1.298
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-05-18 05:20:51
|
Update of /cvsroot/httpunit/httpunit/doc In directory sc8-pr-cvs1:/tmp/cvs-serv25966/doc Modified Files: Javascript-support.html release_notes.txt Removed Files: Cookbook.html automated-testing.html faq.html favicon.ico license.html servletunit-intro.html Log Message: publish new website design Index: Javascript-support.html =================================================================== RCS file: /cvsroot/httpunit/httpunit/doc/Javascript-support.html,v retrieving revision 1.37 retrieving revision 1.38 diff -u -r1.37 -r1.38 --- Javascript-support.html 2 Apr 2003 15:30:59 -0000 1.37 +++ Javascript-support.html 18 May 2003 05:20:46 -0000 1.38 @@ -1,253 +1,652 @@ -<html> -<head><title>JavaScript Support</title></head> +<html><head><title>HttpUnit JavaScript DOM Elements Supported</title> +<link rel='stylesheet' href='../site.css' type='text/css'> +</head> <body> -<p> +<image src='images/HttpUnit.jpg'/> +<h1>JavaScript DOM Elements Supported</h1> +<div id='Menu'> + <a href='../index.html'>Home</a><br/> + <a href='license.html'>License</a><br/> + <a href='http://prdownloads.sourceforge.net/httpunit/httpunit-1.5.3.zip?download'>Download 1.5.3</a><br/> +<br/> + <a href='cookbook.html'>Cookbook</a><br/> + <a href='tutorial/index.html'>Tutorial</a><br/> + <a href='api/index.html'>JavaDoc</a><br/> + <a href='faq.html'>FAQ</a><br/> + <a href='citations.html'>External Citations</a><br/> + <b>JavaScript Support</b><br/> + <a href='servletunit-intro.html'>ServletUnit Intro</a><br/> +<br/> + <a href='developers.html'>Developers</a><br/> + <a href='http://sourceforge.net/cvs/?group_id=6550'>CVS Repository</a><br/> + <a href='http://lists.sourceforge.net/lists/listinfo/httpunit-develop'>Mailing List</a><br/> +<br/> + <a href='http://sourceforge.net/tracker/?group_id=6550&atid=106550'>Bug Database</a><br/> + <a href='http://sourceforge.net/tracker/?group_id=6550&atid=356550'>Feature Requests</a><br/> +</div> +<div id='Content'> + + + <P> JavaScript support is very basic at present. The near-term goal is full JavaScript 1.1 support. Currently, we do not plan to support browser-specific JavaScript. Please let us know via the mailing list your priorities for missing features. Inline and included scripts are supported, as are the following DOM elements: -<h3>Window</h3> -<h4>properties</h4> -<ul> -<li>closed - true if the window has been closed</li> -<li>document - the associated Document object</li> -<li>frames - an array of subframes of this window</li> -<li>location - r/w the associated Location object, which may be treated as a URL string</li> -<li>name - r/w the name of the window</li> -<li>navigator - the Navigator object</li> -<li>opener - r/o the window which opened this one (top-level frames only)</li> -<li>parent - the window which is a parent of this one. -<li>self - the Window itself</li> -<li>top - the top frame in the frameset containing this window -<li>window - a synonym for self</li> -<li><name> - the subframe of this window with the specified name -</ul> -<h4>events</h4> -<ul> -<li>onLoad - invoked when the page is loaded</li> -</ul> -<h4>methods</h4> -<ul> -<li>alert() - queues up an alert message, accessible via WebResponse.getNextAlert() or popNextAlert()</li> -<li>close() - closes the window</li> -<li>confirm() - invokes a callback supplied via WebClient.setDialogResponder to return the user's response. By default, - the callback returns true. Users may change this by supplying an implementation of DialogResponder.</li> -<li>prompt() - invokes a callback supplied via WebClient.setDialogResponder to return the user's response</li> -<li>open() - opens a new window. A callback will be generated to any WebWindowListener registered with the client.</li> -</ul> - -<h3>Navigator</h3> -<h4>properties</h4> -<ul> -<li>appCodeName - the code name set in ClientProperties.setApplicationCodeName()</li> -<li>appName - the name of the browser, as set in ClientProperties.setApplicationName()</li> -<li>appVersion - the browser version, set in ClientProperties.setApplicationVersion()</li> -<li>plugins - an empty array of objects, since plugins are not universally supported</li> -<li>platform - the platform for the browser, set in ClientProperties.setPlatform (1.2 feature)</li> -<li>userAgent - the name of the user agent, set by ClientProperties.setUserAgent or derived from the code name and version</li> -</ul> -<h4>methods</h4> -<ul> -<li>javaEnabled - always returns false to indicate that applets are not supported</li> -</ul> - -<h3>Screen (1.2 feature)</h3> -<h4>properties</h4> -<ul> -<li>availWidth - the available screen width, set in ClientProperties.setAvailableScreenWidth()</li> -<li>availHeight - the available screen height, set in ClientProperties.setAvailableScreenHeight()</li> -</ul> -<h4>methods</h4> -<ul> -<li>javaEnabled - always returns false to indicate that applets are not supported</li> -</ul> - -<h3>Location</h3> -<h4>properties</h4> -<ul> -<li>href - r/w the current window location. Setting this value initiates a new request to the server</li> -<li>host - r/o the host and port portion of the current window location</li> -<li>hostname - r/o the host portion of the current window location</li> -<li>port - r/o the port portion of the current window location</li> -<li>protocol - r/o the port portion of the current window location</li> -<li>pathname - r/w the path portion of the current window location. Setting this value initiates a new request to the server</li> -<li>search - r/w the query portion of the current window location. Setting this value initiates a new request to the server</li> -</ul> -<h4>methods</h4> -<ul> -<li>replace - replaces the current window by doing a new request to the server</li> -</ul> - -<h3>Document</h3> -<h4>properties</h4> -<ul> -<li>forms - an array of Form objects</li> -<li>images - an array of Image objects</li> -<li>links - an array of Link objects</li> -<li>title - readonly. The title of the page</li> -<li>location - a synonym for window.location</li> -<li>cookie - access to the document-specific cookies.</li> -<li><name> - the name of a form, image, or link</li> -</ul> -<h4>methods</h4> -<ul> -<li>open - opens a document for writing, optionally specifying a MIME type</li> -<li>close - closes the open document and replaces its contents with the written text</li> -<li>getElementById - returns the element in the document with the specified ID</li> -<li>getElementsByName - returns an array of all elements in the document with the specified name</li> -<li>getElementsByTagName - returns an array of all elements in the document with the specified tag name</li> -<li>write - writes a string to the contents of the current open document</li> -<li>writeln - writes a line with carriage-return to the contents of the current open document</li> -</ul> - -<h3>HTMLElement</h3> -<h4>properties</h4> -<ul> -<li>title - r/o the title attribute of the element</li> -</ul> - -<h3>Form (inherits from HTMLElement)</h3> -<h4>properties</h4> -<ul> -<li>action - r/w the action associated with the form</li> -<li>document - r/o the enclosing document</li> -<li>elements - r/o an array of controls in the form</li> -<li>action - r/w the target for any response from the form</li> -<li><name> - the name of a control in the form</li> -</ul> -<h4>events</h4> -<ul> -<li>onReset - invoked when form.reset() is invoked or a reset button is clicked</li> -<li>onSubmit - invoked when form.submit() is invoked or a submit button is clicked</li> -</ul> -<h4>methods</h4> -<ul> -<li>submit - submits the form</li> -<li>reset - resets the form controls to their default values</li> -<li>getElementsByTagName - returns an array of all elements in the form with the specified tag name</li> -</ul> - -<h3>Image</h3> -<h4>properties</h4> -<ul> -<li>src - read/write - the relative URL of the image</li> -</ul> - -<h3>Link (inherits from HTMLElement)</h3> -<h4>properties</h4> -<ul> -<li>href - read/write - the URL associated with the link</li> -</ul> -<h4>events</h4> -<ul> -<li>onClick - invoked when link.click() is invoked</li> -<li>onMouseOver - invoked when link.mouseOver() is invoked<li> -</ul> - -<h3>Input (inherits from HTMLElement)</h3> -<h4>properties</h4> -<ul> -<li>form - read-only - the form containing the input</li> -<li>name - read-only - the name of the control</li> -</ul> -<h4>methods</h4> -<ul> -<li>focus() - a no-op</li> -</ul> - -<h3>Button (inherits from Input)</h3> -<h4>events</h4> -<ul> -<li>onClick - invoked when button.click() is called</li> -</ul> - -<h3>Text (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>value - read/write - the current text value</li> -</ul> -<h4>events</h4> -<ul> -<li>onChange - invoked when the value of the control is changed via form.setParameter</li> -</ul> - -<h3>TextArea (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>value - read/write - the current text value</li> -</ul> -<h4>events</h4> -<ul> -<li>onChange - invoked when the value of the control is changed via form.setParameter</li> -</ul> - -<h3>Hidden (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>value - read/write - the current text value</li> -</ul> - -<h3>Password (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>value - read/write - the current text value</li> -</ul> -<h4>events</h4> -<ul> -<li>onChange - invoked when the value of the control is changed via form.setParameter</li> -</ul> - -<h3>Checkbox (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>checked - read/write - the state of the checkbox</li> -<li>defaultChecked - read-only - the default state of the checkbox</li> -<li>value - read/write - the value transmitted if the control is checked</li> -</ul> -<h4>events</h4> -<ul> -<li>onClick - invoked when the state of the control is changed via form.setParameter or form.removeParameter</li> -</ul> - -<h3>Radio (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>checked - read/write - the state of the radio button</li> -<li>defaultChecked - read-only - the default state of the radio button</li> -<li>value - read/write - the value transmitted if the control is checked</li> -</ul> -<h4>events</h4> -<ul> -<li>onClick - invoked when the state of the control is changed via form.setParameter</li> -</ul> - -<h3>Select (inherits from Input)</h3> -<h4>properties</h4> -<ul> -<li>length - read-only - the number of options associated with the control</li> -<li>selectedIndex - read-write - the index of the selected option</li> -<li>options - read-write - an array of the options associated with the control</li> -<li>options.length - read-write - the number of options associated with the control</li> -<li>value - read-write - the value of the selected option</li> -</ul> -<h4>events</h4> -<ul> -<li>onChange - invoked when the value of the control is changed via form.setParameter</li> -</ul> +</P> + + <H2>Window</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>closed - true if the window has been closed</LI> + + + <LI>document - the associated Document object</LI> + + + <LI>frames - an array of subframes of this window</LI> + + + <LI>location - r/w the associated Location object, which may be treated as a URL string</LI> + + + <LI>name - r/w the name of the window</LI> + + + <LI>navigator - the Navigator object</LI> + + + <LI>opener - r/o the window which opened this one (top-level frames only)</LI> + + + <LI>parent - the window which is a parent of this one. +</LI> + + <LI>self - the Window itself</LI> + + + <LI>top - the top frame in the frameset containing this window +</LI> + + <LI>window - a synonym for self</LI> + + + <LI><name> - the subframe of this window with the specified name +</LI> + </UL> + + + <H4>events</H4> + + + <UL> + + <LI>onLoad - invoked when the page is loaded</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>alert() - queues up an alert message, accessible via WebResponse.getNextAlert() or popNextAlert()</LI> + + + <LI>close() - closes the window</LI> + + + <LI>confirm() - invokes a callback supplied via WebClient.setDialogResponder to return the user's response. By default, + the callback returns true. Users may change this by supplying an implementation of DialogResponder.</LI> + + + <LI>prompt() - invokes a callback supplied via WebClient.setDialogResponder to return the user's response</LI> + + + <LI>open() - opens a new window. A callback will be generated to any WebWindowListener registered with the client.</LI> + +</UL> + + + + <H2>Navigator</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>appCodeName - the code name set in ClientProperties.setApplicationCodeName()</LI> + + + <LI>appName - the name of the browser, as set in ClientProperties.setApplicationName()</LI> + + + <LI>appVersion - the browser version, set in ClientProperties.setApplicationVersion()</LI> + + + <LI>plugins - an empty array of objects, since plugins are not universally supported</LI> + + + <LI>platform - the platform for the browser, set in ClientProperties.setPlatform (1.2 feature)</LI> + + + <LI>userAgent - the name of the user agent, set by ClientProperties.setUserAgent or derived from the code name and version</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>javaEnabled - always returns false to indicate that applets are not supported</LI> + +</UL> + + + + <H2>Screen (1.2 feature)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>availWidth - the available screen width, set in ClientProperties.setAvailableScreenWidth()</LI> + + + <LI>availHeight - the available screen height, set in ClientProperties.setAvailableScreenHeight()</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>javaEnabled - always returns false to indicate that applets are not supported</LI> + +</UL> + + + + <H2>Location</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>href - r/w the current window location. Setting this value initiates a new request to the server</LI> + + + <LI>host - r/o the host and port portion of the current window location</LI> + + + <LI>hostname - r/o the host portion of the current window location</LI> + + + <LI>port - r/o the port portion of the current window location</LI> + + + <LI>protocol - r/o the port portion of the current window location</LI> + + + <LI>pathname - r/w the path portion of the current window location. Setting this value initiates a new request to the server</LI> + + + <LI>search - r/w the query portion of the current window location. Setting this value initiates a new request to the server</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>replace - replaces the current window by doing a new request to the server</LI> + +</UL> + + + + <H2>Document</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>forms - an array of Form objects</LI> + + + <LI>images - an array of Image objects</LI> + + + <LI>links - an array of Link objects</LI> + + + <LI>title - readonly. The title of the page</LI> + + + <LI>location - a synonym for window.location</LI> + + + <LI>cookie - access to the document-specific cookies.</LI> + + + <LI><name> - the name of a form, image, or link</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>open - opens a document for writing, optionally specifying a MIME type</LI> + + + <LI>close - closes the open document and replaces its contents with the written text</LI> + + + <LI>getElementById - returns the element in the document with the specified ID</LI> + + + <LI>getElementsByName - returns an array of all elements in the document with the specified name</LI> + + + <LI>getElementsByTagName - returns an array of all elements in the document with the specified tag name</LI> + + + <LI>write - writes a string to the contents of the current open document</LI> + + + <LI>writeln - writes a line with carriage-return to the contents of the current open document</LI> + +</UL> + + + + <H2>HTMLElement</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>title - r/o the title attribute of the element</LI> + +</UL> + + + + <H2>Form (inherits from HTMLElement)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>action - r/w the action associated with the form</LI> + + + <LI>document - r/o the enclosing document</LI> + + + <LI>elements - r/o an array of controls in the form</LI> + + + <LI>action - r/w the target for any response from the form</LI> + + + <LI><name> - the name of a control in the form</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onReset - invoked when form.reset() is invoked or a reset button is clicked</LI> + + + <LI>onSubmit - invoked when form.submit() is invoked or a submit button is clicked</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>submit - submits the form</LI> + + + <LI>reset - resets the form controls to their default values</LI> + + + <LI>getElementsByTagName - returns an array of all elements in the form with the specified tag name</LI> + +</UL> + + + + <H2>Image</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>src - read/write - the relative URL of the image</LI> + +</UL> + + + + <H2>Link (inherits from HTMLElement)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>href - read/write - the URL associated with the link</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onClick - invoked when link.click() is invoked</LI> + + + <LI>onMouseOver - invoked when link.mouseOver() is invoked</LI> + + <LI> +</LI> + </UL> + + + + <H2>Input (inherits from HTMLElement)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>form - read-only - the form containing the input</LI> + + + <LI>name - read-only - the name of the control</LI> + +</UL> + + + <H4>methods</H4> + + + <UL> + + <LI>focus() - a no-op</LI> + +</UL> + + + + <H2>Button (inherits from Input)</H2> + + + <H4>events</H4> + + + <UL> + + <LI>onClick - invoked when button.click() is called</LI> + +</UL> + + + + <H2>Text (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>value - read/write - the current text value</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onChange - invoked when the value of the control is changed via form.setParameter</LI> + +</UL> + + + + <H2>TextArea (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>value - read/write - the current text value</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onChange - invoked when the value of the control is changed via form.setParameter</LI> + +</UL> + + + + <H2>Hidden (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>value - read/write - the current text value</LI> + +</UL> + + + + <H2>Password (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>value - read/write - the current text value</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onChange - invoked when the value of the control is changed via form.setParameter</LI> + +</UL> + + + + <H2>Checkbox (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>checked - read/write - the state of the checkbox</LI> + + + <LI>defaultChecked - read-only - the default state of the checkbox</LI> + + + <LI>value - read/write - the value transmitted if the control is checked</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onClick - invoked when the state of the control is changed via form.setParameter or form.removeParameter</LI> + +</UL> + + + + <H2>Radio (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>checked - read/write - the state of the radio button</LI> + + + <LI>defaultChecked - read-only - the default state of the radio button</LI> + + + <LI>value - read/write - the value transmitted if the control is checked</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onClick - invoked when the state of the control is changed via form.setParameter</LI> + +</UL> + + + + <H2>Select (inherits from Input)</H2> + + + <H4>properties</H4> + + + <UL> + + <LI>length - read-only - the number of options associated with the control</LI> + + + <LI>selectedIndex - read-write - the index of the selected option</LI> + + + <LI>options - read-write - an array of the options associated with the control</LI> + + + <LI>options.length - read-write - the number of options associated with the control</LI> + + + <LI>value - read-write - the value of the selected option</LI> + +</UL> + + + <H4>events</H4> + + + <UL> + + <LI>onChange - invoked when the value of the control is changed via form.setParameter</LI> + +</UL> + + + + <H2>Option (inherits from Input)</H2> + + + <H4>constructor</H4> -<h3>Option (inherits from Input)</h3> -<h4>constructor</h4> You may construct an Option object and assign it to an element in the Select.options array -<h4>properties</h4> -<ul> -<li>text - read-write - the display text associated with the option (listed after the <'option> tag)</li> -<li>value - read-write - the value associated with the option (from the 'value' attribute)</li> -<li>selected - read-write - true if this option is currently selected</li> -<li>defaultSelected - read-only - true if this option is selected by default</li> -<li>index - read-only - the index of this option in its select</li> -</ul> -</body> -</html> + <H4>properties</H4> + + + <UL> + + <LI>text - read-write - the display text associated with the option (listed after the <'option> tag)</LI> + + + <LI>value - read-write - the value associated with the option (from the 'value' attribute)</LI> + + + <LI>selected - read-write - true if this option is currently selected</LI> + + + <LI>defaultSelected - read-only - true if this option is selected by default</LI> + + + <LI>index - read-only - the index of this option in its select</LI> + +</UL> + +<hr/><p>Copyright © 2000-2003, Russell Gold +</div> +</body></html> \ No newline at end of file Index: release_notes.txt =================================================================== RCS file: /cvsroot/httpunit/httpunit/doc/release_notes.txt,v retrieving revision 1.297 retrieving revision 1.298 diff -u -r1.297 -r1.298 --- release_notes.txt 6 May 2003 13:31:04 -0000 1.297 +++ release_notes.txt 18 May 2003 05:20:46 -0000 1.298 @@ -26,7 +26,7 @@ 3. When setting a selection control, HttpUnit would always select a value matching its first option if possible, rather than taking the first valid value. - 4-Apr-2003 + 4-Apr-2003 1.5.3 Acknowledgements: Thanks to Andrew Bickerton for: correcting the handling of document.open for non-HTML pages and new pages with base tags, @@ -105,7 +105,7 @@ Thanks to Daniel Sheppard for correcting the return status for HttpServletResponse.sendRedirect Thanks to Daniel Sheppard, Navid Vahdat, and Ron Hanson for help in adding capabilities to the RequestDispatcher implementation. Thanks to Ron Hanson for catching the obsolete behavior of HttpServletRequest.setAttribute. - Thanks to Raphael Corre for improving logger of transmitted headers + Thanks to Raphael Corre for improving logging of transmitted headers Thanks to Jason Bedell for supplying an implementation for HttpSession.getValueNames. Thanks to Jianqin Qu for finding the getTableStartingWithPrefix bug when using NekoHTML Thanks to Scott Fleischman for providing tests for missing frame handling functionality |