Results 1 to 5 of 5

Thread: Custom menu panel , Im little lost.

  1. #1
    Member
    Join Date
    Oct 2012
    Location
    Mxico city
    Posts
    39

    Custom menu panel , Im little lost.

    Hello I see I can use a .rsp to make a nice menu in the section but I cant find an example. If posible yo see a little example off menu section with rsp?
    like this https://www.lianja.com/doc/images/9/..._menupanel.png


    Thanks for the time.

  2. #2
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,664
    Hi Gontran,

    Sorry, I no longer have the original code that I used for that screenshot, but all you need to do is design some HTML/CSS buttons and paste the source into a .rsp file into a 'text raw ... endtext' block with JavaScript functions to carry out the operations, calling Lianja/VFP code if required.

    Regards,

    Yvonne

  3. #3
    Member
    Join Date
    Oct 2012
    Location
    Mxico city
    Posts
    39
    Hello Yvonne.

    Hmm ok I understand now, thanks for the time. I try to make some nice menus now

    Regards
    Last edited by gontran; 2021-04-16 at 10:46.

  4. #4
    Member
    Join Date
    Oct 2012
    Location
    Mxico city
    Posts
    39
    Hello ok I make a simple sample .rsp for custom menu panel

    <%@ Language=VFP %>
    <meta charset="UTF-8">
    <html>
    <style>
    nav a{
    text-decoration:none;
    color:inherit;
    font-size:14px;
    }
    nav li{
    display:inline-block;
    width:10%;
    padding:5px 10px;
    background-color:#000;
    border:1px solid #000;
    text-align:center;
    color:#fff;
    }
    nav li:hover{
    background-color:#fff;
    color:#000;
    }
    </style>
    <head>
    <nav><ul>
    <li><a href="prueba">Inicio</a></li>
    <li><a href="#">Q Somos</a></li>
    <li><a href="#">Servicios</a></li>
    <li><a href="#">Blog</a></li>
    <li><a href="#">Contacto</a></li>
    </ul></nav>
    <%
    // add your Lianja/VFP code here
    proc prueba()
    messagebox('prueba 1')
    endproc


    %>
    </body>
    </html>

    My question is. How the <a href ...> call proc or function in vfp ?

    Thanks for the time

  5. #5
    Member
    Join Date
    Feb 2012
    Location
    So Paulo - Brasil
    Posts
    38
    Try
    Lianja.execute( "command" )
    var result = Lianja.evaluate( "expression" )

    <a id="myLink" title="Click to do something"
    href="#" onclick="Lianja.execute( "command" );return false;">link text</a>

Tags for this Thread

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us