- Screen name: thomas
thomas's Profile
2 Posts
0 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
Hi, i use a jquery autocomplete textbox. if the user press the the search button a lightbox popup will display. take a look to the source. i replace a link with a new link and the found id of the autocomplete box.but that works only if the user select something.
if he select nothing , i want change the link with the entered query string . something like
Popup.aspx?q=test
but how can i get the entered query string of my textbox (txtsearch) ?var xUrl = '<%=ResolveUrl("~/Search_VB.ashx") %>';
//ctl00$ContentPlaceHolder1$txtsearch''#<%=txtsearch.ClientID%>
$("#<%=txtsearch.ClientID%>").autocomplete(xUrl, {
width: 220,
selectFirst: false
});$("#<%=txtsearch.ClientID%>").result(function(event, data, formatted) {
if (data)
$(this).parent().next().find("input").val(data[1]);
val = data[1];
var xUrl1 = '<%=ResolveUrl("~/Popup.aspx?ID=" ) %>';
$('#cmsearch').attr('href', xUrl1 + val);
});- hi, iam not sure if i here in the correct forum.
but iam looking for a sample that when i enter a town or zipcode on a
webformular and after a short time the google maps will automatically
refresh and show me the current location. how can i realize that?
(without click on a search button, or that the whole page reload)
i found something on a sample page (it seems made with prototype) that is what i want
var observeFieldsSearch = ['location'];
var observeEventsSearch = ['keyup', 'change'];
observeFieldsSearch.each(function(fld) {
observeEventsSearch.each(function(evt) {
$(fld).observe(evt, scheduleSearch);
})
})but iam not found the code for schedulesearch. is that problem solve with jquery?- «Prev
- Next »
Moderate user : thomas



