Toon posts:

[JS] print iframe onload

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb de search gebruikt en met google kwam ik niet veel verder.

Ik heb een Iframe waar ik dynamisch print.aspx?id=XX in laad, op deze pagina heb ik een <body onload staan met window.print()

Het probleem is dat hij de hele parentpagina print incl. de iframe, nu wil ik dat hij alleen de pagina print in het iframe, weet iemand hier een oplossing voor?

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

1. JavaScript hoort in [WG]

2. window.print() print het window. Waarom gebruik je niet naamVanHetiFrame.print()?

[ Voor 4% gewijzigd door BtM909 op 26-01-2004 11:30 ]

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • curry684
  • Registratie: Juni 2000
  • Laatst online: 12-05 22:23

curry684

left part of the evil twins

Verwijderd schreef op 26 januari 2004 @ 11:25:
Ik heb de search gebruikt en met google kwam ik niet veel verder.
Kan wellicht omdat je in het verkeerde forum gezocht hebt en niet eens de FAQ erop hebt nageslagen, want dan had je P&W FAQ - HTML / javascript /css, etc... wel gevonden :z

Hop, naar Webdesign & Graphics dus.

Professionele website nodig?


Verwijderd

Topicstarter
BtM909 schreef op 26 januari 2004 @ 11:30:
1. JavaScript hoort in [WG]

2. window.print() print het window. Waarom gebruik je niet naamVanHetiFrame.print()?
1. het spijt me B)

2. naamVanHetiFrame.print() werkt helaas niet

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

Sorry:

naamVanHetiFrame.focus();
naamVanHetiFrame.print();

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


Verwijderd

Topicstarter
thanks!

onload="this.focus(); this.print();"
Pagina: 1