RamblingRoss
The blog of Ross Fruen, a .NET consultant

GoogleSearchBox, JavaScript and write once, test everywhere

Thanks to Detlef for picking up an error in the JavaScript generated by the GoogleSearchBox plugin.

The plugin uses JavaScript to modify the data posted by the search form into a format acceptable to Google. To try and be a little more DOM compliant the code has been updated to access the "searchForm" using document.getElementsByName

...
function googleize()
{
if (document.getElementsByName("searchForm")[0].action == \'';
$content .= $destn;
$content .= '\')
{
var arr = new Array();
...

Add a comment

If you want your comment to appear on this page please complete the form below. Your name and email address are optional, although the latter will be required if you want a response. Your email address will not appear against your comment and will only be used to correspond with yourself (where appropriate).

Thanks!

Thank you for submitting your comment, it will appear here after moderation is complete.

Sorry

There was a problem sending your comment, please try again.