Public Voice Network
- Multicolored logos? 88
- Shit QBNers Say 126126
- Light in the Box Coupons
- Vid of the Day 1096110961
- TYPO San Francisco 55
- Suggest a good movie... 936936
- Logo from Locked PDF? 33
- blog 5557955579
- American Musical Supply C… 11
- Pic of the Day 5937359373
- FMT 020312 4646
- intern -> job 2121
- Your Last Concert 375375
- the gif animation thread 1132211322
- Steve Jobs FBI file 66
- Shit QBNers think 6969
- What are you listening to… 41734173
- Park Slope 22
- The Elder Scrolls V: Skyr… 7676
- ♥ Things girls like ♥ 9696
- AE shadows won't work 99
- Politics 1759717597
- Chick of the Day 1431414314
- Skateboarding. 598598
Anyone know how... 1414 Responses
Last post: 1 year, 10 months ago | Thread started: Mar 17, 10, 2:52 p.m.
- scarabin
to create a form that will take you here:
http://www.jupiterimages.com/Sea…
onsubmit, where "dog" is the value of a text input field?
i suspect this could be done with javascript somehow...
basically i'm trying to put a jupiterimages search field on a website, but they use some weird system i can't figure out so i'm trying to use a workaround based off of the url string their form outputs...
does that make any sense?
- Mar 17, 10, 2:52 p.m. – Permalink
- 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


