Announcement

Collapse
No announcement yet.

Error when generator needs to use transparent.png

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error when generator needs to use transparent.png

    Error in browser console
    http://www.example.com:97/scriptcase/app/adm/menu/%3C?php%20echo%20/scriptcase/app/adm/_lib/img;%20?%3E/transparent.png

    Generated code line
    $str_retorno .= " <td style=\"height:1px; padding: 0px;\" bgcolor=\"". $bg_color ."\"><img src='<?php echo $path_imag_cab; ?>/transparent.png' border=\"0\" style=\"height:1px;\"></td>\r\n";

    Output to browser
    <td style="height:1px; padding: 0px;" bgcolor="#305908"><img src='<?php echo /scriptcase/app/adm/_lib/img; ?>/transparent.png' border="0" style="height:1px;"></td>

    Possible fix
    $str_retorno .= " <td style=\"height:1px; padding: 0px;\" bgcolor=\"". $bg_color ."\"><img src='". $path_imag_cab."/transparent.png' border=\"0\" style=\"height:1px;\"></td>\r\n";

  • #2
    Hello,

    What kind of application are you using? Is it a menu app?

    Could you elaborate on how the issue happens? E.j. "happens when I add an application to my menu".

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      More details...

      Bernhard,

      The problem happens only when I use my own theme that was copied from the Scriptcase green one. Using the blue sky theme, the problem does not occur. There is no transparent.png in the theme that the user can edit. It might be one of the files used when the image background is left empty. Changing the buttons in the theme does not fix the problem.
      1. Create a new project.
      2. Add a menu application. Do not add any menu items.
      3. Run app.
      4. Examine browser console to display error.

      I have an export of the project and a zip of the generated code. The forum says it is too big to upload them here, let me know how to get them to you.

      - Jim

      Comment


      • #4
        Hello,

        Issue reported to our bugs team.

        regards,
        Bernhard Bernsmann

        Comment

        Working...
        X