Computer Science Canada
|Author:||apomb [ Tue Mar 08, 2011 1:50 pm ]|
Hey guys, Its been a while since ive been around, since I haven't been on the web-dev front until just recently, so this question will sound very noobish.
There is an issue with the search function on my website, I have gotten the search to work correctly when using the enter key to submit the form, however, when the "search" button (which is simply an image) is clicked, it simply goes to google without the form actually being submitted.
Could someone shed some light on how this doesnt work?
I have an idea that is has to do the submitSearchForm()
|Author:||DemonWasp [ Tue Mar 08, 2011 2:16 pm ]|
You're right -- you haven't bothered giving your form an ID so trying to get that element by ID isn't going to work very well.
As a side note, consider just using the form discussed here: http://www.codetoad.com/html/buttons/image_submit_button.asp
|Author:||apomb [ Tue Mar 08, 2011 4:18 pm ]|
Well, I'm specifically having trouble with the following section:
This code is untested, but I think it should work now.
EDIT: it does.