Can you reload a page with a PDF in it?

View: New views
3 Messages — Rating Filter:   Alert me  

Can you reload a page with a PDF in it?

by Andrew Fandre :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a frameset layout (hey it works for this instance!).

The larger frame gets loaded with a pdf from the smaller frame. The smaller frame has some user variables that make up the dynamic pdf. The javascript call loads the initial page just fine, but subsequent calls don't reload the page.

parent._largeFrame.document.location.replace("url + variables");

It works great until the page is loaded with a pdf, then the javascript doesn't reload the page with new variables. Is there a way to make javascript reload the frame when a PDF is already on the page?

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313849
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: Can you reload a page with a PDF in it?

by Jason Fisher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Try using

parent._largeFrame.document.location.href = "url + variables";

You need to make it actually run the whole page request in that target frame, not just refresh.  If you pull up your dynamic PDF in a simple window, for example, and then hit F5, you'll see the binary output ... the headers don't re-render or something.  I'm guessing it's the same in a frameset.

Worth a shot :)


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313850
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4

Re: Can you reload a page with a PDF in it?

by S. Isaac Dealey :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> parent._largeFrame.document.location.replace("url + variables");

You might try this:

<framset>
<frame name="_smallFrame" />
<frame name="_largeFrame" id="_largeFrame" />
</frameset>

And JS:

parent.document.getElementById('_largeFrame').src = "url + variables";

I don't think it will have quite the same effect as replace() but it
should get around whatever issue is going on with the pdf plugin not
supporting the javascript.

I think you might be able to use removeNode() and appendNode() as an
alternative if you built a new frame with document.createElement().


--
s. isaac dealey  ^  new epoch
 isn't it time for a change?
     ph: 781.769.0723

http://onTap.riaforge.org/blog



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:313857
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.4
LightInTheBox - Buy quality products at wholesale price!