Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Wrong or missing css toward included form(page) Any sollution?


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0 Threads: [ Previous | Next ]
ivan ivanov

Posts: 8
Registered: 2/13/13
Wrong or missing css toward included form(page) Any sollution?  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 1, 2016 7:12 AM
Hi all,
Seem RPCL generate wrong css (suppose and JS) when any page is included in other.
1. Static example:
First page is named Index. There are placed only one Panel named Panel1 and one Label named Label1 on the page at design time. At design time also in Include property of Panel1 is pointed the second page named Login.php. On Login page is placed only one Label Label1 colored in red.

At design time color of this Label disappears when Login page is embedded in Panel1 of index page.
Let looking for code generation when index.php is running:
<!DOCTYPE html>
<html  DIR=ltr >
   <head>
      <title>Page2</title>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <link href="/index.php?css=1" rel="stylesheet" type="text/css"/>
      <script  type="text/javascript" src="/rpcl-bin/jquery/jquery-1.9.1.min.js"></script>
      <script type="text/javascript" src="/index.php?js=1"></script>
   </head>
   <body id="Index"  >
      <form id="Index_form" name="Index_form" method="post"   action="/index.php">
         <input type="hidden" name="serverevent" value=""><input type="hidden" name="serverparams" value=""><input type="hidden" id="Button1SubmitEvent" name="Button1SubmitEvent" value="" /><input type="hidden" id="SearchButtonSubmitEvent" name="SearchButtonSubmitEvent" value="" /><input type="hidden" id="LoginButtonSubmitEvent" name="LoginButtonSubmitEvent" value="" /><input type="hidden" id="Button2SubmitEvent" name="Button2SubmitEvent" value="" />
         <table id="Index_table">
            <tr>
               <td>
                  <div id="Panel1_outer">
                     <!DOCTYPE html>
                     <html  DIR=ltr >
                        <head>
                           <title>Login</title>
                           <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                           <link href="/index.php?css=1" rel="stylesheet" type="text/css"/>
                           <script type="text/javascript" src="/index.php?js=1"></script>
                        </head>
                        <body id="Login"  >
      <form id="Login_form" name="Login_form" method="post"   action="/index.php"><input type="hidden" name="serverevent" value=""><input type="hidden" name="serverparams" value="">
      <table id="Login_table"><tr><td>
      <div id="Label1_outer">
      <div id="Label1">Login</div>5
      </div>
      </td></tr></table>
      </form></body>
      </html>
      <!-- Login end -->
      </div>
      <div id="Label1_outer">
      <div id="Label1">myLabel1</div>
      </div>
      </td></tr></table>
      </form>
   </body>
</html>
<!-- Index end -->


From generated pagesource is visible that embedded in Panel Login page is involved with Index page css and JS

<link href="/index.php?css=1" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/index.php?js=1"></script>
instead
<link href="/login.php?css=1" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/login.php?js=1"></script>
1. Dynamic example:

If any dynamic loading of second(login) page is using, css(js) are not invoked for this embedded form:
    function LoginButtonClick($sender, $params)
    {
        $this->panel_search->Include = 'Login.php'; 
    }

//not any login.php?css=1 or "/login.php?js=1 are generated

If I'm not wrong this is a broken basic functionality. Without solution even any basic menu could be not performed.
So, if anyone knows any solution, please share it.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02