This is a migrated thread and some comments may be shown as answers.

button doen't call a function when clicked

1 Answer 39 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rozen
Top achievements
Rank 1
Rozen asked on 11 Oct 2013, 01:16 AM
-----------------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>
        

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 14 Oct 2013, 02:23 PM
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.
Tags
Report a bug
Asked by
Rozen
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or