Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print a indvidual frame programatically?
Message
From
11/08/2002 11:45:46
Mike Sue-Ping
Cambridge, Ontario, Canada
 
 
To
10/08/2002 14:08:09
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00688324
Message ID:
00688418
Views:
19
Michel,

I'm supporting IE only and as such I'll give your second script a try. This is much easier to understand. As I said before, I don't know much about Javascript and my previous "complicated" code worked ok at the time:)

I appreciate the help

Mike

>Try something like this from the calling frame:
>
>
><A HREF=javascript:parent.YourFrameName.print()>Print the content of the YourFrameName frame</A>
>
>
>Note that will only work in Netscape. If you wish to make that work in IE, you'll have to use another approach. Basically, the concept is to put the focus on the targeted frame. IE will only print where the focus is. So, even if you put the target in the command, it won't work. So, the focus has to be put in the proper frame first. Something like this will work:
>
>
><A HREF=javascript:PrintIt()>Print the content of the YourFrameName frame</A>
>
><SCRIPT>
>function PrintIt()
>{
>   window.parent.YourFrameName.focus()
>   window.parent.YourFrameName.print()
>}
></SCRIPT>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform