going back

Hi,

I’m working on a site that has a spawn new window action, which is a centred / ‘pop up’ and has a page with several ‘link to files’ action, to mp3 music clips.

The link works fine, switching to a progress bar (if thats what its called) appearing and the clip plays.
What I would like is for there to be a method where the user can go backwards from the clip, so they can play another clip.
The browser ‘back’ button (if I use that option) is not highlighted and command - back arrow doesn’t work either. Any thoughts if this can be achieved.
Amusingly the latter method reverses the music clip.

thanks,

seoras


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

When you pop a new window with Spawn New Window or other JavaScript means, the Back button won’t work because each window carries its own history. Since this is a new window, back doesn’t go anywhere, as you have seen.

What you need to do is close the current window, and you should be back to the originating window. The Spawn New Window includes a Close Window button Action. Make a big button graphic with BACK on it, and apply that Action. This will cause the spawned window to close, and magically you will be “back” at the underlying window, which didn’t go anywhere in the meantime.

Walter


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

On 13 Nov 2008, 3:28 pm, waltd wrote:
The Spawn New Window includes a Close Window button Action.

Not sure what your referring to here Walter.

Anyway.

I appreciate when the window has popped there will be no browser option to go back. For this I’ve added a ‘Close’ button.

I was wondering if when the clip started (quicktime) and took over the pop up there might be a way of going back within the pop up.

Did a road test on my pc and with EI at least windows media player kicks in, external to the pop up. So for those with that combination there isn’t a problem. They can easily access the pop up again which has a contents list and further sound clips. Those that don’t shall have to access the link that generated the pop up in the first instance.

regards,

seoras


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

Are you using the actual “Spawn New Window” Action, or are you using another Action? Could you provide a link to a demo page that includes the problem you’d like to solve?

Walter


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

Hi Walter,

no I don’t have a demo page available as yet. sorry I know that would help.

I’m using Paul Dunnings ‘spawn new window’ action 3.04.

On the ‘spawned’ window I have ‘link to file’ actions to get the mp3 music clips, so maybe the issue is there. I’m not calling it a problem as such its just annoying that the user will have to go back to the main and underlying window, in a sense starting over.
What i’m asking I suppose is for the pop up to behave so one can go back a step. sorry if over egging this point.
It might I’m anticipating not be possible. :expressionless:

thanks,

seoras


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

Yes, that is the problem. If you link to a bare file, then you leave it entirely up to the browser (always a very bad idea when Internet Explorer is around) what to do with the files. It’s a lot more work, but to do a real belt-and-suspenders job of it, you need to make a new page for each clip, drag the clip onto the page and make the controller the dimension you want it to appear, and then use a regular link to that page. When you do this, you will get the JavaScript that injects the object/embed tag and works around the many flaws of IE6 and 7.

Walter


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

Blimey ! Walter; are you ever away from your computer. Rapid reply or what!

That would be in the region of 150 new pages then for the clips, mmm… perhaps belt and suspenders will have to wait.

In this instance IE 6/7 on pc might actually be in my favor as it launches wmp so the pop up doesn’t need to be clicked away.

Not to prolong this thread but would an alternative file format have helped in this instance ?
The site that I’m revamping had the clips download so think my method is ever so slightly more elegant if still not ideal.

Thanks again for help.

seoras


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

If you hunt around a bit, you might find a Flash player that you could embed in the page, and then target it with URL-variables like this:

http://yoursite.com/player.html?file=something.mp3

So you could get away with making one extra page (to hold the player) and a lot of manual links.

And no, sadly, I am rarely far from one of my computers. Or my iPhone.

Walter


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

And no, sadly, I am rarely far from one of my computers. Or my iPhone.

Appreciated and thankyou from the many you’ve helped.

seoras


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

Just noted that users could right click on the link, then there’s the option to open in new tab, assuming their browser supports them. The tab opening with the clip in the pop up.

seoras


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

Hi,

Sorry to come back to this again. But client is not that keen on the right click option I thought ok.
This would be an example of what would be ideal: http://www.peatbogfaeries.com/music.html
But opening via the pop up I have. Still cannot understand why the back button doesn’t work in this instance.
This is the site I’m working on: WordPress.com

thanks,

seoras


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

If you open a pop-up, that becomes a new window, and each window has
its own history object. If you close the popped window, then the
history of the underlying window will be current up to the moment
that the new window was popped, at which time it stopped being
updated by user events. (Only the top-most window receives browser
events at any time, unless you directly modify the history object
using JavaScript.) So if you close the top window, and press the back
button in the underlying window, you will go back one history event
from the perspective of that window, not from the perspective of the
user.

Walter

On Nov 25, 2008, at 6:03 AM, seoras wrote:

But opening via the pop up I have. Still cannot understand why the
back button doesn’t work in this instance.


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

Hi again Walter, Sorry to labour on with this one.

Having just typed a reply the penny dropped - I think.

So; the 'Link to file ’ action I have to link to the mp3 files in essence opens a ‘new window’ thus no way backwards and resultant problem. Even though that window is in an existing browser window, the pop up.

Could the ‘Link to file’ action I have at the moment not also have an additional ‘open new tab or window’ element ? Without right clicking. Or some other way of doing it. I’m rather fond of pop up’s like this so keen not to have to reinvent this particular wheel. Not sure of a more elegant way at this stage anyway.

Looking for a solution.

s


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

If you open a new window and give it a name in the process (this
happens in JavaScript, and the Action is probably doing it without
giving you an option about it) then any subsequent calls to the same
name will populate that named window with the desired content if the
window already exists, or open a new one and give it that name if it
doesn’t.

The Link to File Action does something different, though, at least I
think it does. Rather than opening a window explicitly with a command
like window.open('page.html','window_name', other parameters), all
it does is create an HTML link to the file and let the browser work
out what it’s going to do with that file. In other words, it uses
default browser behavior, and in cases where a file cannot be managed
by the browser alone (anything except Web-friendly image formats and
HTML) then the browser will usually create a new blank generic window
and then download the file to the default download location, or in
the case of something that it does understand, like QuickTime or
other plug-in content, it will use the appropriate plug-in to display
the non-Web content in that new browser-default window.

Contrast this behavior with using the Spawn New Window or Link to New
Window Actions:

In those cases, you must first create an HTML page to hold the non-
standard content, place that non-standard content within the page,
let Freeway write whatever plug-in “glue” code is needed to work
around various browser failings (cough, cough, IE, cough) and then
use the Action to select that “wrapper page” as the content to load
into a named, sized, and fully-configured daughter window. (Using
either of these Actions, you can set the daughter window to have no
tool bar, no scroll bars, to be fixed-size, etc., and you can also
name the daughter window so that it can be re-used.)

Here’s how I would work this out.

Make a new Master Page just for your media items (sound files,
movies, whatever). Make it small and give it a generic headline like
Media Player or similar, and put an instance of the Close Button
Action (part of Spawn New Window) prominently marked as “Close this
Window” or similar in the top-right corner. Put an HTML box in the
middle of this master page. On each copy of the page that you make
(one per media file) simply drag the media file into the HTML box to
place it, and give the page a meaningful filename so you can spot it
in the list when it comes time to link to it. Repeat for each of your
media files.

Now draw a graphic box on the page from which you want to launch this
media player (your music index page, for example). Fill it with
graphic text identifying the track you want to play, and the
instruction Click to Play or whatever. Apply the Spawn New Window
Action to this graphic. Set the preferences for a window size and
other controls as you like, and choose the first “media page” you
made in the previous step. Once you have all these settings as you
like, test it out and make sure that it opens the way you expect.
When everything is configured, use step and repeat or copy and paste
to create duplicates of this original configured graphic. (All the
Action settings – and the Action itself – will come along for the
ride when it’s copied.) Change the text in the box, change the target
page in the Actions palette, repeat for each media file. (You won’t
need to make all those configuration setting changes if you follow
this technique – only change the one or two things that matter.)

Now, since all of these buttons are calling – by name – to the one
media player “daughter” window, you will only ever have one little
floating player. If the user closes this daughter window, then fine,
the next click will clone a new one. If they don’t, that’s also fine.
In any case, each click to play a file will open this one window (or
bring it to front if it was hiding behind the main window) and load
the desired media. Since this will be loading a full-fledged Freeway
page, any necessary JavaScript shims or plug-in code libraries will
be invoked, just as any other real page would do. You will not be
relying on the browser to figure it out and do the “right
thing” (which, in the case of IE, is a highly optimistic notion under
even the best of circumstances).

Is this a whole lot more work than linking to the “bare” file? Yes,
of course it is. But welcome to the world of supporting your visitors
– doing the extra work so they don’t end up confused.

Walter

On Nov 25, 2008, at 11:33 AM, seoras wrote:

So; the 'Link to file ’ action I have to link to the mp3 files in
essence opens a ‘new window’ thus no way backwards and resultant
problem. Even though that window is in an existing browser window,
the pop up.


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

Wow !! Walter,

It’ll take me a wee while to take in your thoughts but looks a possible route.
Not too worried about more work if it gets things right. And a happy client.
I haven’t been idle, trying out various options, the latest is using the ‘Text link to new window’ action which works ok if not that elegant to have another window, yes I know having pop ups is not particularly deemed ideal in the first instance.
The client seems ok for a media player to come up so looking into that, possibly going back to using rm files rather than more universal and current mp3’s that kick off the quicktime in the browser.

Very many thanks again,

s


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

Hi,

Well, it seems that the ‘Text link to new window’ route is the one to go for in this case, it works if not elegant but importantly the client is very happy. Of course pc/IE7 does its own thing and opens WMP.

I would have liked (ignoring that I liked the right click route) your suggestion Walter at least then I could have played with positioning the window.

Thanks for your time and help.

seoras


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