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
Google Docs
Each Attachment size should not exceed 1.0 MB.
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
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
jQuery Mobile
alkiviadis
programmaticaly see which page is shown
in
jQuery Mobile
•
9 years ago
Hello all,
is there a way to see which page is being shown to the user?
I need it so i can handle certain events (e.g refresh).
I'm using the latest stable version of jqm.
Thank you in advance for your time.
Alkiviadis
1
Reply
Replies(3)
webdpro
Re: programmaticaly see which page is shown
9 years ago
You can use somthing like this
$('[data-role=page]').live('pageshow', function (event, ui) {
currentPage = ($(this).data('title'));
}
so the pageshow runs when the page is ready, so you can grab the title of the page and run your function as you need
alkiviadis
Re: Re: programmaticaly see which page is shown
9 years ago
@webdpro that's great thinking, never would have thought that. But i'll go with Assafd's answer, i didn't know that was a property for that, and it's exactly what i needed. Thank you both for your time!
Leave a comment on webdpro's reply
AssafD
Re: programmaticaly see which page is shown
9 years ago
yoc can use $.mobile.activePage this should give you the current page object
Leave a comment on AssafD's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to alkiviadis's question
Top
Reply
{"z8322053":[14737000003082437,14737000003082462],"z842511":[14737000003083203],"z3036497":[14737000003083201]}
Statistics
3
Replies
1842
Views
0
Followers
Tags
Cancel
page
latest
stable
shown
Actions
Permalink