Public Voice Network
- Pic of the Day 6330363303
- FACE EATER 1616
- Prometheus 143143
- Pentagram: Forty Story 22
- Aging = Scary 1111
- Bilderberg 11
- alternatives to chrome?? 1111
- What are you listening to… 47024702
- Beeeees! 1212
- Minimum rate? 33
- blog 5626556265
- Chick of the Day 1538315383
- Outfit of the Day 33
- Coda 2 3636
- Show your latest Pics 32953295
- Vid of the Day 1203412034
- the gif animation thread 1283512835
- News of the day... 138138
- Battlefield 3 305305
- New York 88
- Music over 5.1 System 66
- Random Fascinations? 55
- What is THEIR work? 55
- Meme of the day 1414
Anyone know how... 1414 Responses
Last post: 2 years, 2 months ago | Thread started: Mar 17, 10, 2:52 p.m.
- bigtrickagain
here:
<form id="searchform">
<input type="text" id="searchinput" />
</form>
(using jquery)
<script type="text/javascript">
$("#searchform").submit(function... {
document.location.href = "http://www.jupiterimages.com/Se... + $("#searchinput").val();
});
</script>
there.
- Dog-earMar 17, 10, 2:59 p.m. – Permalink
- bigtrickagain
wtf. the line that starts with $("#searchform") should end with "function() {"
and the line that starts with document.location should have "http://www.jupiterimages.com/Se... in the quotes.


- Dog-earMar 17, 10, 3 p.m. – Permalink
- bigtrickagain
fuck, my code keeps getting messed up by qbn. anyway, put the whole url in quotes in that line, ending with "/Search#" and it should work.


- Dog-earMar 17, 10, 3:01 p.m. – Permalink
- bigtrickagain
you gotta include jquery on your page, and flesh out the form with a submit button, too.
you can do it without jquery also but i can't be arsed to write it out. jquery is my crutch.


- Dog-earMar 17, 10, 3:03 p.m. – Permalink
- scarabin
so this is what i have
http://scarabin.net/homepage/tes…
and it doesn't seem to be working. am i doing something wrong?


- Dog-earMar 17, 10, 3:28 p.m. – Permalink
- bigtrickagain
oops - i forgot - the end of your script block should look like this:
return false;
});
</script>if you add that return false in there it will work fine.
it's also best if you host the jquery js on your own site (:


- Dog-earMar 17, 10, 4:34 p.m. – Permalink


