new page in XSL

Discussion in 'XML' started by tom, Jan 27, 2006.

  1. tom

    tom Guest

    Hi all,

    The following code is a line in an XSL page, it shows a small image and when
    you click on it, an new page opens showing a bigger version of the image.

    <a href="{translate(imagelarge,' ','_')}" target="_blank" title="{id}"><img
    src="{translate(imagesmall,' ','_')}" alt="click to enlarge"
    border="1"/></a>

    How can I change the properties of the new page that opens. I want to open a
    page thats 400x400 and doesn't show the menu or navigation bars.

    Does any one know were I can find any info on this.
     
    tom, Jan 27, 2006
    #1
    1. Advertising

  2. tom wrote:


    > The following code is a line in an XSL page, it shows a small image and when
    > you click on it, an new page opens showing a bigger version of the image.
    >
    > <a href="{translate(imagelarge,' ','_')}" target="_blank" title="{id}"><img
    > src="{translate(imagesmall,' ','_')}" alt="click to enlarge"
    > border="1"/></a>


    If your XSLT stylesheet generates HTML then you rather have an HTML page
    or document with a hyperlink and not "an XSL page".

    > How can I change the properties of the new page that opens. I want to open a
    > page thats 400x400 and doesn't show the menu or navigation bars.


    HTML hyperlinks don't allow you to change the size or bars of a new
    window, client-side script embedded into HTML documents used to be able
    to do that but nowadays browsers are configurable to disallow script
    such things so that the browser user stays in command of his browser.
    If you want to open a new window with script you could try
    <a href="whatever.gif" target="imageWin"
    onclick="window.open(this.href, this.target,
    'width=400,height=400,scrollbars,resizable');
    return false;">


    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
     
    Martin Honnen, Jan 27, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Flood
    Replies:
    0
    Views:
    1,023
    Kevin Flood
    Sep 8, 2004
  2. Kevin Flood
    Replies:
    1
    Views:
    2,740
    Kevin Flood
    Sep 13, 2004
  3. Replies:
    1
    Views:
    3,612
    A. Bolmarcich
    May 27, 2005
  4. Replies:
    0
    Views:
    533
  5. Replies:
    2
    Views:
    466
    Thomas 'PointedEars' Lahn
    Mar 11, 2008
Loading...

Share This Page