This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > November 2007 > Open New Window again





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Open New Window again
johnny promo

2007-11-20, 6:15 pm

Trying to open a new window which is a pdf. Usual code doesn't seem to work presumably because there's no html page. Anyone anty ideas?

J
Rob Dillon

2007-11-21, 6:15 pm

What do you mean by "doesn't seem to work..."? Does nothing happen? Does the
pdf download instead? If you are opening a .pdf document from a server then how
that document performs is determined by the user's browser settings. If the
user has a pdf plugin and has set pdf docs to open then it will open in a
browser window. Otherwise, it may attept to download to the user's computer.

johnny promo

2007-11-21, 6:15 pm

Hi rob
it appears in Safari in the browser window but not in a 'new' window. Downloads are no problem. It's just without a new window the page is lost within the 100& Flash site.
Rob Dillon

2007-11-21, 6:15 pm

Can you show the code that you're using to open the pdf in the same window and in a new window?
johnny promo

2007-11-21, 10:15 pm

NEW WINDOW

on (release) {
getURL("javascript:window.open('http://www.luigisdelicatessen.com/TheLondonPaperApr07.pdf" ");
}

SAME WINDOW
No javascript:window.open
Rob Dillon

2007-11-22, 6:14 pm

There are a couple of problems with the code that you posted. It should have
generated an error. Try this instead:

on (release) {

getURL("javascript:window.open('http://www.luigisdelicatessen.com/TheLondonPaper
Apr07.pdf')");
}

Alternately,you can just use a target attribute in a normal getURL function:

on (release) {
getURL("http://www.luigisdelicatessen.com/TheLondonPaperApr07.pdf", "_blank");

It will achieve the same result without having to rely on javascript on the
user's computer.
}

johnny promo

2007-11-22, 6:14 pm

Thanks for this Rob. You do a great job and must think some of us complete
idiots. My problem is that I work with Flash only now and again and forget/get
mixed up with what I'm doing. This Forum is a lifesaver sometimes.

Thanks again.
Speak soon :-)

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews