Forum Moderators: martinibuster

Message Too Old, No Replies

WebSearch on dynamic pages

Doesn't work

         

adfree

11:43 pm on Jun 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I can't make WebSearch work at my dynamic site (ASP.NET).
It goes back to the original page upon search request for both web search or site search.
Any idea anyone?

jomaxx

12:05 am on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you paste the code in unchanged?

adfree

8:34 am on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



yep

bnhall

2:04 pm on Jun 19, 2004 (gmt 0)

10+ Year Member



I have WebSearch on a cgi generated page and everything's fine.

adfree

11:04 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are submit forms on that template, could that interfere with the code?

jomaxx

11:12 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Good thought. Be sure you're not inserting the code between <form></form> tags.

adfree

11:24 pm on Jun 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



jomaxx that's exactly it.
Unfortunately the form starts right after the body tag and closes before the closing of body so I don't really have any layout flexibility.
Is there a way to embed the script somehow anyway?

jomaxx

12:34 am on Jun 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I would reevaluate whether you need the whole page inside form tags. I don't know what you're doing but there must be a workaround.

charlier

5:48 am on Jun 20, 2004 (gmt 0)

10+ Year Member



Depending on where your non-google input/hidden elements are located you might be able to just close the exisiting form put in the google code and then reopen the exisiting form, ie

</FORM>
Google code
<FORM same attributes as original open>

If there are any hidden form elements before the google code you will have to copy them so they are in your new form block.

coho75

11:41 am on Jun 20, 2004 (gmt 0)

10+ Year Member



You might try using CSS to position the G search box. By doing this, you could put the G search code after your other form and get it to sit anywhere on the page that you want.

adfree

6:31 pm on Jun 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks for the hints guys, will try.