Printing from an iframe in modal window in IE 7

by Andy 5/16/2008 10:13:00 AM
Printing of foupon in Iframe

I recently started loading our printable foupons into an embedded iframe which was displayed using a modal window (light box style)

Something I didn't realize when I started doing this is that IE 7's new shrink to fit printing caused the contents of my iframe to shrink down according to width of the iframe in its container.

To get around this I created a seperate style sheet containing

@media print
{

*
{
     display:none !important;
}

.fouponPopup
{
     display:block !important;
     width:100% !important;
     position:absolute !important;
     left:0px !important;
     top:0px !important;
}

.fouponPopup iframe
{
     display:block !important;
     width:100% !important;
}

}

Then in JS before showing the modal window (using AjaxControlToolKit) I add the style sheet to the header

fileref = document.createElement("link");
fileref.setAttribute(
"rel", "stylesheet");
fileref.setAttribute(
"type", "text/css");
fileref.setAttribute(
"href", website + "styles/print.css");
document.getElementsByTagName(
"head")[0].appendChild(fileref);

with fileref being a global variable.  Then when the user hits the close botton I remove the fileref object from the head.

document.getElementsByTagName("head")[0].removeChild(fileref);

I had to dynamically add/remove the css file so that users could print the pages normally in all other cases.

I am not 100% this is the best option to get around this issue in IE 7.  But it works.

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , , ,

Developement

No Such Thing as a Free lunch?

by Press 5/7/2008 11:13:00 AM
OFFICIAL PRESS RELEASE

Released May 7, 2008
Contact:
Kevin Worral
Foupons LLC
Tel: 1-716-508-4111
Fax: 1-888-333-8447
kworral@foupons.com
www.foupons.com

Foupons.com a website devoted to restaurants is turning the tables on restaurant owners, providing them with a free lunch at least that is how foupons.com sees it, as they recently began offering the majority of their online services free to restaurant owners.

Restaurants across the United States can now utilize the free exposure available on foupons.com to attract new customers, retain current ones and drive more traffic to their current websites.

Similar to other popular business listing websites such as merchantcircle.com and yelp.com; foupons.com differentiates itself by focusing solely on restaurants, providing industry specific tools such as fully searchable menus, business listings, publishing of live events, reviews, coupons and email newsletters.

Offering all of their services for free except optional coupons (foupons as they call them), they give any restaurant large or small the opportunity to get free exposure and attract customers for a price any business owner would bite on, free.

For additional information on the services offered by foupons.com visit their website at www.foupons.com.

ABOUT FOUPONS.COM –foupons.com is an online restaurant directory providing a community for restaurateurs and customers alike to share information and opinions. As well as perhaps save a little money.

-END-

Foupons.com in .net 3.5 Finally...

by Andy 4/30/2008 6:38:00 PM

It's alive!!!

Well at least live.  We just put live the newester version foupons.com.

The newest version of foupons.com utilizes the new Microsoft.net 3.5 framework. And let me just say that was no picnic.  Most of the transition was straight forward enough until we hit some snags with the the AjaxControlToolkit.

Why microsoft in their great wisdom feel that everything client side should be able to be written in c# and translated is beyond me.  Atleast with platforms like Anthem.net (which we have utilized previously) they did a wonderfully seemless job of encapsulating the most desired functionality.

In an attemp to not create too much client side bloat we tried to establish most listeners dynamically client side.  Which apparantly was not the original intent of Microsoft as this is less then straight forward.  That being said the Sys.Services.AuthenticationService is rather nice. 

I think they could definitely take a few more pointers from prototype and mootools as far as what js prgrammers are looking for and stop trying to make it match server side page functionality.

At any check it out and look forward to new enhancements to be built off the new framework.

Enjoy!

Currently rated 4.0 by 1 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , , , , ,

Developement

Back on Track

by Andy 4/17/2008 12:16:00 PM
Business Frist ArticleAs seen in the article in Buffalo's Business First we at foupons.com have had a crazy year.

Our roller coaster is summed up in that we secured venture capital and then lost it as our investor's faced adversity in the failing mortgage industry.

After weathering that storm we at foupons.com are very excited as we are given a rare opportunity to once again take the helm and realign our product and goals with the great feedback we have gotten from our users and restaurants.

Make sure you keep you eyes open for new features and savings as we continue to grow.

Thanks!

Andy Worral
CEO
 

 

Currently rated 3.3 by 3 people

  • Currently 3.333333/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: , , ,

In the news

©2008 Foupons LLC
www.foupons.com

Welcome to Foupons Press

Let us know what you think!

E-mail US Send mail

Calendar

<<  November 2008  >>
MoTuWeThFrSaSu
272829303112
3456789
10111213141516
17181920212223
24252627282930
1234567

View posts in large calendar

Pages

    Recent posts

    Recent comments

    • Back on Track (1)
      Frank Smith wrote: That is crazy! I love the site keep up the great … [More]

    Archive

    Disclaimer

    Any comments made are those of our readers and do not represent foupons.com view in anyway.

    © Copyright 2008

    Sign in