Great Ideas. Always Flowing.

We are not happy until you are happy. Client satisfaction guaranteed. Whatever your needs and requirements, we have the skills and resources for the job!

Quick login...


Or... now make it easy with Facebook Integration
Connect via Facebook



Top Sellers

Frustrated over the lack of customization for your user's registration fields? Dynamically setup your DNN Portal with custom registration fields, layout, questions, and other core integration options......

Ultra Video Gallery is a brother product of Ultra Media Gallery, UVG allows you to upload videos in various format and automatically encode them to flv or H264 format, you also can add videos from internet or record live videos from your webcam.

Build high performance, completely customizable data-entry forms and views driven by your DNN and external databases. New built-in tools make it a snap to quickly create data entry forms, data views, and even database tables. Plus, add your own HTML, CSS, Javascript, SQL commands, stored procedures,

The most advanced DotNetNuke shopping cart on the planet. Easy to use e-Commerce, Secure Shopping Cart Software and SEO friendly. B2C / B2B Ecommerce Sites.

One stop solution for events calendar and events registration! FREE DOWNLOAD is available now!

Both Print Button and My Print Version Don't Pull In Form Data
Last Post 01-28-2010 07:22 AM by David To. 1 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Todd JanesUser is Offline
wading in the water
wading in the water
Posts:17
Avatar

--
01-26-2010 12:12 PM

    I have a form that is based on Demonstration #14, but I have added all sorts of stuff to it, which may or may not have broken the print button in the form. When I click the print button, it takes me to a page that has the form without the skin and container (good), but none of the data gets pulled into the form (bad). I have also added custom javascript for the submit that checks whether the form is being updated or if it's the first submit, and brings up a print dialog only if it's the first submit. I added to that a javascript function that would just write the contents of the module into another window, without page headers and footers, that basically looks like the printer-friendly version that opens when you click the print button. The javascript for that is at the bottom of this post.

    I know that I'm going to hear that I should redirect to a page and pull the data from the database, but the problem with that is that I don't want users to submit until after they print, which I want to occur after they make any necessary corrections to the form. The form is designed so that two types of users only have access to the data at different times. After the initial submission by one user type, the data is no longer available to them. The only ones that can edit the data are the users of the second type. I'm not sure that any of this really matters; the module was obviously designed to print before the form is submitted (why else would there be a print button?), so I really just need to troubleshoot why it doesn't do that (I probably broke it with all of the customizations).

    Thanks in advance to anyone who can help with this. We're hoping to use this in our live environment this weekend, but I think that we will make do if we can't get this last bit ironed out in time. Javascript follows (the function is the main thing so you can probably disregard the rest), thanks again!

     

    function printSpecial()
    {
      if (document.getElementById != null)
      {
        var html = '\n\n';


        html += '\n\n\n\n';

        var printReadyElem = document.getElementById("dnn_ctr1217_ContentPane");

        if (printReadyElem != null)
        {        {
          html += printReadyElem.innerHTML;
        }
        else
        {
          return;
        }

        html += '\n\n';

        var printWin = window.open("","Call Details");
        printWin.document.open();
        printWin.document.write(html);
        printWin.print();
        printWin.document.close();
      }
    }

    var b = "False";
    var a = window.location.href;
    var myStringList = a.split('&');
    var i = 0;
    while (i < myStringList.length)
    {
      if (myStringList == "DBUpdate=True")
        b = "True";
      i++;
    }

    if (b == "False")
    {
      printSpecial();
    }

    David ToUser is Offline
    river guide
    river guide
    Posts:2719
    Avatar

    --
    01-28-2010 07:22 AM
    HI, this would be very difficult to debug. Can you create a simple form and see if printing works without any customization to see if the customization is the culprit? -- David
    You are not authorized to post a reply.


     
     

    Join our mailing list...

    Get current news and events the easy way
    Subscribe Me

    Recent Blogs...

     
    Copyright 2005 - 2011 by Data Springs, Inc.
     
  • film izle
  • 720 izle
  • film
  • sinema izle
  • film makinesi
  • T�rk�e dublaj film
  • film izle
  • film izle
  • baglan film izle
  • sinema izle
  • 1080 film izle
  • film mercegi