Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I can't make autocomplete work with ashx and the handler is working fine.

Here's the scenario:
1- JQuery files are properly referenced
2- ashx is deployed in /layouts and working (got this to work using this link)
3- on the text box when autocomplete is invoked using the code below nothing happens (why?)
$("#<%=txtLocation1.ClientID%>").autocomplete("/_layouts/Test/HandlerTest.ashx")

When a user types on the text box, it should search the list and returns the list item(s) based on the user input. The list has only two columns: (1) Location and (2) GMT. Search is based on location. The list is referenced on the same site collection.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

a few ideas:

  1. Compare the control ID being inserted into your jQuery call and ensure it is exactly the same as the actual control ID in the page. Often the two are different where one includes underscores and the other includes dollar signs.
  2. Fire up Fiddler and check to see that your jQuery is even fetching the data and that the ashx is returning the data expected.
share|improve this answer
    
There was another js error that is preventing the auto-complete to work. Thanks dave, I forgot I still have this issue open. I'm closing this now. –  SPNewbie Nov 16 '11 at 7:44
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.