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
Screen name:
mayron.cachina
mayron.cachina's Profile
1
Posts
1
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
get DOM other page
[2Replies]
08-Mar-2013 09:18 PM
Forum:
jQuery Mobile
Hello people,
I have a problem to display a dialog and try to get an element of another page already used.
file1.html
<div data-role="page" id="photo-click" class="page" style="background-color: #FFF">
...
<div data-role="content" data-iscroll class="iscroll-wrapper">
<div class="iscroll-scroller">
<img id="largeImage" src="images/imagem.jpg" class="image-photo" />
...
</div><!-- /content -->
this is the structure of file.html, I spend an element via the id for example $ ("largeImage"), but it returns me "null"
<div data-role="page" id="photo-choice" >
<div data-role="header" class="hn-wrapper ui-bar-b">
<h3 style="font-size: 11px !important">
SELECIONE A OPÇÃO
</h3>
</div><!-- /header -->
<div data-role="content">
<div style="margin-left:-7px">
<img src="images/btn-cam.png" onclick="capturePhotoEdit();">
<img src="images/btn-library.png" onclick="getPhoto(pictureSource.PHOTOLIBRARY);">
</div>
</div><!-- /content -->
</div><!-- /page -->
this is the java script I am using ...
function onPhotoURISuccess(imageURI) {
console.log("Seleciona imagem...");
imagemClick = imageURI;
var largeImage = document.getElementById('largeImage');
/*
largeImage.style.display = 'block';
largeImage.width = 120;
largeImage.height = 118;
largeImage.src = imageURI;
*/
console.log(imageURI);
$( "#photo-choice").dialog('close');
console.log('close dialog');
}
or using document.getElementById ('largeImage'); works ...
Can anyone help me with that?
thank you!
«Prev
Next »
Moderate user : mayron.cachina
Forum