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


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

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

                <a href="index2.html">Go to Live View</a>
    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.

    <!DOCTYPE html>
            <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>

            <div class="content">

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

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

  2. Steve
    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.

    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