[Pro] SNW and multiple links to other pages

Hello, is there a way to create multiple links to other pages within a window that pops up with the SNW action. Example: I have a SNW pop-up and I want the user to have the possibility to go to an other page on the same site without a new window popping up. Thanks, Lode


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

If you use SNW with the iPad friendly setting make sure that the page that you are using in SNW is doctype transitional and set your links in it with Target: _parent it should work.

David


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

I am pretty sure you can put whatever you like inside of a SNW window. But there’s a catch. You will need to use JavaScript to navigate the main window to a different URL, whether you are using the iPad-friendly or the regular (daughter window) mode of SNW. In either case, the only place that links can navigate is within the frame that the page containing them exists. Either that’s an iframe, as in the iPad-friendly layout, or a completely separate window. This is more complex than you might thing to sort out.

In either case, the link must be made using the External tab of the Hyperlink dialog, with the URL set to # (a single hash mark or octothorp).

If you are using the daughter window approach (new window appears above the current window, with its own close button):

Click Extended in the Hyperlink dialog, make sure the segment is highlighted (not the segment, and click New. In the resulting sub-sub-dialog, enter:

  • Name: onclick
  • Value: window.opener.location.href = 'your_destination.html'; window.close()

(If you’re reading this in Mail, ignore the outer back-ticks above, they are there to cheat the Web formatter into not curling the quotes and ruining the code.)

Make sure your URL is properly entered, and make sure that all of the quotes are “dumb” typewriter quotes. You must use single-quotes, as above, because Freeway will wrap the whole thing in a set of double-quotes.

If you are using the iPad-friendly mode, you have two options. If you’re using a Transitional document type, you can just add Target: _top through the normal Target picker. If you are using a Strict doctype, then follow the instructions above, but enter this string instead in the Value field: window.top.location.href = 'your_destination.html' No need for the window.close part.

Walter

On Jan 25, 2013, at 10:10 AM, Lode Rosel wrote:

Hello, is there a way to create multiple links to other pages within a window that pops up with the SNW action. Example: I have a SNW pop-up and I want the user to have the possibility to go to an other page on the same site without a new window popping up. Thanks, Lode


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


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

Just to clarify this, and as Dave pointed out, if you use this technique, then ignore the part above that in my directions where I tell you to set the URL to “#” – just put in the regular URL and select _top as the Target.

Walter

On Jan 25, 2013, at 10:30 AM, Walter Lee Davis wrote:

f you are using the iPad-friendly mode, you have two options. If you’re using a Transitional document type, you can just add Target: _top through the normal Target picker.


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

Hi guys, thanks for the swift reply. And it works like charm in iPad mode, very simple, but you need to know.

I have an other question. Can 2 Carrousels on 1 page in “sync” be controlled with one “button”? Example: “Image” and “Text” stopped and re-start together. I can bring them together, but that creates a “big gap” when they slide.

Thanks again, Lode


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

No, the carousels are designed to slide independent of one another and to have separate controls. While you can have two buttons for the same carousel that do the same thing, you cannot have one button control multiple carousels. The fact that they start animating at the same time (when the page loads) is completely unrelated to their controls.

Walter

On Jan 25, 2013, at 12:58 PM, Lode Rosel wrote:

Hi guys, thanks for the swift reply. And it works like charm in iPad mode, very simple, but you need to know.

I have an other question. Can 2 Carrousels on 1 page in “sync” be controlled with one “button”? Example: “Image” and “Text” stopped and re-start together. I can bring them together, but that creates a “big gap” when they slide.

Thanks again, Lode


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


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

But you can construct a single Carousel so that it looks like 2 - obviously not separated on the page and the individual image and text Panes would have to be within 1 Carousel Pane.

D


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