[Pro] Link to New Window

Hi,

I have utilised this action in my website to allow the visitor to listen to a music file while they can still browse the rest of the site in their original window. This works fine.

I have a slight problem in that another part of the website, another link to new window is used for a different page, different size etc.

The problem occurs if the user already has 1 new window open and continues to browse the web site, when they click the other Link to new window option, this second window opens in my first new window with the original dimensions. Thus losing the connection to the music file and looking shabby due to window not being correct size !

Any ideas? I can see anything in the action to control this.


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

Hi Neil ,
At the top of the action interface you’ll see a field called ‘Window
name’. Make sure that the two instances of the action are using
different names. At the moment the second link is opening the content
in the first named window because it already exists.
Regards,
Tim.

On 9 Mar 2010, at 11:15, Neil wrote:

Any ideas? I can see anything in the action to control this.

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


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

Hi Tim,

Thanks for the advice.
You were correct in that the window name in all my actions were the same.
I have gone through all the occurrences of this action and given each window a unique name.
I uploaded the new info but the problem still exists !

The new name appears in the window but the size stays as which ever window was opened first and the content of the first window changes to that of the second link.


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

I wish I could delete posts !!

Apologies Tim. Your suggestion worked a treat.

It would help if I uploaded the info into the correct folder !!!Doh!

Thanks again,
Neil


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

Sorry, misleading post from myself.

Yes, it is working well.

Thanks for all your help.

I originally set up it with an incorrect path to the folder containing the files.

Is there a way to style or format the text in the Ajax action?

Thanks


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

Is there a way to style or format the text in the Ajax action?

Bear in mind that your threads have crossed I will answer here rather than the Ajax file listing thread

Yes - You can style the file listing text using a Tag style.

Name the action container in your FW layout (in the inspector) - give it a meaningful name like ‘ajaxfilelister’.

Go to your text styles palette and click on the Gear icon and select New Style

In the dialogue that opens type #ajaxfilelister in the Tag field and then tab over to the Name field and delete whatever FW has put in there for you.

Then in the attributes for Character and Paragraph add whatever styling you want.

Once you have finished OK the dialogue and you are done. (Check before OKing that the Name field is empty)

Because this is a Tag style it will target any item in your FW doc that is called ‘ajaxfilelister’ - you do not need to apply the style to anything for it to work.

David


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

If you read the instructions on ActionsForge, there’s a bit about how
you do this. Basically you create some styles in Freeway that apply to
the elements generated by the Action. You will need to use the “Tag-
only Style Trick” in Freeway to generate these, or you can use an
external CSS application and attach the stylesheet to your page with
the External Stylesheet Action.

The list will be generated like this:

<ul class="dirlist">
	<li class="even">(link to file) ...
	<li class="odd"> ...
	...
</ul>

So the styles you would need to make would be called:

.dirlist
.dirlist li
.dirlist li a
.even
.odd

The first one is for the list itself. A basic set of rules for it
would be to remove all hints of style with a reset:

.dirlist { margin: 0; padding: 0; border: none; background: none; }

Then remove the bullets from the list items:

.dirlist li { list-style-type: none; margin: 0; padding: 0; }

Now give the links a bit more room to breathe:

.dirlist li a { padding: 2px 4px; display: block; text-decoration:  

none; }

And a hover effect to make them pop when you mouse over them:

.dirlist li a:hover { font-weight: bold; color: #ffffff; background- 

color: #3773ff;}

And finally, the zebra stripe to give it the look of a Finder window
in list view:

.dirlist li.even a { background-color: #ebf1f8; }

And you are all set.

Walter

On Mar 9, 2010, at 2:28 PM, Neil wrote:

Is there a way to style or format the text in the Ajax action?


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