autocomplete JQUERY jquery-1.7.2.min

I want use autocomplete in text ,but it isn’t work
this is my code

in

scheduler.form_blocks[“my_editor”]={
render:function(sns){
return "

 
“;
},
set_value:function(node,value,ev)
{
node.childNodes[1].value=value||”";
//node.childNodes[4].value=ev.details||"";
},
get_value:function(node,ev){
//ev.location = node.childNodes[4].value;
return node.childNodes[1].value;
},
focus:function(node){
var a=node.childNodes[1]; a.select(); a.focus();
}
}

scheduler.config.lightbox.sections=[
{ name:“userselect”, height:30, type:“select”, options: scheduler.serverList(“m_en”), script_url: ‘php/events_multiselect_options.php’, map_to:“m_en”},
{ name:“fruitselect”, height:30, type:“my_editor”, map_to:“sj_id”},
{ name:“time”, height:72, type:“calendar_time”, map_to:“auto”},
{ name:“abolishevent”,height:0,type:“multiselect”,options: scheduler.serverList(“al_id”),map_to:“al_id”,button:“recurring”},
{ name:“location”, height:50, map_to:“rec_date”, type:“my_editor”},

	]

please help me~~~~

Hello,

Please check the following thread: viewtopic.php?f=6&t=18304&p=57307&hilit=jquery#p57307

Kind regards,
Ilya

I have reference that example

My code now is

scheduler.form_blocks["my_editor"] = { render: function (sns) { return "<div class='dhx_cal_ltext' style='height:40px;'><label for='ap'>Search: </label><input id='ap'>&nbsp;</div>"; }, set_value: function (node, value, ev) { node.childNodes[1].value = value || ""; }, get_value: function (node, ev) { return node.childNodes[1].value; }, focus: function (node) { var a = node.childNodes[1]; a.select(); a.focus(); } }

scheduler.config.lightbox.sections = [ { name: 'fruitselect', map_to: 'sj_id', type: 'my_editor' } ]

[code]scheduler.attachEvent(“onLightbox”, function(event_id){
var a1;
jQuery(function() {
var options = {
serviceUrl: ‘auto_search.php’,
width: 620,
multiple: true,
minChars: 1,
delimiter: /(,|;)\s*/,
//deferRequestBy: 0, //miliseconds
//params: { country: ‘Yes’ },
onSelect: function(value,data){ $(’#s_condition’).val(value);},

//onSelect: function(value, data){ $(’#cus_id’).val(data);Validate(data); },

noCache: false //set to true, to disable caching

};

a1 = $(’#s_condition’).autocomplete(options);

$(’#navigation a’).each(function() {
$(this).click(function(e) {
var element = $(this).attr(‘href’);
$(‘html’).animate({ scrollTop: $(element).offset().top }, 400, null, function() { document.location = element; });
e.preventDefault();
});
});

});
});[/code]

In

<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="../js/jquery.autocomplete.js"></script> <link href="../css/in_style.css" rel="stylesheet" type="text/css" media="screen"/>

But it still not work…
What can I do?

This is wrong

render: function (sns) { return "<div class='dhx_cal_ltext' style='height:40px;'><label for='ap'>Search: </label><input id='ap'>&nbsp;</div>"; },

This is the right

render: function (sns) { return "<div class='dhx_cal_ltext' style='height:40px;'><label for='s_condition'>Search: </label><input id='s_condition'>&nbsp;

hello,
I am working on MVC.I tried the example but its not working.

public class HomeController : Controller
{
public ActionResult loadpatient(string term)
{
var patients = (from pa in db.Patients

                        select new
                        {
                            key = pa.PatientId,
                            label = pa.FirstName.Trim(),
                            value = pa.FirstName.Trim()

                        }).ToList();

   
        return Json(patients, JsonRequestBehavior.AllowGet);
    }

}
This is my class with method .In script i called this method as

serviceUrl: '@Url.Action("/Home/loadpatient")’,

the script is not calling methods.

Please help me.

Hi,
please provide some kind of demo, so we could check the issue