Does anyone know of a cross browser solution to print a page/url after a user clicks a button? Currently, I''m using a "hidden" iframe to do my bidding. But from my experience, IE requires that the iframe''s src attribute be set initially to the url, in order for the page to open properly. I wasn''t able to add the iframe to the page dynamically, either. So this doesn''t work with IE, but it does with Firefox: <html> <head> <script language="javascript" type="text/javascript"> function PrintAPage() { $(''printer'').src = ''someprintpage.html''; } </script> </head> <body> <span onclick="PrintAPage()">Print a page</span> <iframe id="printer" height="1" width="1" ></iframe> </body> </html> _______________ As a side point, someprintpage.html would have this bit of code on it: <html> <head> <script language="javascript" type="text/javascript"> window.focus(); window.print(); </script> </head> <body> ... </body> </html> Thanks for any help Jim -- Jim Geurts Bia Creations, LLC http://biacreations.com 410-493-9385 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
i''m kinda lost about what your trying to accomplish, if your trying to print a page''s content in a printer friendly form you can use CSS for that. -Jaimz Jim Geurts wrote:> Does anyone know of a cross browser solution to print a page/url after > a user clicks a button? > > Currently, I''m using a "hidden" iframe to do my bidding. But from my > experience, IE requires that the iframe''s src attribute be set > initially to the url, in order for the page to open properly. I > wasn''t able to add the iframe to the page dynamically, either. > > So this doesn''t work with IE, but it does with Firefox: > > <html> > <head> > <script language="javascript" type="text/javascript"> > function PrintAPage() { > $(''printer'').src = ''someprintpage.html''; > } > </script> > </head> > <body> > > <span onclick="PrintAPage()">Print a page</span> > > <iframe id="printer" height="1" width="1" ></iframe> > </body> > </html> > > > _______________ > > As a side point, someprintpage.html would have this bit of code on it: > > <html> > <head> > <script language="javascript" type="text/javascript"> > window.focus(); > window.print(); > </script> > </head> > <body> > ... > </body> > </html> > > > > Thanks for any help > > Jim > > > -- > Jim Geurts > Bia Creations, LLC > http://biacreations.com > 410-493-9385 > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Sorry about that. I want to print a separate page when the user clicks a button/span, without navigating the user to that page. On 5/9/06, Jaimz <jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org> wrote:> > i''m kinda lost about what your trying to accomplish, if your trying to > print a page''s content in a printer friendly form you can use CSS for > that. > > -Jaimz > > Jim Geurts wrote: > > Does anyone know of a cross browser solution to print a page/url after > > a user clicks a button? > > > > Currently, I''m using a "hidden" iframe to do my bidding. But from my > > experience, IE requires that the iframe''s src attribute be set > > initially to the url, in order for the page to open properly. I > > wasn''t able to add the iframe to the page dynamically, either. > > > > So this doesn''t work with IE, but it does with Firefox: > > > > <html> > > <head> > > <script language="javascript" type="text/javascript"> > > function PrintAPage() { > > $(''printer'').src = ''someprintpage.html''; > > } > > </script> > > </head> > > <body> > > > > <span onclick="PrintAPage()">Print a page</span> > > > > <iframe id="printer" height="1" width="1" ></iframe> > > </body> > > </html> > > > > > > _______________ > > > > As a side point, someprintpage.html would have this bit of code on it: > > > > <html> > > <head> > > <script language="javascript" type="text/javascript"> > > window.focus(); > > window.print(); > > </script> > > </head> > > <body> > > ... > > </body> > > </html> > > > > > > > > Thanks for any help > > > > Jim > > > > > > -- > > Jim Geurts > > Bia Creations, LLC > > http://biacreations.com > > 410-493-9385 > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Jim Geurts Bia Creations, LLC http://biacreations.com 410-493-9385 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
well, if you want to be safe to think that your page is compatible with all used browsers then you shouldn''t force print. IE on mac doesn''t support window.print(); you could just show the page and let them print it. otherwise i''d say the iframe is your best bet ;) -Jaimz Jim Geurts wrote:> Sorry about that. I want to print a separate page when the user > clicks a button/span, without navigating the user to that page. > > > On 5/9/06, *Jaimz* < jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org>> wrote: > > i''m kinda lost about what your trying to accomplish, if your > trying to > print a page''s content in a printer friendly form you can use CSS > for that. > > -Jaimz > > Jim Geurts wrote: > > Does anyone know of a cross browser solution to print a page/url > after > > a user clicks a button? > > > > Currently, I''m using a "hidden" iframe to do my bidding. But > from my > > experience, IE requires that the iframe''s src attribute be set > > initially to the url, in order for the page to open properly. I > > wasn''t able to add the iframe to the page dynamically, either. > > > > So this doesn''t work with IE, but it does with Firefox: > > > > <html> > > <head> > > <script language="javascript" type="text/javascript"> > > function PrintAPage() { > > $(''printer'').src = ''someprintpage.html''; > > } > > </script> > > </head> > > <body> > > > > <span onclick="PrintAPage()">Print a page</span> > > > > <iframe id="printer" height="1" width="1" ></iframe> > > </body> > > </html> > > > > > > _______________ > > > > As a side point, someprintpage.html would have this bit of code > on it: > > > > <html> > > <head> > > <script language="javascript" type="text/javascript"> > > window.focus(); > > window.print(); > > </script> > > </head> > > <body> > > ... > > </body> > > </html> > > > > > > > > Thanks for any help > > > > Jim > > > > > > -- > > Jim Geurts > > Bia Creations, LLC > > http://biacreations.com > > 410-493-9385 > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > -- > Jim Geurts > Bia Creations, LLC > http://biacreations.com > 410-493-9385 > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
I''m really not all that concerned with supporting IE on the mac. I''m fine with telling mac users to ditch IE. Google maps seems to do exactly what I want, but I haven''t dissected it to see how they accomplished it... perhaps it''s time for that :( On 5/9/06, Jaimz <jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org> wrote:> > well, if you want to be safe to think that your page is compatible with > all used browsers then you shouldn''t force print. IE on mac doesn''t > support window.print(); > > you could just show the page and let them print it. > > otherwise i''d say the iframe is your best bet ;) > > -Jaimz > > Jim Geurts wrote: > > Sorry about that. I want to print a separate page when the user > > clicks a button/span, without navigating the user to that page. > > > > > > On 5/9/06, *Jaimz* < jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org > > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org>> wrote: > > > > i''m kinda lost about what your trying to accomplish, if your > > trying to > > print a page''s content in a printer friendly form you can use CSS > > for that. > > > > -Jaimz > > > > Jim Geurts wrote: > > > Does anyone know of a cross browser solution to print a page/url > > after > > > a user clicks a button? > > > > > > Currently, I''m using a "hidden" iframe to do my bidding. But > > from my > > > experience, IE requires that the iframe''s src attribute be set > > > initially to the url, in order for the page to open properly. I > > > wasn''t able to add the iframe to the page dynamically, either. > > > > > > So this doesn''t work with IE, but it does with Firefox: > > > > > > <html> > > > <head> > > > <script language="javascript" type="text/javascript"> > > > function PrintAPage() { > > > $(''printer'').src = ''someprintpage.html''; > > > } > > > </script> > > > </head> > > > <body> > > > > > > <span onclick="PrintAPage()">Print a page</span> > > > > > > <iframe id="printer" height="1" width="1" ></iframe> > > > </body> > > > </html> > > > > > > > > > _______________ > > > > > > As a side point, someprintpage.html would have this bit of code > > on it: > > > > > > <html> > > > <head> > > > <script language="javascript" type="text/javascript"> > > > window.focus(); > > > window.print(); > > > </script> > > > </head> > > > <body> > > > ... > > > </body> > > > </html> > > > > > > > > > > > > Thanks for any help > > > > > > Jim > > > > > > > > > -- > > > Jim Geurts > > > Bia Creations, LLC > > > http://biacreations.com > > > 410-493-9385 > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > > -- > > Jim Geurts > > Bia Creations, LLC > > http://biacreations.com > > 410-493-9385 > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Jim Geurts Bia Creations, LLC http://biacreations.com 410-493-9385 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
from what i understand google maps loves thier iframes! if i get the time to tinker with it i''ll let you know. -Jaimz Jim Geurts wrote:> I''m really not all that concerned with supporting IE on the mac. I''m > fine with telling mac users to ditch IE. Google maps seems to do > exactly what I want, but I haven''t dissected it to see how they > accomplished it... perhaps it''s time for that :( > > > > On 5/9/06, *Jaimz* <jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org>> wrote: > > well, if you want to be safe to think that your page is compatible > with > all used browsers then you shouldn''t force print. IE on mac doesn''t > support window.print(); > > you could just show the page and let them print it. > > otherwise i''d say the iframe is your best bet ;) > > -Jaimz > > Jim Geurts wrote: > > Sorry about that. I want to print a separate page when the user > > clicks a button/span, without navigating the user to that page. > > > > > > On 5/9/06, *Jaimz* < jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org> > > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org>>> > wrote: > > > > i''m kinda lost about what your trying to accomplish, if your > > trying to > > print a page''s content in a printer friendly form you can > use CSS > > for that. > > > > -Jaimz > > > > Jim Geurts wrote: > > > Does anyone know of a cross browser solution to print a > page/url > > after > > > a user clicks a button? > > > > > > Currently, I''m using a "hidden" iframe to do my bidding. But > > from my > > > experience, IE requires that the iframe''s src attribute be set > > > initially to the url, in order for the page to open > properly. I > > > wasn''t able to add the iframe to the page dynamically, > either. > > > > > > So this doesn''t work with IE, but it does with Firefox: > > > > > > <html> > > > <head> > > > <script language="javascript" type="text/javascript"> > > > function PrintAPage() { > > > $(''printer'').src = ''someprintpage.html''; > > > } > > > </script> > > > </head> > > > <body> > > > > > > <span onclick="PrintAPage()">Print a page</span> > > > > > > <iframe id="printer" height="1" width="1" ></iframe> > > > </body> > > > </html> > > > > > > > > > _______________ > > > > > > As a side point, someprintpage.html would have this bit of > code > > on it: > > > > > > <html> > > > <head> > > > <script language="javascript" type="text/javascript"> > > > window.focus(); > > > window.print(); > > > </script> > > > </head> > > > <body> > > > ... > > > </body> > > > </html> > > > > > > > > > > > > Thanks for any help > > > > > > Jim > > > > > > > > > -- > > > Jim Geurts > > > Bia Creations, LLC > > > http://biacreations.com > > > 410-493-9385 > > > > > > ------------------------------------------------------------------------ > > > > > > > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>> > > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> > > > > > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>> > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> > > > > > > > > > > -- > > Jim Geurts > > Bia Creations, LLC > > http://biacreations.com > > 410-493-9385 > > > ------------------------------------------------------------------------ > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > -- > Jim Geurts > Bia Creations, LLC > http://biacreations.com > 410-493-9385 > ------------------------------------------------------------------------ > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >
Here''s a good article for learning how google does some of their iframe fun :) http://alex.dojotoolkit.org/?p=545 On 5/9/06, Jaimz <jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org> wrote:> > from what i understand google maps loves thier iframes! > > if i get the time to tinker with it i''ll let you know. > > -Jaimz > > Jim Geurts wrote: > > I''m really not all that concerned with supporting IE on the mac. I''m > > fine with telling mac users to ditch IE. Google maps seems to do > > exactly what I want, but I haven''t dissected it to see how they > > accomplished it... perhaps it''s time for that :( > > > > > > > > On 5/9/06, *Jaimz* <jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org > > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org>> wrote: > > > > well, if you want to be safe to think that your page is compatible > > with > > all used browsers then you shouldn''t force print. IE on mac doesn''t > > support window.print(); > > > > you could just show the page and let them print it. > > > > otherwise i''d say the iframe is your best bet ;) > > > > -Jaimz > > > > Jim Geurts wrote: > > > Sorry about that. I want to print a separate page when the user > > > clicks a button/span, without navigating the user to that page. > > > > > > > > > On 5/9/06, *Jaimz* < jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org > > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org> > > > <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org <mailto:jaimz-uIlgR+TDBxns2ve5o0e2fw@public.gmane.org>>> > > wrote: > > > > > > i''m kinda lost about what your trying to accomplish, if your > > > trying to > > > print a page''s content in a printer friendly form you can > > use CSS > > > for that. > > > > > > -Jaimz > > > > > > Jim Geurts wrote: > > > > Does anyone know of a cross browser solution to print a > > page/url > > > after > > > > a user clicks a button? > > > > > > > > Currently, I''m using a "hidden" iframe to do my > bidding. But > > > from my > > > > experience, IE requires that the iframe''s src attribute be > set > > > > initially to the url, in order for the page to open > > properly. I > > > > wasn''t able to add the iframe to the page dynamically, > > either. > > > > > > > > So this doesn''t work with IE, but it does with Firefox: > > > > > > > > <html> > > > > <head> > > > > <script language="javascript" type="text/javascript"> > > > > function PrintAPage() { > > > > $(''printer'').src = ''someprintpage.html''; > > > > } > > > > </script> > > > > </head> > > > > <body> > > > > > > > > <span onclick="PrintAPage()">Print a page</span> > > > > > > > > <iframe id="printer" height="1" width="1" ></iframe> > > > > </body> > > > > </html> > > > > > > > > > > > > _______________ > > > > > > > > As a side point, someprintpage.html would have this bit of > > code > > > on it: > > > > > > > > <html> > > > > <head> > > > > <script language="javascript" > type="text/javascript"> > > > > window.focus(); > > > > window.print(); > > > > </script> > > > > </head> > > > > <body> > > > > ... > > > > </body> > > > > </html> > > > > > > > > > > > > > > > > Thanks for any help > > > > > > > > Jim > > > > > > > > > > > > -- > > > > Jim Geurts > > > > Bia Creations, LLC > > > > http://biacreations.com > > > > 410-493-9385 > > > > > > > > > > ------------------------------------------------------------------------ > > > > > > > > > > > > > _______________________________________________ > > > > Rails-spinoffs mailing list > > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>> > > > > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> > > > > > > > > > > > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org>> > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > <http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs> > > > > > > > > > > > > > > > -- > > > Jim Geurts > > > Bia Creations, LLC > > > http://biacreations.com > > > 410-493-9385 > > > > > > ------------------------------------------------------------------------ > > > > > > > > _______________________________________________ > > > Rails-spinoffs mailing list > > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > <mailto:Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > > > > > > -- > > Jim Geurts > > Bia Creations, LLC > > http://biacreations.com > > 410-493-9385 > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Rails-spinoffs mailing list > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs > > > > > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Jesse Kuhnert Tacos/Tapestry, team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Hey Jim, Not sure about your specific problem, but if you check out this little bit of code I whipped up a while back: http://www.clarityccs.com/modernapp/editor/trial_textarea.htm and be sure to view the source, you''ll find some interesting workarounds. IE has all kinds of issues (that is, IE on XP after SP2) with iframes. I had no luck whatsoever with using the $() function to play with actual content of the element...all kinds of weird security problems. In particular, check out the _initIFrame function, which hacks around the IE crapola. It''s by no means perfect, but you may find it useful if you''re having issues with IE iframes... FWIW, -Jerod
Thanks Jerod, I''ll take a look at it. In the mean time, I was able to get around IE by doing the following. I use the hidden iframe to print in non-IE browsers. For IE, I have a hidden anchor element with a target="_blank" attribute. When the user clicks the button to print, I set the unique href for the link and then execute the click event for the link. Jim On 5/12/06, Jerod Venema <jvenema-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hey Jim, > > Not sure about your specific problem, but if you check out this little > bit of code I whipped up a while back: > > http://www.clarityccs.com/modernapp/editor/trial_textarea.htm > > and be sure to view the source, you''ll find some interesting > workarounds. IE has all kinds of issues (that is, IE on XP after SP2) > with iframes. I had no luck whatsoever with using the $() function to > play with actual content of the element...all kinds of weird security > problems. In particular, check out the > > _initIFrame > > function, which hacks around the IE crapola. It''s by no means perfect, > but you may find it useful if you''re having issues with IE iframes... > > FWIW, > > -Jerod > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs >-- Jim Geurts Bia Creations, LLC http://biacreations.com 410-493-9385 _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs