Forum Moderators: open

Message Too Old, No Replies

Launching Acrobat Reader

         

kmbarz

8:31 pm on Jun 16, 2004 (gmt 0)

10+ Year Member



I have a menu that was created in Fireworks. When you set up the links from the menu, the function call looks like this:

window.open('printables/AEForm.htm', '_blank');

This works great for my html forms, but some were sent to me as pdf files. When I try

window.open('printables/AEForm.pdf', '_blank');

Acrobat Reader pulls up and is embedded in the browser, so far so good. But, when I go to close this window, I get some error about an instruction at memory location... unable to be read. Then the computer locks up. People here with full Acrobat don't have this problem.

So, instead of this approach, how would I go about having Acrobat Reader launch independently instead of being embedded as window.open does?

Thanks

DrDoc

8:33 pm on Jun 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld!

That's an individual setting for each computer. There is nothing you can do in the link to force Acrobat Reader to open as a separate instance instead of in the browser.

createErrorMsg

10:08 pm on Jun 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your question confuses me. The window.open() method exists for the sole purpose of opening a new window. The '_blank' (which I've never seen in a open() method before) is redundant, isn't it?

Just window.open('yourfile.pdf') should open the pdf file in a new window, which would then pull up Acrobat Reader and, depending upon your settings, embed in that window or open one of it's own.

choster

11:47 pm on Jun 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Here, _blank is the name of the window being opened. It could just as easily be blank or something else.