[Pro] Smart Table Freeway Challenge

I am trying to create a smart table in freeway I saw on other websites, but I am not sure how to do it.

Lets say I have a table with 3 top columns where I have a small image and text description of my products. For example column 1 (EU products) column (2) UK products and column (3) US products.

So when my home page is loaded I want to see column 1 (EU products) and 10 item products below with name an image and review, so basically another table below. And when I click above column (2) UK products I want to see another 10 item products, but on the same page.

I am sure this can be achieved with freeway, any suggestions for an action to use?

Thanks very much

Michael


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Target Show/Hide Layer on the three tables, and Rollover (on graphic headers) or Text Rollover for the headers.

Walter

On Apr 7, 2012, at 2:38 AM, Michael Coldereo wrote:

I am trying to create a smart table in freeway I saw on other websites,


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks very much waltd

I will be trying to achieve this today, and I’ll let you know about the results.

Thanks

Michael


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

No luck with the text rollover. I am sure the target show/hide layer is the way to go with this, but I cannot achieve what I saw.

It’s like a css menu above and when I click on the html text in the cells the table below the menu changes with the right products. But it doesn’t take me to a different page.

The other version of this smart table I saw includes small images near the text and when I hover the text it changes its colour and when I click the relevant table is shown below without leaving the home page.

I am missing something here, any suggestions Waltd?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

What about using the Tab Area action to give you something like this http://www.deltadesign.co/fw_examples/walters_tabs.html

This example was created by Walter but the action can do the same idea and you can have pretty much any content you like in there.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks DeltaDave

Could you please let me know where I can find the Tab Area Action? How to apply it?

Basically the link you provided is what I am after, I just need to have a table with some products on the place of the text of your example. But above 3 columns is exactly what I am trying to achieve.

I’ll really appreciate if you can help me on this. How did you make this example?

Thanks


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Michael

As far as I am aware the Tab Area action is part of Pros bundled actions - sorry not at my Mac just now to check!

That example was actually produced by Walter and there should be a thread here - do a search for Tabbed areas or similar.

The FW action simplifies the process and there used to be a tutorial in the old knowledgebase but I cannot find it.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Dave

It seems I can’t find the Tab Area action anywhere, even I can’t find the exact problem I have.

I found this example posted by waltd Protaculous Tabs

The problem is that I need to have a CSS Table with images, text and links below the above tabs. So when I click tab 2 different table is loaded below.

Is this actually possible with freeway?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Have a look at this page which has a quick example with download link to a FW file.

http://www.deltadesign.co/fw_examples/tab_area.html

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave,

love this example.

Thanks for the links but where can I get the TAB BUTTON action to make it all work?

Thanks,

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sorry - I had forgotten to include it in with the Tabs Area action file tabsarea.zip

Its in there now http://www.deltadesign.co/fw_examples/tab_area.html

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks- did this action get removed from the history books? no where around at all!

pretty cool!


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave,

can you help me with this simple task? I love the tab button thing you sent. Have a perfect use for it.

How do I get my button to change color after clicked and stay that color like this yellow example…

http://www.deltadesign.co/fw_examples/walters_tabs.html

so that the person knows under which tab they are reading.

Specific directions would be great.

Thanks

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave,

i think I got it but I can;t believe it takes so much. Here is what I did to make my first rollover…

  1. I duplicated the button and changed the color.
  2. Went to file export and created a new .png image
  3. Deleted the new duplicated graphic in FW
  4. Applied the rollover to the original button with the click and chose the graphic file I just made.

Seems like a lot for 1 rollover effect

Is this the way to do it?

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK GOT IT. works…

For anyone that reads this,

I just have 1 question…

How do I have the button already highlited when the person gets to the page as it is already showing what is under tab 1?

this is exactly what walt has…

http://www.deltadesign.co/fw_examples/walters_tabs.html

Thanks!

barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Dave and Walter

I am almost complete with what I was trying to achieve, but there is just one more step. I’ll appreciate your opinion.

Dave’s Example - http://www.deltadesign.co/fw_examples/tab_area.html

This works pretty good with loading different tables. The only problem here is that I don’t want particularly graphic items for the above buttons. I tried html box with text, but the Tabs Button action cannot be applied to an html box! How to make the above buttons html text H3, and change the colour when hovered and stay in different colour so I know which tab I am looking the content of?

Walter’s Example - Untitled

This works fine as well and no Tabs Action is used, but the Protactulous action. I downloaded the FW file posted by Walter and opened the project in FW. It works fine loading different tables, but here I cannot figure out how did you make the html boxes look like a table. I see you applied some padding for the 3 text boxes, also I see a red dot above and below of the 3 text boxes. Obviously this looks like a table with 1 column and 6 rows, but it appears to me to be just an html items merged together. Can you please explain how you did this Walter? Also how did you reference the code in the Protactulous action to use this items?

Walter’s Example - Protaculous Tabs

This example looks different in FW, I cannot add tables as the html item used is just one, not as the table you used in your previous example.

Which way do you think I should go? Dave’s example looks the simplest, but I am worried about the graphic boxes, Walter’s examples look very professional, but I am not an expert in coding and it looks to me more difficult to achieve.

Any comments on this?

Thanks

Michael


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I just tried with the Carousels action and was very optimistic, but the tabs style doesn’t look good.

Here are the instructions : Carousel in Freeway

  1. Use the Actions palette to enter the text you would like to appear within the link, and insert a space on either side of the Action-item in order to apply styling to the link text.

Ok I tried the above, the font changes but the link stays in ugly blue, colour can’t be changed.

  1. (Even more optional) Create a single CSS style with the Tag set to ‘.active’ and the Name property left blank, and add a border or some other bit of style to set off the currently selected tab from the others. Because this is a Tag-only style, you will not (and should not) apply it to anything on your page. Just having it in the list of styles is enough for it to be published and to work correctly.

Ok I did this too, but the colour and style changes only on click, not on hover.

Can I make something as clean as on this site in the middle you can see Overview, Specs, Accessories etc. http://www.christiedigital.com/en-us/product-support/discontinued-products/pages/christie-lx380-digital-projector.aspx

Those are tabs that work perfect, it shows you where you are as it changes the colour and the hover works nice.

I know believe this is almost impossible with FW, I tried basically everything.

Any suggestions?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Yes, you can build this with Freeway. You will need to do some mucking around in the Extended sub-dialog of the Edit Style dialog, but it can be done entirely in Freeway.

The thing you need to understand is that Freeway exposes some of the tools you will need, but not all of them. Some of the attributes you will set to create this style are, as a result, hidden in the design view, and only can be appreciated in the Preview mode or when viewing the page in a browser.

To start, set up your tabs as headers, intermingled with the inline content elements you want them to show and hide. Draw a single HTML box, large (especially tall) enough to hold all of your possible content elements, and name it ‘tabarea’ using the Title field in the Item Inspector. Double-click into that box and add your first tab text. Type a return at the end of the line, then triple-click in the tab text to highlight the entire line of tab text. Set the style to H3 (never mind at all what this looks like for now). Press the right arrow and from the main menu, choose Insert / Table. Set the rows/columns as you need for your content. Drag the width out to fill the width of your outer HTML box. Now double-click in the outer HTML box, press the right arrow a bunch of times, the then type your second tab, and style it as you did the first. Again, with the flashing text cursor at the end of the box, choose Insert / HTML Item. Repeat as necessary. (My point here is that it is possible to intermix Headers, HTML boxes and Table elements inline.)

Now, if you have applied the Protaculous code to the page, you need to allow for the possibility that the element following the H3 will be something other than a DIV. In the “tabbed” example, I used this code:

var tabarea = $('tabarea');
var tabholder = new Element('div',{id:'tabholder'});
tabarea.insert({top:tabholder});
var tabs = tabarea.select('h3');
var targets = [];
tabs.each(function(elm){
	elm._target = elm.next('div').hide();
	targets.push(elm._target);
	elm.observe('click',function(evt){
		targets.invoke('hide');
		tabs.invoke('removeClassName','active');
		elm.addClassName('active')._target.show();
	});
});
tabs.each(function(elm){
	tabholder.insert(elm.remove());
});
tabs.first().addClassName('active');
targets.first().show();

This line:

elm._target = elm.next('div').hide();

…sets up the effect to only work with an inline DIV following each header. While you could work around this by using Insert / HTML item to “wrap” your tables in DIV elements (insert a DIV, then double-click inside that inline DIV and insert a table into it) this is easily adjusted in the JavaScript. Simply make the line read:

elm._target = elm.next('div,table').hide();

This will let the effect work whether the following element is a div or a table.

Now at this point, you should have a functional (but probably ugly) example of the effect you wanted. The next part comes through applying CSS style to the tabs.

The script inserts an inline DIV (with the id ‘tabholder’) at the top of your ‘tabarea’ DIV, and moves the tab headers into that box when the page loads. So your styles need to be centered around the children of the #tabholder element.

I used this style:

<style type="text/css">
#tabholder h3 {
	display: inline-block;
	cursor: pointer;
	padding: 3px 12px;
	margin: 0;
	margin-right: 6px;
	background-color: #b5b5b5;
	border-top: 1px solid #9e9e9e;
	border-left: 1px solid #9e9e9e;
	border-right: 1px solid #9e9e9e;
	-webkit-border-top-left-radius: 5px;
	-webkit-border-top-right-radius: 5px;
	-moz-border-radius-topleft: 5px;
	-moz-border-radius-topright: 5px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
}

#tabholder h3.active {
	background-color: #fff;
	border-bottom: 1px solid #fff;
	margin-bottom: -1px;
}

#tabholder {
	height: auto !important;
	border-bottom: 1px solid #9e9e9e;
}
</style>

…which I simply wrote long-hand in a text editor and added into Freeway through the Page / HTML Markup dialog. Another way to attack this would be to add the attributes that Freeway doesn’t provide direct interface elements for. Stepping through the lines of code, the first rule is for the H3 children of the #tabholder element (the tabs). The first line (display: inline-block) sets the h3 elements to act like inline elements, rather than reserving the entire line to themselves as normal. The next line makes the cursor appear as if the tab was a link. The third line sets the tab to have some physical size (padding expands out from the box formed by the characters of text, without this, the tabs would be only as large as their text). The next two lines set up the margin on the tabs and the space between tabs. Then a background color is added to the box, and a border around the top, left, and right sides. Finally, the rest of the attributes set the rounded top corners.

All of these attributes except the background-color would need to be added through the Extended sub-dialog, as none of them have any analog in the Freeway interface.

The next rule sets the visual feedback for the currently active tab. The rule is again scoped to only the h3 elements in the #tabholder. All we’re changing is the background color and adding a white rule at the bottom of the active tab (to match the background color of the exposed tab). The negative margin shifts this tab down by 1px so its white bottom border will cover the gray bottom border of the #tabholder. This gives the effect of the tab “breaking” that rule, so it looks connected to the visual element below it.

Finally, the last rule sets a bottom border of the #tabholder element, and ensures that this element has no defined height, so it will “shrink-wrap” around the H3 elements inside it.

All right, so that gets you the visual look of my /tabbed/ example. If you wanted to match the exact look of the Christie example, you would need to use a fair bit more CSS. If you were only targeting IE 10 and Safari, Firefox, and Chrome, you could use CSS3 gradient backgrounds to make the outer bar. You could also just use a background image, tiled horizontally, to be more backward-compatible. That would be applied to the #tabholder element. Next, you would use the border-radius attribute to create the rounded corners (with all the fallbacks for older browsers) and you would allow IE < 9 to degrade gracefully to square corners. Some padding on #tabholder would create the margin for the tabs. Then, your #tabholder h3 would be inline-block again, but would have border-radius and padding to create the dimensions, and #tabholder h3.active would have the dark background color and white color. Off the top of my head, it would look something like this:

<style type="text/css">
#tabholder h3 {
	display: inline-block;
	cursor: pointer;
	padding: 8px;
	margin: 0;
	margin-right: 6px;
	-webkit-border-radius: 11px;
	-moz-border-radius: 11px;
	border-radius: 11px;
}

#tabholder h3.active {
	background-color: #333;
	color: #fff;
}

#tabholder {
	height: auto !important;
	padding: 8px;
	-webkit-border-radius: 13px;
	-moz-border-radius: 13px;
	border-radius: 13px;
	background: url(Resources/gradient.jpeg) repeat-x;
}
</style>

That would probably get you there.

Now I realize that this is mostly hand-coded CSS and JavaScript, not at all a part of the usual visual design process, so it would depend on your definition of “can’t be done in Freeway” whether you consider this to be a useful answer.

Walter

On Apr 9, 2012, at 6:41 AM, Michael Coldereo wrote:

Can I make something as clean as on this site in the middle you can see Overview, Specs, Accessories etc. http://www.christiedigital.com/en-us/product-support/discontinued-products/pages/christie-lx380-digital-projector.aspx

Those are tabs that work perfect, it shows you where you are as it changes the colour and the hover works nice.

I know believe this is almost impossible with FW, I tried basically everything.


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

man Walt that was a crazy answer.

I hope it works for him,

as far as me using…

tabs.first().addClassName(‘active’);

am I able to simply add this line somewhere to my page (if so how/where) which I used the tab area action in order to get the first tab to be colored upon load or is it much more involved?

http://hoffkids.com/FWtest/conferenceroom.html

thanks,

Barry


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Apr 9, 2012, at 11:25 AM, Hoffman wrote:

man Walt that was a crazy answer.

That was as clear and succinct an answer as I know how to give.

I hope it works for him,

as far as me using…

tabs.first().addClassName(‘active’);

You don’t appear to be using my tab code, so this line won’t do you any good.

am I able to simply add this line somewhere to my page (if so how/where) which I used the tab area action in order to get the first tab to be colored upon load or is it much more involved?

http://hoffkids.com/FWtest/conferenceroom.html

thanks,

Barry

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options