Vanessa Dale
Vanessa Dale

Reputation: 1

Jquery Mobile doesn't change URL when new page loads

On submit my form variables are written to the database and the page changes to the next page BUT the address bar doesn't change. ie it still says mobile2.asp even though the view is mobile3.asp. What am I missing?

<head> 
    <title>mysite</title> 
    <meta name="viewport" content="width=device-width, initial-scale=1"> 
    <link rel="stylesheet" href="include/js/jquery.mobile-1.2.0.min.css" />
    <link rel="stylesheet" href="css/themes/mycss.css" />
    <script src="include/js/jquery.js"></script>
    <script src="include/js/jquery.mobile-1.2.0.js"></script>

<%
dim EN
EN           = xss_Clean(Request.Form("EN"))
If Request.ServerVariables("REQUEST_METHOD")= "POST" Then
    write_element "EN", EN
    response.redirect "mobile3.asp"
End if
%>
</head> 

<div data-role="content">
        <form action="mobile2.asp" method="post">
        <div id="entries" class="list" data-theme="a">
            <label for="EN" class="select"><h1 class="header">Number required</h1></label>    
    <select name="EN"> 
       <option value="1">1</option>
       <option value="10">10</option> 
       <option value="15">15</option> 
       <option value="20">20</option></select>
        </div>
<button type="submit" data-theme="b" name="submit" value="submit-value" class="ui-btn-hidden" aria-disabled="false" data-ajax="false">Proceed</button>
     </form>
    </div>

Upvotes: 0

Views: 504

Answers (1)

JustinReid
JustinReid

Reputation: 192

Maybe the closing quote on the redirect?

response.redirect "mobile3.asp"

Upvotes: 1

Related Questions