Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Screen name:
kalsi.ishmeet
kalsi.ishmeet's Profile
1
Posts
0
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Ideas
Problems
Expanded view
List view
Private Message
Getting "Resource failed to load" while redirecting from one page to another ??
[1Reply]
16-Nov-2012 05:00 AM
Forum:
jQuery Mobile
index.html :
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Popup</title>
<link rel="stylesheet" href="../css/jquery.mobile-1.2.0-alpha.1.css" />
<link rel="stylesheet" href="../css/jqm-docs.css"/>
</head>
<script>
function tosubmit() {
var JSONObject = {
"response": {
"auth": "N"
}
} ;
var mytext = JSONObject.response.auth;
// Storing the value above into localStorage
localStorage.setItem("mytext", mytext);
alert(mytext);
return true;
}
</script>
<script src="../js/jquery-1.7.1.min.js"></script>
<script src="../js/jqm-docs.js"></script>
<script src="../js/jquery.mobile-1.2.0-alpha.1.js"></script>
</head>
<body>
<div data-role="page" class="type-interior">
<form name="myform" onsubmit="tosubmit();" action="/confirm.html">
<div data-role="content" class="ui-body">
<div class="content-primary">
<div data-role="fieldcontain">
<label for="username">Username :</label>
<input type="text" name="username" id="username"/>
</div>
<div data-role="fieldcontain">
<label for="password">Password :</label>
<input type="password" name="password" id="password"/>
</div>
<input type="submit" value="Submit">
</div><!--/content-primary -->
</div><!-- /content -->
<div data-role="footer" class="footer-docs" data-theme="c">
<p>© 2012 jQuery Foundation and other contributors</p>
</div>
</form>
</div><!-- /page -->
</body>
</html>
and confirm.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Popup</title>
<link rel="stylesheet" href="../css/jquery.mobile-1.2.0-alpha.1.css" />
<link rel="stylesheet" href="../css/jqm-docs.css"/>
<script>
// Called on body's `onload` event
function init() {
// Retrieving the text input's value which was stored into localStorage
var mytext = localStorage.getItem("mytext");
// Writing the value in the document
document.write("passed value = "+mytext);
}
</script>
<script src="../js/jquery-1.7.1.min.js"></script>
<script src="../js/jqm-docs.js"></script>
<script src="../js/jquery.mobile-1.2.0-alpha.1.js"></script>
</head>
<body onload="init();">
</body>
</html>
«Prev
Next »
Moderate user : kalsi.ishmeet
Forum