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!
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...
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.
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:
Comments on search string
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
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!
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Well if you didn't insert your absolute URL then it'd be submitting to a nonexistant location.
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
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...
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
Also discovered that the same thing happens with a standard link:
www.somesite/wsnlinks/searc...type=links&search=test
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
There is: http://scripts.webmastersite.net/wsnlinks/wsnmanu...
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
Thanks, slowly getting there. MS is encoding form input: filled%3D1%26whichtype%3Dlinks%26search%3D=
Is there a method to accept an encoded string?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Member
Usergroup: Customer
Joined: May 30, 2007
Total Topics: 12
Total Comments: 45
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>