<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/webunitproj/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/webunitproj/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/webunitproj/bugs/</id><updated>2003-05-08T10:03:08Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>Image Button</title><link href="https://sourceforge.net/p/webunitproj/bugs/2/" rel="alternate"/><published>2003-05-08T10:03:08Z</published><updated>2003-05-08T10:03:08Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net1dae477917c59cc9fdba375030cab8d97a366895</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&amp;amp;lt;input type=image&amp;amp;gt; &lt;br /&gt;
&amp;amp;lt;input type=button&amp;amp;gt;&lt;br /&gt;
&amp;amp;lt;IMG&amp;amp;gt; &lt;br /&gt;
should be handled.&lt;/p&gt;
&lt;p&gt;DefaultWebClient.java&lt;/p&gt;
&lt;p&gt;Maybe can add following lines.&lt;/p&gt;
&lt;p&gt;Method&lt;br /&gt;
DefaultWebTag genTag(..&lt;br /&gt;
..&lt;br /&gt;
else if (tagName.equalsIgnoreCase(&amp;amp;quot;BUTTON&amp;amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
childTag= createInput(el,rh);&lt;br /&gt;
}&lt;br /&gt;
// newly added&lt;br /&gt;
else if(tagName.equalsIgnoreCase(&amp;amp;quot;IMG&amp;amp;quot;)){&lt;br /&gt;
String name = el.getAttribute(&amp;amp;quot;name&amp;amp;quot;);&lt;br /&gt;
String value = el.getAttribute(&amp;amp;quot;value&amp;amp;quot;);&lt;/p&gt;
&lt;p&gt;childTag = new DefaultSubmitButton(name, &lt;br /&gt;
el.getNodeName(),&lt;br /&gt;
value,true,null, rh);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;Method&lt;br /&gt;
DefaultWebTag createInput(...&lt;/p&gt;
&lt;p&gt;..&lt;br /&gt;
// modified&lt;br /&gt;
if (type!=null &amp;amp;amp;&amp;amp;amp; (type.equalsIgnoreCase(&amp;amp;quot;SUBMIT&amp;amp;quot;) &lt;br /&gt;
||type.equalsIgnoreCase(&amp;amp;quot;BUTTON&amp;amp;quot;)))&lt;br /&gt;
{&lt;br /&gt;
return new DefaultSubmitButton(name, &lt;br /&gt;
el.getNodeName(),&lt;br /&gt;
value,false,null, rh);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;// newly added&lt;br /&gt;
else if (type!=null &amp;amp;amp;&amp;amp;amp; type.equalsIgnoreCase(&amp;amp;quot;IMAGE&amp;amp;quot;))&lt;br /&gt;
{&lt;br /&gt;
return new DefaultSubmitButton(name, &lt;br /&gt;
el.getNodeName(),&lt;br /&gt;
value,true,null, rh);&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>easy to reproduce ONKEYUP problem</title><link href="https://sourceforge.net/p/webunitproj/bugs/1/" rel="alternate"/><published>2002-09-04T16:46:05Z</published><updated>2002-09-04T16:46:05Z</updated><author><name>Erik Ostermueller</name><uri>https://sourceforge.net/u/eosterm/</uri></author><id>https://sourceforge.net140cb281ce16820062f08f31aea65f41f787c018</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Before I delve into this -- thanks for such a cool product.&lt;br /&gt;
We need this!&lt;/p&gt;
&lt;p&gt;the issue:&lt;/p&gt;
&lt;p&gt;I'm unable to 'click' a button that started out disabled &lt;br /&gt;
that was later enabled by some javascript.&lt;/p&gt;
&lt;p&gt;Some javascript in the ONKEYUP event of a text field&lt;br /&gt;
enables the button.  My tester puts data into this text &lt;br /&gt;
field, but the button is never enabled.&lt;br /&gt;
I dumped the state of the button with toString()-- it &lt;br /&gt;
shows disabled.&lt;/p&gt;
&lt;p&gt;I have attached a very simple example.&lt;/p&gt;
&lt;p&gt;Two tiny web pages:&lt;br /&gt;
--search.html&lt;br /&gt;
--HelloWorld.html&lt;/p&gt;
&lt;p&gt;test client modeled after HelloWebUnit:&lt;br /&gt;
--HelloLittleWebUnit2.java.&lt;/p&gt;
&lt;p&gt;The stdout is in the file called 'out'.&lt;br /&gt;
Look for the text &amp;amp;quot;PROBLEM PROBLEM&amp;amp;quot;&lt;/p&gt;
&lt;p&gt;Here are a few thoughts&lt;br /&gt;
1) Perhaps the event isn't firing at all.  I don't know how &lt;br /&gt;
to attack this problem, quite yet.  When I see the &lt;br /&gt;
browser on the screen, it goes by quickly, but it doesn't &lt;br /&gt;
appear as if the button ever gets enabled.  could be &lt;br /&gt;
wrong.  I tried a 'sleep' at the end -- still looks disabled.&lt;/p&gt;
&lt;p&gt;2) Perhaps the ONKEYUP is indeed firing on the server, &lt;br /&gt;
but the client is not apprised of its status.  If this is the &lt;br /&gt;
case, perhaps there is a way to refresh the client's &lt;br /&gt;
information.  This would enable the client to see the &lt;br /&gt;
true 'enabled' status of the button.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>