CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 CSS menu calls from Example Pack 2

Print topic Send  topic

Author Message
wayner


Posts: 37
Posted: 03/15/2005, 7:25 AM

Gentlemen,

What syntax would you enter into the "menu" table to make a native .ccp page call within a CodeCharge Studio application using the CCS menu applications from Example Pack 2?

Thanks,
Wayne
_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
peterr


Posts: 5971
Posted: 03/15/2005, 10:48 AM

Wayne,
If I understood you correctly, you would need to include the menu page into your menu table. Select "Include Page" from the Toolbox (Forms).
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wayner


Posts: 37
Posted: 03/15/2005, 11:23 AM

Peter,

The CSS Horizontal Menu table in Example Pack 2 has the following fields:

Menu_ID
Menu_Name
Menu_ID_Parent
Menu_Link

The example only shows Menu_Links like this "http://support.yessoftware.com or a # sign" and these don't seem to work when selected.

I would like to use the code as the main menu for moving around CCS web applications. Is there a command to call CodeCharge Pages (.ccp) from the menu sample?

Thanks,

Wayne
_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
peterr


Posts: 5971
Posted: 03/15/2005, 11:44 AM

I haven't worked with that example but I see all those links/URLs stored in the "menu" table in the Intranet database. Most of the links in that table have only the "#" value, while others have full URLs like "http://support.yessoftware.com". Thus I'm assuming that you can just enter into the database all the links that you need. You probably cannot point to .ccp pages, but you can point directly to the ASP or PHP pages, etc.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wayner


Posts: 37
Posted: 03/15/2005, 1:04 PM

What would the command be to call a .ccp page such as "account.ccp" within a CCS asp page? Or an .asp page within the application?
_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
peterr


Posts: 5971
Posted: 03/15/2005, 1:07 PM

I don't think that you can call a .ccp page, as this is rather an abstract page that doesn't exist on the server; it only contains page model (component properties) used in the project when working with CCS.
To call an .asp page you'd use the ASP response.redirect command, like response.redirect("some_page.asp")
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 03/15/2005, 1:09 PM

Or actually using the Redirect variable would be better: http://docs.codecharge.com/studio/html/Components/Varia...P/Redirect.html
(I'd use response.redirect only when Redirect doesn't work for some reason, in some cases)
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Cass

Posts: 26
Posted: 03/18/2005, 4:30 PM

Peter,

When the Redirect variable has been changed in an event procedure, when does the redirection take place? Perhaps as soon as the event procedure closes or at some other specific point in page-flow?

Cheers,
Cass.
View profile  Send private message
peterr


Posts: 5971
Posted: 03/18/2005, 10:29 PM

I didn't know the answer but I searched the code for "Redirect" and there it is:
'Go to destination page @1-6D35F4FD  
If NOT ( Redirect = "" ) Then  
    UnloadPage  
    Response.Redirect Redirect  
End If  
'End Go to destination page  

Right after the page code is executed and before the output is sent to the browser.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wayner


Posts: 37
Posted: 03/21/2005, 9:38 AM

Peter,

It looks like the Javascript menus will call an internal or external "asp" file just fine but the Horizontal CCS version only goes through some processing but does not call any type of command - internal or external link.

You may want to have someone a CCS fix the code.

Thanks,

Wayne


_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
peterr


Posts: 5971
Posted: 03/21/2005, 9:57 AM

That is OK and there is nothing to fix.
If a menu works that way then that's how it was designed.

Keep in mind that each menu demonstrates different type, style & functionality, thus if you need functionality from one menu but type or style from another (horizontal or vertical, CSS-based on JS-based) , then you can use each example to learn what you need to do.
CCS doesn't have built-in menu support and the examples are optional and provided only to help you create your own menus.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
wayner


Posts: 37
Posted: 03/24/2005, 2:10 PM

Peter,

Maybe I was not clear enough; the Horizontal CCS version does not work. It only displays the menu item but will not redirect to the command stored in the database.

Thanks,
Wayne
_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
peterr


Posts: 5971
Posted: 03/24/2005, 2:16 PM

I understand, but I think that it is not supposed to...
Each example was meant to demonstrate some different features/possibilities, and this example may be demonstrating how to create a menu that passes various parameters to the current page (which it does).
I'm not familiar with that example but possibly you could check with the support if that was the intended behavior.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Tengel

Posts: 49
Posted: 03/25/2005, 9:52 AM

Well peterr, I think it was supposed to work, as at http://examples.codecharge.com/
you have 4 examples:
Horizontal JavaScript Menu <- working
Vertical JavaScript Menu <- working
Horizontal CSS Menu <- does not work
Vertical CSS Menu <- working

So of all this 4 it is only this Horizonal CSS that does not work at examples page.
_________________
---
Tengel
View profile  Send private message
Tengel

Posts: 49
Posted: 03/25/2005, 10:43 AM

Way to fix the horizonal CCS is follow:

{SubcategoryLink} property:

Change Href Type from Page to Database
then change Href Source to sub_menu_link

Same way with {CategoryLink} if it have active link

_________________
---
Tengel
View profile  Send private message
wayner


Posts: 37
Posted: 03/31/2005, 7:41 AM

Tengel,

Thanks for the tip, I will give it a try.
I have incorportated the Horizontal Java Script Menu into Header.asp and it seems work just fine.

Wayne
_________________
Have it your way, sort of!
1. You can have it fast.
2. You can have it cheap.
3. You can have it accurate.
Pick 2 out of the 3!
View profile  Send private message
Pedro Ruiz
Posted: 04/04/2005, 2:06 AM

8-)

Also, make sure that you go in the Data Source-Build Query (you shoud have a cat and sub table in the menu with a left join from cat to sub. Expand both tables and check the *link, in both, then press ok.
Then, as Tengel was stating Href type should be database, then Href source (click on the ...) should be cat_menu_link. Dont mess with the Where clause, but actually select cat_menu_link from the drop-down. Do the same with subcategories. Generate the code and it should work.

However, there is a caveat in the code. If you snip out the <style> code from the example and then auto-generate the directory listing by the instructions, it will not work. You have to modify a certain piece of code (below).. In the Begin Category section, the <li> tag needs a class section, which should be class="submenu" and name="submenu".

Please review the code below and compare it to the example html. Generate after you have made the changes and it should work.

This took me a whole day to figure out.

My issue is that I have generated the Horizontal CSS menu on a page and tried to generate a grid on the same page. However, I cannot get the grid to read the CSS file. By default, it reads the horizontal bar style. So, my column names formatting is messed up. If someone could help me out with that, THAT WOULD BE AWESOME!!!!



<!-- BEGIN Directory main_menu -->
<div id="menu">
<ul id="menulist">
<table width="125%" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top" class="RockItDataTD">
<!-- BEGIN Category -->
<li><a class="submenu" href="{CategoryLink_Src}" name="submenu">{CategoryLink}</a><ul>

<!-- BEGIN Subcategory -->
<li><a class="submenu" name="submenu" href="{SubcategoryLink_Src}">{SubcategoryLink}</a> <!-- END Subcategory -->
Tengel

Posts: 49
Posted: 06/17/2005, 6:12 AM

I have in long time use this menu, but have discovered lately that this menu does not work well in net browser Opera, and not on MAC computers.

Have any discover the same and have a solution for this?

_________________
---
Tengel
View profile  Send private message
peterr


Posts: 5971
Posted: 06/17/2005, 6:22 AM

Each menu comes with the list of supported Web browsers. Click "View more information about this example" to view the description.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Tengel

Posts: 49
Posted: 06/17/2005, 6:26 AM

I did, and it says:
Supported Web browsers as of December 2004 include: Explorer 5 and above, Opera 7 and above

But in Opera 8.0 it does not
_________________
---
Tengel
View profile  Send private message
Tengel

Posts: 49
Posted: 06/17/2005, 6:31 AM

You can look at this page.
http://www.bohemendart.com ( norwegian page )

You will see it works in IE and Mozilla/Firefox, but if you try in Opera 8.0 it will not work well.
_________________
---
Tengel
View profile  Send private message
peterr


Posts: 5971
Posted: 06/17/2005, 6:31 AM

That's why I posted the above information. Please always be specific.
You can submit tech issues to our support.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.