web browser control "form action"

A

asianboi

Hi,

In my application, I have a web browser control and load up a local
html page. Within the html page, the following code exists. However,
when I click on the button that invokes the 'form action', nothing
happens. I'd like the event to spawn a new browser window. Is there
an event I should be catching?

<!-- search box -->

<form action="http://dogbert.abebooks.com/servlet/SearchResults"
method="get"></form>
<tbody><tr bgcolor="#9fa5aa">
<td colspan="2" align="center" valign="top"><b><font color="#ffffff"
face="Verdana, Arial, Helvetica, sans-serif" size="-1">Search
Abebooks</font></b></td>
</tr>
<tr><td align="right" bgcolor="#eeeeee" valign="middle"><font
face="Verdana, Helvetica, Arial" size="1"><b>Author:</b></font></td>
<td align="left" bgcolor="#eeeeee"><input name="an" size="12"
type="text"></td></tr>
<tr bgcolor="#eeeeee"><td align="right" valign="middle"><font
face="Verdana, Helvetica, Arial" size="1"><b>Title:</b></font></td>
<td align="left"><input name="tn" size="12" type="text"></td></tr>
<tr bgcolor="#eeeeee"><td align="right" valign="middle"><font
face="Verdana, Helvetica, Arial" size="1"><b>Keyword:</b></font></td>
<td align="left"><input name="sn" size="12" type="text"></td></tr>
<tr bgcolor="#eeeeee">
<td align="right" valign="middle"><b><font face="Verdana, Arial,
Helvetica, sans-serif" size="-2">ISBN:</font></b></td>
<td align="left"><input name="isbn" size="12" type="text"></td>
</tr>
<tr bgcolor="#eeeeee"><td colspan="2" align="center" valign="top"
width="100%">
<input name="imageField" src="getting-started.shtml_files/findBook.gif"
border="0" height="19" type="image" width="82"></td></tr>
<tr bgcolor="#eeeeee"><td colspan="2" align="center" valign="top"><font
face="Verdana, Helvetica, Arial" size="1">Search box not working?<br>
<a
href="http://www.abebooks.com/servlet/Sea...com-2005-11&amp;cm_pla=promo&amp;cm_ite=advse">Try
<b>Advanced
Search</b></a></font></td>
</tr>

Thanks in advance...
 
S

Steven Nagy

No one else has answered yet so I will give it a go, despite not having
2005 yet.

This line:
<form
action="http://dogbert.abebooks.com/servlet/SearchResults"method="get">

There's no space between the ACTION and the METHOD.

Normally I'd throw in some javascript to show a new window, but not
sure how that's gonna affect your web browser control/app.

This probably didn't help, but you didn't get any other answers yet so
I thought I'd try.

Steven Nagy
 
A

asianboi

Thanks for the response =)

I was able to get it work a little while ago ... what was interesting
is the first time I saved this page locally (save complete webpage), I
used FireFox to do so (then loaded the file up in the web browser in my
application). Then, I tried saving the page through IE and that seems
to have fixed the problem! Any idea why this might yield different
results?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top