Forum Moderators: skibum

Message Too Old, No Replies

Help With Amazon Search Box

         

Jon_King

4:13 pm on Nov 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The Amazon Search box converts pretty well on one of my sites but I think it would do better if I could pre-fill the keywords field with a suggested term or title. This way the user could simply hit 'go' and not type anything.

Anyone know how to pre-fill the keywords field?

jomaxx

10:54 pm on Nov 19, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming it's plain HTML, use a simple VALUE="keyword" attribute in the text field definition within the form.

Jon_King

6:34 pm on Nov 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yea that doesn't seem to be the case.

The search box code:
<iframe src="http://rcm.amazon.com/e/cm?t=myaffcode&o=1&p=27&l=qs1&f=ifr" width="180" height="150" frameborder="0" scrolling="no"></iframe>

jomaxx

8:51 pm on Nov 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting. I'm sure Amazon used to offer search boxes in plain HTML rather than as an iframe, and that code almost certainly still works.

Maybe you can find another site with an Amazon search box using the old style, then copy the form code and insert your affiliate ID. (Hint: Google for the exact phrase "search amazon". I found an example at the bottom of page 1.)

Alternatively you could create a form of your own design, then use Javascript onSubmit to insert the form input into an Amazon keyword affiliate HTML link. Fairly trivial.

Jon_King

4:10 am on Nov 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks much. I did find several examples and I'll see what I can do with it!