Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9178967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:40:47+00:00 2026-06-17T17:40:47+00:00

Hi i ve got a problem with my phonegap application so here is my

  • 0

Hi i ve got a problem with my phonegap application

so here is my html code

<body>
<script>
window.onload = function() {

    document.getElementById("a_next").onclick = function(e) {
        e = e || window.event;
        var els = document.getElementsByTagName("input"),
            i;
        for (i=0; i < els.length; i++) {
            if (!els[i].checked) {
                alert("Not all points on your checklist, are checked!");
                return false;
            }
        }
    };
};
</script>

<div id="topbar">
<div id="title">
        Walk Around Check</div>
    <div id="leftnav">
    <a href="index_aerosoft.html">Home</a><a href="katana_checklist_all.html">Overview</a></div>
    <div id="rightnav">
        <a href="katan_checklist_beforeenginestarting.html"id="a_next">Next</a></div>
</div>
<div id="content">
        <ul class="pageitem">
            <li class="radiobutton"><span class="name">Electronic List - check all items</span>
            <input name="1" type="radio" value="other" /></li>
        </ul>

</div>
<div id="footer">
        <!-- Support iWebKit by sending us traffic; please keep this footer on your page, consider it a thank you for my work :-) -->
    <a class="noeffect" href="katana_checklist_walaroundcheck.html">Reset Checklist</a><br /><br />
    <a class="noeffect" href="http://www.aerosoft.com">Aerosoft</a></div>

</body>

So i want to add or replace the javascript alert with a phonegap alert

document.getElementById("a_next").onclick = function(e) {
            e = e || window.event;
            var els = document.getElementsByTagName("input"),
                i;
            for (i=0; i < els.length; i++) {
                if (!els[i].checked) {
                    alert("Not all points on your checklist, are checked!");
                    return false;
                }
            }
        };

So i would in

<head>
 function showAlert() {
        navigator.notification.alert(
            'You are the winner!',  // message
            alertDismissed,         // callback
            'Game Over',            // title
            'Done'                  // buttonName
        );
    }
</head>

And let the alert appeal next to the javascript alert

<body>
<script>
window.onload = function() {

    document.getElementById("a_next").onclick = function(e) {
        e = e || window.event;
        var els = document.getElementsByTagName("input"),
            i;
        for (i=0; i < els.length; i++) {
            if (!els[i].checked) {
                alert("Not all points on your checklist, are checked!");
                showAlert();
                return false;
            }
        }
    };
};
</script>

This dont work and crashs my hole check for “all are checked” anyone could help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T17:40:48+00:00Added an answer on June 17, 2026 at 5:40 pm
    window.onload = function() {
        document.getElementById("a_next").onclick = function() {
            document.getElementsByTagName("input").each(function () {
                if (!jQuery(this).checked) {
                    alert("Not all points on your checklist, are checked!");
                    showAlert();
                    return false;
                }
            });
        };
    };
    

    Versuchs mal damit
    Nein der andere Code sollte da nichts blocken.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to ask about strcpy. I got problem here. Here is my code:
Hello I got problem with scroll on my grid. Here is the code (nothing
I've got a problem in Javascript using Barcodescannerplugin for Phonegap in an Android Application.
i got problem with my LINQ to format date. Here is code var resultCustomer
My problem is really weird. I'm working in phonegap. I got a function called
i got problem with my code and hopefully someone able to figure it out.
I've got problem for my application. I want to start connectbot from my application
I got problem with Doctrine. I add this lines in my application.ini: includePaths.model =
ive got problem with update. here is mysql query.log 25474 Query UPDATE db_mail4u.dMailerQueue SET
I got problem with initialization of application. I create jsfiddle which simply works on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.