button doen't call a function when clicked

2 posts, 0 answers
  1. Rozen
    Rozen avatar
    13 posts
    Member since:
    Aug 2013

    Posted 10 Oct 2013 Link to this post

    -----------------Index1.html-----------------

    <div data-role="view" id="tabstrip-ETM5200SC-L" data-title="ETM5200SC-L" data-layout="tabstrip-appearance">

         <ul data-role="listview" data-style="inset">

                    <br/>
            <li>
                <a href="index2.html">Go to Live View</a>
            </li>
     
            </ul>
        </div>
       
    The below code call the caputre function when the button is clicked. Code works fine and call the function when testing in new project 1 but when i try to link from index1.html to index2.html the button in index2.html onclick event handler doesnt call the function in new project 2 (combile of index1.html and index2.html). Any help will be greatly  appreciated.

    ----------------index2.html------------
    <!DOCTYPE html>
    <html>
        <head>
            <title>Select Option</title>
            <meta charset="utf-8">
             
          
            <script type="text/javascript" charset="utf-8" src="cordova.js"></script>
            <script type="text/javascript" charset="utf-8" src="scripts/main.js"></script>
            <script type="text/javascript" charset="utf-8" src="scripts/main2.js"></script>
            <script src="scripts/kinetic-v4.7.0.min.js"></script>
            <script type="text/javascript" charset="utf-8" src="scripts/overlay.js"></script>

        </head>
        
        <body>
          
            <div class="content">

                <div id="container" >
                    <img style="display:none;" id="smallImage" src="" />
                </div>

                <div class="action-area ch50">
                   <button class="button dh" id="capturePhotoButton" onclick="capturePhoto();">ViewAppliance</button>
                    
                </div>
                
                <div class="separator"></div>
                
            </div>
            <footer class="footer">
                <div></div>
            </footer>     
        </body>
    </html>
            

  2. Steve
    Admin
    Steve avatar
    10941 posts

    Posted 14 Oct 2013 Link to this post

    Hi Rozen,

    Most likely we do not have all the info at hand as we fail to understand what is the problem with the given code. Please create a sample jsfiddle app that exhibits the problem, so we can advise you accordingly.

    Regards,
    Steve
    Telerik
    You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
    Looking for tips & tricks directly from the Icenium team? Check out our blog!
    Share feedback and vote for features on our Feedback Portal.
Back to Top