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

about texts with quotes -> PHP

Expand Messages
  • Hahn Daniel (EDU)
    Hello! Showing texts with quotes in it ( une minute d intérieur) in a overLib box works with a backslah before a quote:
    Message 1 of 2 , Mar 2, 2004
    • 0 Attachment
      Hello!

      Showing texts with quotes in it ("une minute d'intérieur) in a overLib box
      works with a backslah before a quote:

      <a href"javascript:void(0);" onmouseover="return overlib('une minute
      d\'intérieur');" onmouseout="return nd();">text</a>

      But it doesn't work in PHP it seems me - a test:

      <?php
      $table ="<TABLE border='0' cellspacing='20' cellpadding='0'>";
      $table .="<TR>";
      $table .="<TD width='20' height='20' bgcolor='#FF9933'>";
      $table .="<a href='javascript:void(0);'
      onmouseover='return overlib(\"une minute
      d\'intérieur\");' onmouseout='return nd();'>";
      $table .="<img src='img/px/spacer.gif' alt='' width='20' height='20'>";
      $table .="</a>";
      $table .="</TD>";
      $table .="</TR>";
      $table .= "</TABLE>";

      echo $table;
      ?>

      the result is: There's no overLib-box.

      Is this my fault or is a known problem?

      Thanks a lot, Daniel
    • Robert E Boughner
      ... overLib box ... Are you getting any javascript errors? What you need to do is replace your backslashed with the HTML entity reference and see if that
      Message 2 of 2 , Mar 2, 2004
      • 0 Attachment
        --- In overlib@yahoogroups.com, "Hahn Daniel (EDU)" <daniel.hahn@e...>
        wrote:
        > Hello!
        >
        > Showing texts with quotes in it ("une minute d'intérieur) in a
        overLib box
        > works with a backslah before a quote:
        >
        > <a href"javascript:void(0);" onmouseover="return overlib('une minute
        > d\'intérieur');" onmouseout="return nd();">text</a>
        >
        > But it doesn't work in PHP it seems me - a test:
        >
        > <?php
        > $table ="<TABLE border='0' cellspacing='20' cellpadding='0'>";
        > $table .="<TR>";
        > $table .="<TD width='20' height='20' bgcolor='#FF9933'>";
        > $table .="<a href='javascript:void(0);'
        > onmouseover='return overlib(\"une minute
        > d\'intérieur\");' onmouseout='return nd();'>";
        > $table .="<img src='img/px/spacer.gif' alt='' width='20' height='20'>";
        > $table .="</a>";
        > $table .="</TD>";
        > $table .="</TR>";
        > $table .= "</TABLE>";
        >
        > echo $table;
        > ?>
        >
        > the result is: There's no overLib-box.
        >
        > Is this my fault or is a known problem?
        >
        > Thanks a lot, Daniel

        Are you getting any javascript errors? What you need to do is replace
        your backslashed " with the HTML entity reference " and see if
        that helps out. Or try:

        $table .='<a href="javascript:void(0);" onmouseover="return
        overlib(\''.'une minuted\'intérieur'.'\');" onmouseout="return
        nd();">'
      Your message has been successfully submitted and would be delivered to recipients shortly.