jquery mobile - #&ui-state=dialog appear automatically when call popup and make error when refresh -
i strat 192.168.1.102:8080 call server url change into...
http://192.168.1.102:8080/#&ui-state=dialog
instead of
http://192.168.1.102:8080
which make error if refresh browser. don't know why happen that???
here code call popup start first username
window.onload = function(){ $('#popuplogin').popup("open","slidedown"); }
here popup call
<!--popup in start || note** data-dismissible='false' = prevent popup close when click outside --> <div data-role="popup" data-dismissible='false' id="popuplogin" data-theme="a" data-overlay-theme="a" class="ui-corner-all ui-popup ui-body-a ui-overlay-shadow" aria-disabled="false" data-disabled="false" data-shadow="true" data-corners="true" data-transition="slidedown" data-position-to="origin"> <form id="startdialog" onsubmit="startactivity()"> <div style="padding:10px 20px;"> <h3>express feeling</h3> <!--id = username, geofeeling--> <input required type="text" id="username" value="" placeholder="username" data-theme="a" class="ui-input-text ui-body-a ui-corner-all ui-shadow-inset"> <textarea required id="geofeeling" value="" placeholder="feeling..." style="height: 70px" data-theme="a" class="ui-input-text ui-body-a ui-corner-all ui-shadow-inset"></textarea> <button type="submit" data-theme="b" >log in</button> </div> </form> </div> <!--------------------------------------------------end of popup --------------------------------------->
and after user completed form , submit form call function start activity.
popup box disappear.
i don't know part wrong because @ beginning
i can refresh browser , popup re-open again (re-start activity)
but url has change (because of what??) after develop can't refresh anymore
do have suggestion or somethings ???
please advise.
Comments
Post a Comment