Ajax taklifi Xato yibni aniqlanmagan

Salom, men AJAX uchun yangi bo'lganman. Men ushbu qo'llanmani ishlashga harakat qilyapman. Xato olishda davom etaman: Microsoft JScript ish vaqti xatosi: 'ylib' aniqlanmagan

This is exactly what I'm trying to do: http://www.webonweboff.com/widgets/ajax/ajax_suggest.aspx#API

Kod:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ajaxServer.aspx.cs" Inherits="DynamicSearch.ajaxServer" %>





    <title></title>
    <script src="Scripts/ajaxtcr.js" type="text/javascript"></script>
    <script src="Scripts/x_core.js" type="text/javascript"></script>
    <script src="Scripts/y_AjaxSuggest.js" type="text/javascript"></script>
    <script src="Scripts/y_util.js" type="text/javascript"></script>
    <script src="Scripts/ylib.js" type="text/javascript"></script>


<!--[if IE 6]>


    <div>
    Suggest textbox <input type="text" id="Text1" name="txtInput" />


Another one textbox <input type="text" id="Text2" name="txtInput2" />
</div> <script type="text/javascript"> var suggest, suggest2; window.onload = MyOnLoad; function MyOnLoad() { //first suggestion object (use default options) suggest = new ylib.widget.AjaxSuggest('txtInput', 'ajaxServer.aspx?action=suggest'); //second suggestion object (use custom options) var options = ylib.widget.AjaxSuggest.DefaultOptions(); options.maxSuggestions = 5; options.params = ["action=suggest2"]; options.expectValueAndText = true; options.useValueNotText = true; options.showNoMatchMessage = true; options.useTimeout = false; suggest2 = new ylib.widget.AjaxSuggest('txtInput2', 'ajaxServer.aspx', options); } </script> </form> </body> </html>

Men noto'g'ri ish qilyapman? Oldindan rahmat.

0

1 javoblar

Skriptni o'rnatilishiga ishonch hosil qilish uchun Firebug'da yoki shunga o'xshash vositada tekshiring. Bu HTML fayli bilan bir xil darajada Scripts katalogida bo'lishi kerak. Yoki src xususiyatlarini rostlashingiz mumkin.

0
qo'shib qo'ydi
Javascript UZB
Javascript UZB
99 ishtirokchilar

@js_uzb @vuejs_uz @react_uz @nodejs_uz @angular_uz @ngTashkent @yiiframework_uz @laravel_uz @linux_uzbek @python_uz @swift_uzb —————— @uzdevgroup @UzGeeksGroup ——— @UzDev_Jobs @jobs_uzb