Skip to main content

Anyone know how... 1414 Responses

Last post: 1 year, 10 months ago | Thread started: Mar 17, 10, 2:52 p.m.

RespondNew TopicDisable Images

  • 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
  • airey

    isn't that a search function using a database?

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 2:54 p.m. – Permalink
  • scarabin

    weird, it truncated my URL. this is what the last part of the URL looks like:

    /Search/Image#dog

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 2:54 p.m. – Permalink
  • scarabin

    i just can't figure out how to add a term like "dog" after a hashmark like that

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 2:55 p.m. – Permalink
  • airey

    it may simply have the supporting script in the background not so much search anything but just list any item with that tag.

    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 2:56 p.m. – Permalink
  • scarabin

    this probably isn't making any sense. i'm trying to hack the search URL they use by creating a new form of my own

    • yeah, won't work.airey
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 2:56 p.m. – Permalink
  • airey

    if you work it out let us know though.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 2:58 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.

    • < he has the devil in him! burn the witch!airey
    + add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    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.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    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.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 3:01 p.m. – Permalink
  • scarabin

    amazing. lemme try that.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 3:02 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.

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 3:03 p.m. – Permalink
  • scarabin

    think you can email me this? i wanna make sure i don't mess up the code...

    thanks!

    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    Dog-earMar 17, 10, 3:12 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?

    • yes. you're a fucker. but that's a whole different thing.airey1/4
      i wonder if its the way i'm including the jqueryscarabin2/4
      airey is always good for moral supportbigtrickagain3/4
      hahascarabin4/4
    next note >+ add note

    You must be logged in to add a note. Login now or register for an account.

    Cancel
    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 (:

    next note >add note

    You must be logged in to add a note. Login now or register for an account.

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

Login or Register to respond to this

Skip to main content