Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Print from Selected data......

    Hope someone can help,

    I have a search database script program (cgi) which show search result on a html template namely "_search_results.html"..

    These results will apear in line similar concept to "Yahoo" and "Hotmail" email with the "check" box features on the left hand side....what I wish to know is that, can it be done to select such results by clicking on the chosen checkbox and send to a "printable" format.

    Hopefully, those that being selected will appear and can be printed.

    I know it sound simple to some of you...but i got stuck thinking of this.....so hopefully someone can help me solve this.

    Thanks in advance.

  • #2
    New to the CF scene
    Join Date
    Sep 2003
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Print from Selected data......

    Originally posted by ent8
    Hope someone can help,

    I have a search database script program (cgi) which show search result on a html template namely "_search_results.html"..

    These results will apear in line similar concept to "Yahoo" and "Hotmail" email with the "check" box features on the left hand side....what I wish to know is that, can it be done to select such results by clicking on the chosen checkbox and send to a "printable" format.

    Hopefully, those that being selected will appear and can be printed.

    I know it sound simple to some of you...but i got stuck thinking of this.....so hopefully someone can help me solve this.

    Thanks in advance.
    Hi,

    You can do that, but you'll have to prepare the "printable" format yourself.

  • #3
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the reply, I have the printable format ready and i have no problem in making that.....it just that the output of the search results which need to be "choice" selected and send to the printable is the major problem and confusing to me....

    I know, i've seen it somewhere, but it just does not ring any bell...to me...

    anyway, your help will be much appreciated......

  • #4
    Regular Coder COBOLdinosaur's Avatar
    Join Date
    Jul 2002
    Location
    Canada
    Posts
    403
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Intranet?; or are you getting results from other servers? You you are going cross-domain you cannot style the pages for printing on the client. You will have to acquire them server side and do whatever formatting is necessary there, because you cannot script cross-domain server side.

    If it is not cross-domain, then just include an alternate style sheet for printing in the head when you generate the page, or use an laternate print version with:

    <link rel=alternate media=print href="printversion.doc">
    100% standards compliant code is 100% correct 100% of the time.
    one of my toys from my repository and perhaps some help getting help

    Cd&

  • #5
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    COBOLdinosaur, it is not a cross-domain...the result are from the same server as the scripts/database.....thanks for asking....

    I assume some of you might come accross it....same manner as the "hotmail" email result output.....

    Up to this stage I mange to make it into such output, however, instead of "click" to delete such search results (in the hotmail result page), it can be "click" and send to a new "printable" page......

    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •