English 中文(简体)
Jquery Webservice in ASP. NET
原标题:Jquery Webservice in ASP.NET

我正与协会合作。 NET 4.0框架。 在1个网页上,我必须使用Jquery称呼网络服务。

     var serviceurl =  http://www.websitename.com/webservicename ;
         $.ajax({
                type: "POST",
                url: serviceurl +  WebServiceName ,
                data: "{ Parameters :  " + parameter+ " }",
                contentType: "application/json; charset=utf-8",
                dataType: "json",
                success: function (msg) {
                    ShowAfterSuccess(msg);
                },
                error: AjaxFailed
            });

It works fine, if i mention url as "http://www.websiteName.com" but when i put URL as "websitename.com" it doent call webservice. but it works well only in Google Chrome with "websiteName.com" I dont knw what is the issue with that....whether there is problem in my webservice calling or in URL..

问题回答




相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签