get DOM other page

get DOM other page

    Hello people,

    I have a problem to display a dialog and try to get an element of another page already used.

    file1.html
    1. <div data-role="page" id="photo-click" class="page" style="background-color: #FFF">
    2.          
    3.       ...
    4.          <div data-role="content" data-iscroll class="iscroll-wrapper">
    5. <div class="iscroll-scroller">
    6.   
    7.     
    8.    <img id="largeImage" src="images/imagem.jpg" class="image-photo"  />
    9.    ...
    10. </div><!-- /content -->
    this is the structure of file.html, I spend an element via the id for example $ ("largeImage"), but it returns me "null"
    1. <div data-role="page" id="photo-choice" >
    2.     <div data-role="header" class="hn-wrapper ui-bar-b">
    3.         <h3 style="font-size: 11px !important">
    4.             SELECIONE A OPÇÃO
    5.         </h3>
    6.     </div><!-- /header -->
    7.     <div data-role="content">
    8.         
    9.         <div style="margin-left:-7px">
    10.             <img src="images/btn-cam.png" onclick="capturePhotoEdit();">
    11.                 <img src="images/btn-library.png" onclick="getPhoto(pictureSource.PHOTOLIBRARY);">
    12.                     </div>
    13.         
    14.     </div><!-- /content -->
    15.     
    16. </div><!-- /page -->
    this is the java script I am using ...
    1. function onPhotoURISuccess(imageURI) {
    2.     
    3.     console.log("Seleciona imagem...");
    4.     imagemClick = imageURI;
    5.     
    6.     var largeImage = document.getElementById('largeImage');
    7.     /*
    8.     largeImage.style.display = 'block';
    9.     
    10.     largeImage.width = 120;
    11.     largeImage.height = 118;
    12.     
    13.     largeImage.src = imageURI;
    14. */
    15.     console.log(imageURI);
    16.     
    17.     $( "#photo-choice").dialog('close');
    18.     
    19.     console.log('close dialog');
    20.     

    21. }
    or using document.getElementById ('largeImage'); works ...

    Can anyone help me with that?
    thank you!