DKIM signatures exceeds the maximum string length allowed in DNS (254 chars)

mail
dkim

(Stéphane de Labrusse) #21

hi davidep

I have something that break the accordion widget, it works outside of nethgui, see http://de-labrusse.fr/accordeon.html, but the same code in the template is not workable. Could you have some clues…

Not really my field of competencies, but interesting

this is the code

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>accordion demo</title>
  <link rel="stylesheet" href="//code.jquery.com/ui/1.8.24/themes/base/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.8.2.js"></script>
  <script src="//code.jquery.com/ui/1.8.24/jquery-ui.js"></script>
</head>
<body>
 
<div id="accordion">
  <h3><a href="#">Section 1</a></h3>
  <div>
<p>Mauris mauris ante, blandit et, ultrices a, suscipit eget.
Integer ut neque. Vivamus nisi metus, molestie vel, gravida in,
condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros.
Nam mi. Proin viverra leo ut odio.</p>
  </div>
  <h3><a href="#">Section 2</a></h3>
  <div>
<p>Sed non urna. Phasellus eu ligula. Vestibulum sit amet purus.
Vivamus hendrerit, dolor aliquet laoreet, mauris turpis velit,
faucibus interdum tellus libero ac justo.</p>
  </div>
  <h3><a href="#">Section 3</a></h3>
  <div>
<p>Nam enim risus, molestie et, porta ac, aliquam ac, risus.
Quisque lobortis.Phasellus pellentesque purus in massa.</p>
<ul>
  <li>List item one</li>
  <li>List item two</li>
  <li>List item three</li>
</ul>
  </div>
</div>
 
<script>
$( "#accordion" ).accordion();
</script>
 
</body>
</html>

(Davide Principi) #22

The jQueryUI manual says

The markup of your accordion container needs pairs of headers and content panels

In other words H3 and DIV tags. From their example H3 contains an A tag. The whole structure is wrapped by a DIV with an unique ID. In Nethgui just add the PHP call that inserts the Javascript code:

$view->includeJavascript("
(function ( $ ) {
    $( '#youAccordionId' ).accordion();
} ( jQuery ));
"); 

Let me try it, I’ll send you a PR if I can succeed.


(Stéphane de Labrusse) #23

Yes i tried this also without success :wink:


(Davide Principi) #24

Here’s a preview with Accordion. It has been quite difficult to make it work :sweat_smile:

When the label “Paste the full TXT record…” is clicked, the panel above is folded, and another one appears:

Other procedures are welcome too :wink:


(Stéphane de Labrusse) #25

thank @davidep you saved much of my nights :smiley:


(Stéphane de Labrusse) #26

released as an update