javascript - Problem with scripts in website -
here problem: when log website instead of taking me last page was, after type password , login shows message below ....
this xml file not appear have style information associated it. document tree shown below.
<!-- uzzscript type="text/javascript"> sendfrm549298=function(){ var o=$('#frmlg549298')[0],pos=_ugetoffset(o),o2=$('#blk549298')[0]; document.body.insertbefore(o2,document.body.firstchild); $(o2).css({top:(pos['top'])+'px',left:(pos['left'])+'px',width:o.offsetwidth+'px',height:o.offsetheight+'px',display:''}).html('<div align="left" style="padding:5px;"><div class="mywinload"></div></div>'); _upostform('frmlg549298',{type:'post',url:'/index/sub/',error:function() { $('#blk549298').html('<div align="left" style="padding:10px;"><div class="mywinloadsf" title="Невозможно выполнить запрос, попробуйте позже"></div></div>'); _uwnd.alert('<div class="mywinerror">Невозможно выполнить запрос, попробуйте позже</div>','',{w:250,h:90,tm:3000,pad:'15px'}); settimeout("$('#blk549298').css('display','none');",'1500'); } }); } </script>-->
the code you've pasted in question xml document, presumably generated login process.
it intended sent browser part of ajax request, way describe it, sounds if being loaded new page.
this indicates me when post login details, isn't being posted using ajax, instead being posted using regular html form submit.
the actual error message ("this xml file not appear have style information...") standard message web browser give when loads xml document doesn't know how handle. tells me it's being displayed new page rather loaded via ajax.
if had been loaded via ajax intended, xml data have been fed javascript code on page, , never have been displayed in way.
you need examine code around form , submit button see why posting html form submit instead of via ajax. haven't given form code (or told ajax framework you're using), can't give more clues @ point, problem lies.
i hope helps.
Comments
Post a Comment