Webmastersite.net
Register Log In

search string

Comments on search string

mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 01, 2008 - 5:45 AM:

Is there an alternative form action string that could be used in place of search.php?filled=1&whichtype=links

I'm writing a gadet for Vista sidebar but losing any query sent and receiving default no result page. The form is being called from an iframe. Any suggestions appreciated... stuck!
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 01, 2008 - 7:51 PM:

You have to submit all the same fields you submit in the search form normally. Form action urls are arbitrary if you don't consider posted fields.

I presume "gadgets" use HTML? You can just copy and paste from the HTML source in your browser then.
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 02, 2008 - 4:45 AM:

The same form field ids are being used but to no avail. I can't see a logical reason why the post method would fail. I'll look into it further.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 02, 2008 - 2:30 PM:

Well if you didn't insert your absolute URL then it'd be submitting to a nonexistant location.
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 04, 2008 - 5:56 AM:

Strange behaviour here. I didn't make myself clear; I'm using the standard search form with absolute path and same field ID's. The gadget opens a page within an iframe (inherrently uses IE7 engine) which contains WSNLinks search field. So effectively this is a search from an external site. If I enter a query and send I get the advanced search page (no results). Any idea why the query string would be getting 'lost'? Is there a way to use the query string? ie. query=* or q=* etc? Perhaps it's an encoding issue, but I don't think so as I have another gadget using a different script which works both encoded/unencoded. Stuck...
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 04, 2008 - 6:27 AM:

Also discovered that the same thing happens with a standard link:

www.somesite/wsnlinks/searc...type=links&search=test
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 04, 2008 - 11:15 AM:

don't waste time on this one, it's a POST bug in MS Sidebar. I don't suppose there's a GET method available in WSNlinks is there?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
Posted Jul 04, 2008 - 1:19 PM:

There is: http://scripts.webmastersite.net/wsnlinks/wsnmanu...
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
Posted Jul 07, 2008 - 4:58 AM:

Thanks, slowly getting there. MS is encoding form input: filled%3D1%26whichtype%3Dlinks%26search%3D=

Is there a method to accept an encoded string?
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7867
Paul
#10 - Quote - Permalink
Posted Jul 07, 2008 - 4:31 PM:

No, it's not a proper query string if all the parts are escaped. I can't believe microsoft wouldn't allow URL parameters though, since that makes it impossible to do anything useful.
mx3design
Member

Usergroup: Customer
Joined: May 30, 2007

Total Topics: 12
Total Comments: 45
#11 - Quote - Permalink
Posted Jul 08, 2008 - 4:41 AM:

There are some serious bugs in the current API but I have finally come up with a workaround. If you write a gadget and want to search WSNLinks from a flyout use this as your form:

<form enctype="application/x-www-form-urlencoded" action="http://www.yoursite.com/wsnlinks/search.php" method="get" >
<input type="hidden" name="filled" value="1" >
<input type="hidden" name="whichtype" value="links" >
<input id="global" type="text" name="search" >

<input id="search_t" type="image" src="http://www.buttonimage.net/img/searchplus/search_t.png" >
</form>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.