Hi:
No question. Just sharing a code snippet. This code is from a web-part that searches Google in a new window (client-side):
Phil
No question. Just sharing a code snippet. This code is from a web-part that searches Google in a new window (client-side):
<div id="GoogleSearch"> <telerik:RadTextBox ID="searchTextBox" Runat="server" EmptyMessage="Type your search criteria here..." Width="260px"> </telerik:RadTextBox> <telerik:RadButton ID="searchButton" runat="server" Target="_blank" CausesValidation="False" Text="Search" ButtonType="LinkButton" OnClientClicking="LaunchGoogleWindow" /></div><script type="text/javascript"> //<![CDATA[ function LaunchGoogleWindow( ) { var str, txt = $find("<%= searchTextBox.ClientID %>"); var lkButton = $find("<%= searchButton.ClientID %>"); str = encodeURIComponent(txt.get_value()); // alert(txt.get_value()); lkButton.set_navigateUrl("http://www.google.com/search?hl=en&q=" + str); } //]]></script>