Hello Everyone!
Before we start I'm a javascipt newbie as well as trying to get javascipt to work with the C# code behind page in ASP,NET. C# alone I can do fairly
well with however.
I'll just use google as an example here since it is well known.
Here is a script (below) for allowing people to place a google search box on their page. I plan to show a much larger duplication of it when there is a
mouse over event (or any acceptable code-behind C# event). The asp:button (the new bigger search button) would send the search words off to google
as though they clicked the original small button that google uses I would need to send google the search words contained in this larger asp:TextBox
where the query was actually typed into and save their search string in a C# code behind string for further use. Dealing with returned search page
results is not a problem.
Also on the line: <input type="hidden" name="hl" value="en"></input>
I'm assumiing all ads will be sent in English, or does google change this dynamically based on browser settings? If not is there any practical way
to change this based on browser settings?
Also, if anyone is curious, I am trying to develop web sites (and new controls for others) for disabled individals
(right now: visually impaired, but not blind). Any help I would greatly appreciate it.
Here is the code:
<center>
<form method="get" action="http://www.google.com/custom" target="_top">
<table bgcolor="#ffffff">
<tr><td nowrap="nowrap" valign="top" align="left" height="32">
<a href="http://www.google.com/">
<img src="http://www.google.com/logos/Logo_25wht.gif" border="0" alt="Google" align="middle"></img></a>
<label for="sbi" style="display: none">Enter your search terms</label>
<input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input>
<label for="sbb" style="display: none">Submit search form</label>
<input type="submit" name="sa" value="Search" id="sbb"></input>
<input type="hidden" name="client" value="ClientIdentifierStringRemoved"></input>
<input type="hidden" name="forid" value="1"></input>
<input type="hidden" name="channel" value="ClientIndentifierStringRemoved"></input>
<input type="hidden" name="ie" value="ISO-8859-1"></input>
<input type="hidden" name="oe" value="ISO-8859-1"></input>
<input type="hidden" name="cof" value="GALT:#FFFFFF;GL:1;DIV:#FFFFFF;VLC:FFFFFF;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:FFFFFF;LC:FFFFFF;T:FFFFFF;GFNT:
FFFFFF;GIMP:FFFFFF;FORID:1"></input>
<input type="hidden" name="hl" value="en"></input>
</td></tr></table>
</form>
</center>