[Javascript] problem to print embdad pdf which is in object tag in Fire fox

vivek joshi vivekjoshi07 at gmail.com
Mon Jul 12 08:49:11 CDT 2010


Hi philip

  i have tried after removeing the body tag , but problem is same .it gives
the error print function is not present. my requirement is that I need a
common code for both IE and Firefox

On Mon, Jul 12, 2010 at 6:57 PM, Philip Thompson <philthathril at gmail.com>wrote:

>  On Jul 12, 2010, at 5:58 AM, vivek joshi wrote:
>
> > Hi All
> >
> > can any one please help me. i am not able to print embaded pdf in
> > FireFox ,the same code is working fine in IE ,the code is given below
> >
> >
> >
> > <html>
> > <head>
> > <script>
> > function doit() {
> > //alert("x");
> > var x=document.getElementById("doodad");
> > //alert(x);
> > //x.click();
> > //x.setActive();
> >   //x.focus();
> > //window.parent.frames["a"].document.getElementById("doodad").print();
> >     x.print();
> > }
> > </script>
> > </head>
> > <body>
> > <frameset rows='*' framespacing='0' border='0' frameborder='0'>
> > <frame id="topframe" name="topframe">
> > <object id="doodad" data="
> >
> http://bnbussys4web1.pb.com/images/LabelToPDF.pdf#toolbar=0&navpanes=0&scrollbar=0
> "
> > type="application/pdf" width="500" height="500">
> > </object>
> > <button onclick="doit()">click</button>
> > </frame>
> > </frameset>
> > </body>
> > </html>
>
>
> First, you should probably filter the extra junk out of your example...
> people don't want to have to wade through it to find what the issue is.
> Second, you can't have a "body" tag and a "frameset" tag in the same file
> (unless you include a body tag within a "noframeset" tag). I don't think
> this will necessarily fix the issue you're having, but try cleaning it up
> first.
>
> ~Philip
> _______________________________________________
> Javascript mailing list
> Javascript at lists.evolt.org
> http://lists.evolt.org/mailman/listinfo/javascript
>


More information about the Javascript mailing list