Loading ...
Sorry, an error occurred while loading the content.

RE: [Easy400Group] RE: problem with Javascript

Expand Messages
  • Kevin Turner
    Great! Good luck. From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of mike_smith@rgcresources.com Sent: 18 September 2013
    Message 1 of 18 , Sep 18, 2013
    • 0 Attachment

      Great!  Good luck.

       

      From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of mike_smith@...
      Sent: 18 September 2013 20:06
      To: Easy400Group@yahoogroups.com
      Subject: [Easy400Group] RE: problem with Javascript

       

       

      Kevin, 

      I think you nailed it.  

       

      I first thought you were referring to the tables that created the buttons and so forth.  So i took all of these out and still had the same problem.  I then started focusing on the primary table and was able to spot the embedded tables.   I cleaned that up and fixed the javascript as you suggested and it started working.   

       

      Thanks for being patient and for wading through the garbled mess when i post.  I don't know what is causing that. 



      --- In easy400group@yahoogroups.com, <kevin.turner@...> wrote:

      Also, while I remember it, you are not really comparing like with like.  In the simple examples that work you only have one table on the page.  In the output from your CGI program you have tables embedded in tables (which I have always considered to be syntactically wrong).  I expect the embedded table situation is unexpected by the author of sortable.js and is throwing the login out completely.

       

      For example, you have something like this:

       

      <table>

      <tr>

         <td>

            <table>

            </table>

        </td>

      </tr>

      <tr>

         <td>

            <table>

            </table>

        </td>

      </tr>

      </table>

       

      From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Kevin Turner
      Sent: 18 September 2013 09:47
      To: Easy400Group@yahoogroups.com
      Subject: RE: [Easy400Group] RE: problem with Javascript

       

       

      Actually, when I say it “works” I mean it doesn’t crash and when you click the headings something appears to happen. Whether or not it is what you want to happen I don’t know.

       

      From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Kevin Turner
      Sent: 18 September 2013 09:43
      To: Easy400Group@yahoogroups.com
      Subject: RE: [Easy400Group] RE: problem with Javascript

       

       

      Mike

       

      The thing about $top is a red herring.

       

      The problem appears to be that your table has simple text nodes in it, and sortable.js does not cope very well with those.

       

      For example, the first row looks like this:
      <tr valign="middle">

      <td align="center">

      <input type="radio" name="Iselect" value="1"> </td>

      <td align="left">RG </td>

      <td align="left">MONDAY </td>

      <td align="left">1 </td>

      <td align="left">VAULT </td>

      <td align="center">20130610 </td>

      <td align="center">ACTIVE </td>

      <td align="center">29 </td>

      </tr>

       

      The second cell is just a text node, and sortable.js is trying to call the getAttribute method on the object – that doesn’t work.

       

      If I change line 211 of sortable.js from this:

      if (node.getAttribute("sorttable_customkey") != null) {

      to this

      if (node.getAttribute && node.getAttribute("sorttable_customkey") != null) {

       

      it works.

       

      Rgds

      Kevin

       

       

      From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of Kevin Turner
      Sent: 18 September 2013 08:38
      To: Easy400Group@yahoogroups.com
      Subject: RE: [Easy400Group] RE: problem with Javascript

       

       

      Mike

       

      As you can see below, your messages are coming through as a jumble of text and html but I will see if I can fathom it out.

       

      Kevin

       

      From: Easy400Group@yahoogroups.com [mailto:Easy400Group@yahoogroups.com] On Behalf Of mike_smith@...
      Sent: 17 September 2013 13:43
      To: Easy400Group@yahoogroups.com
      Subject: [Easy400Group] RE: problem with Javascript [3 Attachments]

       

       

      [Attachment(s) from mike_smith@... included below]


      <p>Ok, Kevin, I'm attaching the source after running the CGI program.   </p><p><br></p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Also, the line# of the error showing up in the console is line 221 of sorttable.js.  </p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">I'm also including mike1.html and mike2.html</p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">THe only difference between the 2 is the $top. </p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Mike1 will sort.  Mike2 will not.  Somehow that seems to be the crux of the problem, but what do i know :)</p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br></p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Thanks again for the help.   </p> <div class="ygroups-quoted"><br><br>--- In easy400group@yahoogroups.com, <kevin.turner@...> wrote:<br><br><div id="ygrps-yiv-1720982227">

      <div>The first thing that puzzles me is how the JavaScript file is getting loaded. I assume it is in cgidev/js but the HTML doesn't seem to specify any path at all - it just says sorttable.js but I would expect something like cgidev/js/sorttable.js - it depends
      on what your document root is in the Apache config.</div>
      <div><br>
      </div>
      <div>Can you see it in the "source" tab in the developer tools?</div>
      <div>The console will also tell you exactly where that error has occurred.</div>
      <div><br>
      </div>
      <div>By cgi output I simply mean the page source on he browser after it has been delivered by your cgi program (as opposed to a simple test with WDSc).<br>
      <br>
      Sent from my iPad</div>
      <div><br>
      <blockquote><span class=""> On 16 Sep 2013, at 21:13, "<a rel="nofollow" target="_blank" href="mailto:mike_smith@...">mike_smith@...</a>" <<a rel="nofollow" target="_blank" href="mailto:mike_smith@...">mike_smith@...</a>> wrote:<br>
      <br>
      </span></blockquote></div>
      <blockquote type="cite">
      <div><span style="display:none;"> </span>
      <div id="ygrps-yiv-1720982227ygrp-text">

      <p>Kevin</p>
      <p>Thanks for replying.  </p>
      <p><br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      First the directory structure for the Script is . </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      Root</p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
         +CGIDEV</p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
              +JS</p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
         +CIGDEVEXTHTML</p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      Secondly,let me try to i have been testing</p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      using WDSC and changing source and doing previews.   I originally was testing my HTML from the server, but after i couldn't get it working i started playing with this simple HTML file that worked from WDSC.  </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      You are correct the $top does not show when running, but as soon as i put it in the source it causes the script to quit working.  </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      I'm not sure of everything in the script, buts i know its primary purpose is to allow me to sort the table by clicking on the headings.  </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      If i run the cgi program using the chrome console i do get an error on the script.   </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <span style="color:rgb(255, 0, 0);font-family:Consolas, 'Lucida Console', monospace;font-size:12px;white-space:pre-wrap;">Uncaught TypeError: Object #<Text> has no method 'getAttribute'</span><span style="color:rgb(255, 0, 0);font-family:Consolas, 'Lucida Console', monospace;font-size:12px;white-space:pre-wrap;">
      </span><br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      I'm not sure what this means or why the script works on my simple html page.  </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      This is a crud application, so i'm sure sure exactly what you would like me to post as far as my CGI output.   Can you be more specific please.   </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      <br>
      </p>
      <p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">
      Thanks again for the help.  </p>
      <div class="ygrps-yiv-1720982227ygroups-quoted"><br>
      <br>
      --- In <a rel="nofollow" target="_blank" href="mailto:easy400group@yahoogroups.com">easy400group@yahoogroups.com</a>, <kevin.turner@...> wrote:<br>
      <br>
      <div id="ygrps-yiv-1720982227yiv-233127657">
      <div class="ygrps-yiv-1720982227WordSection1">
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Also, please provide the directory structure within your document root, and indicate the location on sorttable.js</span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></p>
      <div>
      <div style="border-top:solid #B5C4DF 1.0pt;">
      <p class="ygrps-yiv-1720982227MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;">
      <a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a> [<a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">mailto:Easy400Group@yahoogroups.com</a>]
      <b>On Behalf Of </b>Kevin Turner<br>
      <b>Sent:</b> 16 September 2013 16:12<br>
      <b>To:</b> <a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a><br>
      <b>Subject:</b> RE: [Easy400Group] RE: problem with Javascript</span></p>
      </div>
      </div>
      <p class="ygrps-yiv-1720982227MsoNormal"> </p>
      <p class="ygrps-yiv-1720982227MsoNormal">  </p>
      <div id="ygrps-yiv-1720982227ygrp-mlmsg">
      <div id="ygrps-yiv-1720982227ygrp-msg">
      <div id="ygrps-yiv-1720982227ygrp-text">
      <div>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">All the javascript stops working or just one or more functions?</span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Do you see anything in the console (use the Google Chrome Developer Tools console for easiest diagnosis).</span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Obviously $TOP should not actually appear anywhere if your page is being delivered from a CGI program.  It would be very useful if you would just post the output from the CGI program itself,
      rather than the raw template.</span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></p>
      <p class="ygrps-yiv-1720982227MsoNormal"><span style="font-size:11.0pt;color:#1F497D;"> </span></p>
      <div>
      <div style="border-top:solid #B5C4DF 1.0pt;">
      <p class="ygrps-yiv-1720982227MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;">From:</span></b><span lang="EN-US" style="font-size:10.0pt;">
      <a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a> [<a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">mailto:Easy400Group@yahoogroups.com</a>]
      <b>On Behalf Of </b><a rel="nofollow" target="_blank" href="mailto:mike_smith@...">mike_smith@...</a><br>
      <b>Sent:</b> 16 September 2013 16:00<br>
      <b>To:</b> <a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">
      Easy400Group@yahoogroups.com</a><br>
      <b>Subject:</b> [Easy400Group] RE: problem with Javascript</span></p>
      </div>
      </div>
      <p class="ygrps-yiv-1720982227MsoNormal"> </p>
      <p class="ygrps-yiv-1720982227MsoNormal">  </p>
      <div id="ygrps-yiv-1720982227ygrp-mlmsg">
      <div id="ygrps-yiv-1720982227ygrp-msg">
      <div id="ygrps-yiv-1720982227ygrp-text">
      <p>I decided to start withe the little html file that works and start putting it togeather piece by piece.  </p>
      <p>So i changed the table over to match my TAPEINV html file.  All was good, however as soon as i put the $TOP</p>
      <p>tag in the HTML the javascript stopped working.   </p>
      <p> </p>
      <p><span style="font-size:10.0pt;color:black;">ideas? </span></p>
      <div>
      <p class="ygrps-yiv-1720982227MsoNormal"><br>
      <br>
      --- In <a rel="nofollow" target="_blank" href="mailto:easy400group@yahoogroups.com">
      easy400group@yahoogroups.com</a>, <<a rel="nofollow" target="_blank" href="mailto:mike_smith@...">mike_smith@...</a>> wrote:</p>
      <div id="ygrps-yiv-1720982227yiv-314790273">
      <p class="ygrps-yiv-1720982227MsoNormal"><p>Vern, </p><p>Thanks for answering.   The 2 seperate spellings is deliberate.  The class is called sortable but the javascript is called sorttable.js.  </p><p>I'll attached a couple of files.  The javascript.   My html test that works
      and my cgi html that doesn't.  </p><p><br></p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Also if you want to see where i got the javascript from its from here.
        </p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><a rel="nofollow" target="_blank" href="<a rel="nofollow" target="_blank" href="http://www.kryogenix.org/code/browser/sorttable/%22">http://www.kryogenix.org/code/browser/sorttable/"</a>><a rel="nofollow" target="_blank" href="http://www.kryogenix.org/code/browser/sorttable/%3c/a">http://www.kryogenix.org/code/browser/sorttable/</a</a>><br></p><p
      style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br></p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Also,
      i don't know why the path on the class in mike.html works, but it does and if i switch it to the way i think it should be it doesn't work(just confusing me further).  </p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br></p><p
      style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">There is no CSS involved at the moment.   Just getting my feet wet one step at a time on this.  </p><p style="color:rgb(0,
      0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br></p><p style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Mike</p><p
      style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br></p> <div class="ygroups-quoted"><br><br>--- In
      <a rel="nofollow" target="_blank" href="mailto:easy400group@yahoogroups.com">easy400group@yahoogroups.com</a>, <<a rel="nofollow" target="_blank" href="mailto:vhamberg@...">vhamberg@...</a>> wrote:<br><br><div id="yiv-933883108"><br>
      <br>
      <br>
      <br>
      <br>
      Mike<br><br>
      <br><br>
      So far as I know, a class is not going to look like a path to a file<br>
      - it is going to refer to something in a CSS, or be a selector in<br>
      JQuery.<br><br>
      <br><br>
      I just looked at the original HTML - that uses only the word<br>
      "sortable" for the class. Good.<br><br>
      <br><br>
      We need to see the sorttable.js - or is it sortable.js? You have 2<br>
      different spellings here - I suspect that is where the problem may<br>
      lie.<br><br>
      <br><br>
      HTH<br><br>
      Vern<br><br>
      <br><br>
      <div class="moz-cite-prefix">On 9/12/2013 9:44 PM,<br>
      <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="<a rel="nofollow" target="_blank" href="mailto:mike_smith@...">mailto:mike_smith@...</a>"><a rel="nofollow" target="_blank" href="mailto:mike_smith@...%3c/a">mike_smith@...</a</a>> wrote:<br><br>
      </div><br>
      <blockquote type="cite"><br>
      <span style="display:none;"> </span><br>
      <br>
      <div id="ygrp-text"><br>
      <p> <span style="color:rgb(34, 34, 34);font-family:Calibri, sans-serif;font-size:11pt;">Giovanni</span></p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">Thanks for answering.  <br>
      I?ve made some changes, but still cannot get this to<br>
      work.  </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">I?ll try and detail<br>
      what I?ve done. </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">First folder structure<br>
      on the IFS is</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">+CGIDEV</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">   +CONF</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">   +JS</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">+CGIDEVEXTHTML</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">The javascript resides<br>
      in  /CGIDEV/JS</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">So I changed the script<br>
      source location</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"><script<br>
      src=?/CGIDEV/JS/sorttable.js?> </script></p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">Now the next thing I<br>
      did was create a simple html with a table in it. (NO<br>
      CGIDEV2 involved)</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">I wanted to see if<br>
      maybe there was a problem with the script itself.</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">I am created this html<br>
      page using WDSC7. </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">When I created this, I<br>
      made</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> <script<br>
      src=?sortable.js?></script> and</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"><table<br>
      class=/cgidev/js/sortable? border=?1?></p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">I then went to preview<br>
      and it worked. </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">I then realized(I<br>
      thought) that I should have made the script src with<br>
      /cgidev/js/sortable.js.</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">So I switched it around<br>
      and it no longer works. </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">So I then went back to<br>
      my original HTML with CGIDEV2 and switched the class to<br>
      /cgidev/js/sortable and removed the /cgidev/js from the<br>
      script source.</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">Still no success. </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">I did however in the<br>
      process determine that the script does in fact work.  This<br>
      leads me to believe it has to be something in my<br>
      configuration or the way I?m pointing to the script in the<br>
      source.</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);">Hope this makes sense<br>
      and you can point me in the right direction.</p><br>
      <p class="MsoNormal" style="font-size:11pt;font-family:Calibri, sans-serif;color:rgb(34, 34, 34);"> </p><br>
      <div class="ygroups-quoted"><br><br>
      <br><br>
      --- In <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:<a rel="nofollow" target="_blank" href="mailto:easy400group@yahoogroups.com">easy400group@yahoogroups.com</a>"><a rel="nofollow" target="_blank" href="mailto:easy400group@yahoogroups.com">easy400group@yahoogroups.com</a></a>,<br>
      <a rel="nofollow" class="moz-txt-link-rfc2396E" target="_blank" href="<a rel="nofollow" target="_blank" href="mailto:gb_perotti@...">mailto:gb_perotti@...</a>"><<a rel="nofollow" target="_blank" href="mailto:gb_perotti@...">gb_perotti@...</a>></a> wrote:<br><br>
      <br><br>
      <div id="yiv-1940143841"><br>
      <div class="WordSection1"><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">Mike,</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;">  </span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;" lang="EN-US">I?m not familiar with this javascript<br>
      you plugged into your html.</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;" lang="EN-US">However, you should understand that<br>
      when executing a CGI program by calling it with an<br>
      URI like /mylibp/mycgiprogram.pgm, the default<br>
      path is </span><span style="font-size:14.0pt;color:red;" lang="EN-US">/mylibp</span><span style="font-size:11.0pt;color:#1F497D;" lang="EN-US">.</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;" lang="EN-US">In such a case, any ?relative? HTML<br>
      references, like the one you have in your code, </span><span style="font-size:14.0pt;color:red;" lang="EN-US"><script<br>
      src="sorttable.js"></span><span style="font-size:11.0pt;color:#1F497D;" lang="EN-US"></script> , will never work,<br>
      because the URI constructed from HTTP to load it<br>
      would be </span><span style="font-size:14.0pt;color:red;" lang="EN-US">/mylibp/sorttable.js</span><span lang="EN-US"> </span><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">and it will badly fail (check your<br>
      HTTP instance error log).</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">What you have to do is to use an<br>
      explicit reference. As an example, if that<br>
      sortable.js is in directory ?/myApplication/myJs?,<br>
      use this tag instead <script<br>
      src=?/myApplication<br>
      /myJs/sorttable.js"></script></span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">  </span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">Please checkout other similar cases<br>
      you may have.</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">Also, if you have Firefox, run debug<br>
      to display your script errors. That may save you a<br>
      lot of headhaches.</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">  </span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">Giovanni</span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#365F91;" lang="EN-US">  </span></p><br>
      <p class="MsoNormal"><span style="font-size:11.0pt;color:#1F497D;" lang="EN-US">  </span></p><br>
      <div><br>
      <div style="border-top:solid #B5C4DF 1.0pt;"><br>
      <p class="MsoNormal"><b><span style="font-size:10.0pt;">Da:</span></b><span style="font-size:10.0pt;"><br>
      <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:<a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a>"><a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a></a><br>
      [<a rel="nofollow" class="moz-txt-link-freetext" target="_blank" href="mailto:<a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a>">mailto:<a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a></a>]
      <b>Per<br>
      conto di </b><a rel="nofollow" target="_blank" href="mailto:mike_smith@...%3cbr">mike_smith@...<br</a>><br>
      <b>Inviato:</b> mercoled? 4 settembre 2013<br>
      00:53<br><br>
      <b>A:</b> <a rel="nofollow" class="moz-txt-link-abbreviated" target="_blank" href="mailto:<a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a>"><a rel="nofollow" target="_blank" href="mailto:Easy400Group@yahoogroups.com">Easy400Group@yahoogroups.com</a></a><br><br>
      <b>Oggetto:</b> [Easy400Group] problem with<br>
      Javascript [1 Attachment]</span></p><br>
      </div><br>
      </div><br>
      <p class="MsoNormal">  </p><br>
      <p class="MsoNormal">  </p><br>
      <div id="ygrp-mlmsg"><br>
      <div id="ygrp-msg"><br>
      <div id="ygrp-text"><br>
      <p class="MsoNormal"><b><span style="font-size:9.0pt;">[<a rel="nofollow" href="#TopText"><span style="text-decoration:none;">Attachment(s)</span></a><br>
      from <a rel="nofollow" target="_blank" href="<a rel="nofollow" target="_blank" href="mailto:mike_smith@...">mailto:mike_smith@...</a>"><a rel="nofollow" target="_blank" href="mailto:mike_smith@...%3c/a">mike_smith@...</a</a>><br>
      included below]</span></b> </p><br>
      <p><br><br>
      I'm just getting started with CGIDEV2 and<br>
      Javascript.  I'm working on a crud application<br>
      which i found a template for.  I'm now trying<br>
      to add some javascript to it to sort columns.<br>
       The javascript comes from <a<br>
      rel="nofollow" target="_blank" href="<a rel="nofollow" target="_blank" href="<a rel="nofollow" target="_blank" href="http://www.kryogenix.org/code/browser/sorttable/%22">http://www.kryogenix.org/code/browser/sorttable/"</a>><a rel="nofollow" target="_blank" href="http://www.kryogenix.org/code/browser/sorttable/%3c/a">http://www.kryogenix.org/code/browser/sorttable/</a</a>>"<br>
      style="color:rgb(17, 85,<br>
      204);font-family:Calibri,<br>
      sans-serif;font-size:15px;line-height:normal;"><a rel="nofollow" target="_blank" href="<a rel="nofollow" target="_blank" href="http://www.kryogenix.org/code/%22">http://www.kryogenix.org/code/"</a>><a rel="nofollow" target="_blank" href="http://www.kryogenix.org/code/%3c/a">http://www.kryogenix.org/code/</a</a>><br>
      browser/sorttable/</a>    It does appear<br>
      that the javascript is executing, but i'm not<br>
      able to click on the headings and sort.  I'm<br>
      attaching the html and hoping someone might be<br>
      able to tell me why its not working.<br>
       <p></p><div><br></div><div>Thanks<br>
       Mike</div></p><br>
      </div><br>
      <div><br>
      <p class="MsoNormal"><span style="color:white;"></span></p><br>
      </div><br>
      </div><br>
      </div><br>
      <

      (Message over 64 KB, truncated)

    Your message has been successfully submitted and would be delivered to recipients shortly.