git-svn-id: https://svn.code.sf.net/p/freetel/code@686 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 13 Sep 2012 09:23:12 +0000 (09:23 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 13 Sep 2012 09:23:12 +0000 (09:23 +0000)
mini-asterisk-gui2/devel notes.txt
mini-asterisk-gui2/phones.html
mini-asterisk-gui2/phones.js
mini-asterisk-gui2/todo notes

index 32ecf1e3c9fc7f2f8a95251bf3059fbc565ae20c..7515606d0a829230a338fd44a04646994aba2639 100644 (file)
@@ -19,7 +19,9 @@ Packages
        svn             version control
        openssh         communication with ip04
        fping           used to determine internet connection
-       chrome          has a very useful debugger .... ctrl-shift-i
+       chrome          built-in debugger .... ctrl-shift-i
+                       install validator extension
+       firefox         install extensions firebug debugger and html validator
        lighttpd        minimal webserver
        asterisk-1.4.11 when testing code around asterisk -r calls
                        needs to be installed (we need access to the conf files)
index 7011a042c7145405c085e6d6e914776c15b46b8e..9bf458530a45941ea8095dc561245a82a3102114 100644 (file)
@@ -1,10 +1,10 @@
-<!DOCTYPE html>
-<html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
 <title>Mini Asterisk - Phones</title>
 
-<link rel="stylesheet" type="text/css" href="ministyle.css">
+<link rel="stylesheet" type="text/css" href="ministyle.css" />
 <link rel="stylesheet" href="tooltip.css" type="text/css" />
 <script type="text/javascript" src="minicommon.js"></script>
 <script type="text/javascript" src="tooltip.js"></script>
 
 <body onload="initialise()">
 
-  <table align="center" width=800>
+  <table width="800">
   <tr>
     <td><div id="menu"></div></td>
     <td><div id="phones_table"></div></td>
     <td>
 
-       <input name=update_recept type="button" style="width:100%" value="update reception" onClick="onClickUpdateReception()">
-       <!input name=update_out type="button" style="width:100%" value="update outgoing" onClick="onClickUpdateOutgoing()">
+       <input name="update_recept" type="button" style="width:100%" value="update reception" onClick=onClickUpdateReception() />
+       <!--input name=update_out type="button" style="width:100%" value="update outgoing" onClick="onClickUpdateOutgoing()"-->
 
     </td>
   </tr>
index cc2486f751f9c36cabfa6bf2ca249d9db730b543..a677f71b3fcdc3bc120b233bc954f0e0f7f36648 100644 (file)
@@ -48,7 +48,7 @@ function initialisePage() {
            html += "<td>" + analog_ext[i] + "</td>" + "<td>" + "Analog Phone" + "</td>";
            html += "<td>Port" + i  + "</td>";
 
-            html += "<td>" + '<img src="tick.png" />' + "</td>";
+            html += "<td>" + '<img src="tick.png" alt="tick" />' + "</td>";
 
             // the reception checkbox code
            html += "<td>" + '<input name="selected_in[]" type="checkbox" ' ;     
@@ -81,7 +81,7 @@ function initialisePage() {
            html += "<td>" + j + "</td>" + "<td>" + "IP Phone" + "</td>";
            html += "<td>" + ip_ext[j] + "</td>";
 
-            html += "<td>" + '<img src="tick.png" />' + "</td>";
+            html += "<td>" + '<img src="tick.png" alt="tick" />' + "</td>";
 
             // the reception checkbox code
            html += "<td>" + '<input name="selected_in[]" type="checkbox" ' ;
@@ -132,7 +132,7 @@ function initialisePage() {
             html += "<tr>";
            html += "<td>" + "0" + "</td>" + "<td>" + "Analog Phone" + "</td>";
            html += "<td>Port" + i + "</td>";
-            html += "<td>" + '<img src="tick.png" />' + "</td>";
+            html += "<td>" + '<img src="tick.png" alt="tick" />' + "</td>";
 
             // the outgoing radiobox code
 /*         html += "<td>" + '<input name="selected_out[]" type="radio" ' ;
index 7429830a0b501c018deae63830f5a89b9f672464..7aa9f5376bb4539839a6f855e4cda687b5f37828 100644 (file)
@@ -17,14 +17,30 @@ gui2 install script fixes
 
 Functionality work
 
-3. firefox broken update reception button
+3. firefox  update reception button broken
+---------------------------------------------
+   Installed firebug debugger
+   Single step thru reception update code
+   phones.js line 209
+   var total = document.phones.elements['selected_in[]'].length;
+   appears to fail and crash out silently.
+   I cant see any phones element in the document
+
+   Start using html validator at http://validator.w3.org/check
+
+   Best practices at http://sixrevisions.com/web-standards/20-html-best-practices-you-should-follow/
+      Close my tags !
+         <img src="images/sample.jpg" alt="sample" />
+
    check internet explorer too.
 
 4. network page not working
+------------------------------
    Also how fast can it detect the internet after change in gateway
    Try to break internet with dns or gateway changes.
 
 5. Outbound calls....
+-------------------------
 
    Groups of people assigned to different outbound
    Work with dialplans
@@ -36,6 +52,7 @@ Functionality work
    Need to have a page where we set up groups of users.
 
 6. ntp testing
+--------------------
    try getting ntpclient rather than ntp?
    try setting TZ in /etc/init.d/asterisk already done...just need reboot
    web page for setting timezone (radio button and apply checkbox?)