Results 1 to 4 of 4

Thread: Dynamic Ajax Content - Print option

  1. #1
    Join Date
    Apr 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamic Ajax Content - Print option

    Hi,

    With Dynamic Ajax Content what kind of print fonction can I use to print only the content without the whole page (buttons and top).

    Thanks

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    So... you want to get part of the page you are calling with AJAX?

    What you need is javascript that will split the data at certain points.
    The best/easiest way would be to redesign the page you are calling.
    The other option is to find specific UNCHANGING markers you can take the data "from here" and "to here".

    Someone else will have to help with that specific code, though.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Apr 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default print css

    Hi,

    The thing is, if I put a print button it's will print the whole page with the menu and the top (kept the css).

    If I put a button that open the page (only the content) in a new windows,
    the css is not taken.

    thanks

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Oh. Ok. You mean print, like a print, not print like "print" (display) a line of code.

    Actually, it's fairly similar. You still need to identify what part will be used.

    Firstly, the AJAX has nothing to do with it, really.

    What you need is to setup an alternate document for printing either via the (said-to-be-incompatible/unworking) script here or with just a "click this link to print".

    By default the entire document is printed. You need a NEW document for printing.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

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