Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

Getting NS_ERROR_DOM_BAD_URI while JQuery Ajax -


i using jquery ajax.

below jquery code:

 $.ajax({           type: "post",         url: "http://stackoverflow.com/login.aspx",  // send login info page         data: str,           success: function(result)         {               //$("#logindetails").ajaxcomplete(function(event, request, settings)            // {                 // show 'submit' button             $('#loginbutton').show();              // hide gif spinning rotator             $('#ajaxloading').hide();                var reslength = $.trim(result).length;              if(reslength!=0)             {                  var arr = result.split(",");                 var fname = arr[0];                 var lname = arr[1];                 var activecardno = arr[2];                 var multipletier = arr[3];                 var activestatus = arr[4];                 var access = arr[5];                   if(access!='' && access!='undefined') // login ok?                  {                        $('.validatetips').hide();                     var login_response = '<div id="logged_in">' +                      '<div style="width: 350px; float: left; margin-left: 80px;">' +                       '<div style="width: 40px; float: left;">' +                      '<img style="margin: 22px 0px 10px 0px;" align="absmiddle" src="system/images/ajax-loader.gif">' +                      '</div>' +                      '<div style="margin: 24px 0px 0px 10px; float: right; width: 300px;">'+                       "you logged in! <br /> please wait while you're redirected...</div></div>";                        $('#loginbutton').hide();                     $('#closebtn').hide();                     $('#divmember').text(fname +' '+ lname);                     $('#spnskywardsno').text(activecardno);                     $('#spntierstatus').text(multipletier);                     $("#ui-dialog-title-skywardslogin").text(getdatafromresourcefile('pleasewait'));                      $('#divsuccesslogin').html(login_response);                     $('#divsuccesslogin').show();                     $('#logindetails').hide();                     //$(this).html(login_response); // refers 'status'                      // after 3 seconds redirect                      settimeout(closedialog, 3000);                    }                 }             else// error?              {                    var login_response = getdatafromresourcefile('invalidusername');                  $('.validatetips').html(login_response);              }       //});         }        });   

the above code works perfect if going http request, example if on http://stackoverflow.com , have above call login page i.e. http://stackoverflow.com/login.aspx works fine, when go https request example https://stackoverflow.com/login.aspx giving "ns_error_dom_bad_uri", please suggest how can fix issue!


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -