Adding an Ebay Search on Desktop?

Discussion in 'Web Design & Coding' started by bgmagic, Nov 18, 2002.

  1. bgmagic

    bgmagic Guest

    Hi, I know you can add a google search and dictionary search, but can you add an ebay search? Any help is appreciated. Thanks
     
  2. Piett

    Piett ...will circle this city

    Messages:
    528
    Location:
    Calgary, Alberta
    umm i'll have a look into it for you
     
  3. Perris Calderon

    Perris Calderon Moderator Staff Member Political User

    Messages:
    12,332
    Location:
    new york
    well, you can save the search page to the desktop, available off line...if the actual search isn't available, this would be almost as good

    then, after you do that, you can take it even further, and hack the source...edt the page to look how you want the searchbar to look.
     
  4. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Code:
    <form ACTION="http://search.ebay.com/search/search.dll" METHOD="GET" onSubmit="isItemNumber(this); return false;">
    <input TYPE="hidden" NAME="MfcISAPICommand" VALUE="GetResult">
    <input TYPE="hidden" NAME="cgiurl" VALUE="http://cgi.ebay.com/ws/">
    <input type="hidden" name="ht" value="1"><input type="hidden" name="from" value="R7">
    <input TYPE="hidden" NAME="SortProperty" VALUE="MetaEndSort">
    <input NAME="query" SIZE="12" MAXLENGTH="100"> <input TYPE="SUBMIT" VALUE="Search">
    </form>
    
    [madmatt.edit]had to add in the end form tag, it was causing an error with posting a new thread.[/edit]
     
  5. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    did you test that? =)
    betcha it errors.
    heh.

    why? no javascript function present, except you call one in the "onSubmit". =)
     
  6. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    i did test it actually, and it worked fine, ner ner :D
    it was just a quick rip from the eBay site, just slapped the code in a file and did a search, all seemed well ... but most things do to me when im half asleep :p
     
  7. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    well, you should remove the javascript call. you won't see it error on your desktop (no status bar). but if you add target="_new" in the opening FORM tag, then try it, you will see an error message in the status bar. try it =)

    I am not picking on you either, just making you aware =)
     
  8. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    heh, like i say i was half asleep, and as always... multi-tasking :p
    Good job you pointed it out tho, wouldn't want people using dodgey code would we :)
     
  9. madmatt

    madmatt Bow Down to the King Political User

    Messages:
    13,312
    Location:
    New York
    Code:
    <html>
    <head>
    <title>Active Desktop: eBay Search</title>
    </head>
    <body bgcolor="#FFFFFF">
    
    <form name="searchform" action="http://search.ebay.com/search/search.dll" method="GET" target="_new">
    <input type="hidden" name="krd" value="1">
    <input type="hidden" name="from" value="R8">
    <input type="hidden" name="MfcISAPICommand" value="GetResult">
    <input type="hidden" name="ht" value="1">
    <input type="hidden" name="SortProperty" value="MetaEndSort">
    
    eBay Search<br>
    <input type="text" name="query" size="55" value=""><br>
    <input type="submit" value="Search">
    
    </form>
    </body>
    </html>
    
    official madmatt active desktop tutorial release, will be added to the tutorial for future ref.

    thanks to speedy for the head start.