I have recently been notified of an issue when trying to use Google AdSense Search within a DotNetNuke site when using the instructions I provided earlier to convert the form submission into a javascript call that changes the page's submission URL. It appears that Google AdSense Search requires the values to be passed via an HTTP Get rather than an HTTP post and they validate the requests specifically on the number and names of the passed parameters. What does this mean? Well it means if you have ANY modules on your page that output HTML form data (Inputs, Selects, etc..) that you will NOT be able to use the search on those pages as they will be sending those elements to the service and you will receive a "Bad Request" error message.
As of right now I know of only 1 way around this issue and that is to place the AdSense search information inside a HTML file and reference it in your DotNetNuke application via an IFrame. This method has not been heavily tested but I know it will work, there may be performance and other implications to using this method, but it is an option.
If anyone has any other workarounds for this issue please feel free to share it below!
Name (required)
Email (required)
Website
Notify me of followup comments via e-mail
Content provided in this blog is provided "AS-IS" and the information should be used at your own discretion. The thoughts and opinions expressed are the personal thoughts of Mitchel Sellers and do not reflect the opinions of his employer.
Subscribe To Blog RSS Subscribe To Blog Updates by E-Mail * Add to Technorati Favorites
Click here for advertising information.
Content in this blog is copyright protected. Re-publishing on other websites is allowed as long as proper credit and backlink to the article is provided. Any other re-publishing or distribution of this content is prohibited without written permission from Mitchel Sellers.