• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Autodesk DWF Viewer

    Reply
    *Robert

    Problem with code

    52 Views, 1 Replies
    03-04-2003 06:16 AM
    I've got a XML listing of sheets which I've created a XSL stylesheet to
    render in IE. The XSL creates links to the DWFs. My problem is, I want to
    have the links open a new browser window OR open the DWF in just the Express
    Viewer. Sounds pretty simple, exept that when the link opens a new window,
    the parent window changes to have "[object]" written on it instead of
    keeping my sheet listing.
    This is my current code


    javascript:smileysurprised:pen("
    select="./@name"/>.dwf","dwfWin","toolbar='0',location='no',menubar='0'...




    I've treid using just the target="_blank" attribute, but I can't keep the
    new window from having toolbars, menus, ect. Any one else have a clue? If
    there's a way to have the link open the express viewer by itself, that'd
    work also.

    Befuddled,
    Robert
    Please use plain text.
    *Lone, Peter

    Re: Problem with code

    03-06-2003 12:35 PM in reply to: *Robert
    This is a known is with AEV.  As I
    understand it, Autodesk was going to fix that "target" problem in this latest
    release.  Try updating your AEV to the latest relase that just came out a
    week or so ago.

     

    In the meantime, why not just direct the link to an
    HTM or ASPX page that enbeds an instance of the AEV object that is waiting to
    fill in it's parameters from the QueryString?  Your link could be generated
    like this:

     

    <a>

       <xsl:attribute
    name="href">/mydwf.aspx?dwf=<xsl:value-of select="./@name/"
    />.dwf</xsl:attribute>
    </a>

    I'd use ASPX, but you can also use regular HTM and
    JavaScript to get and use the QueryString values.  On the MYDWF.ASPX page,
    you'd embed the object like so:

     

    <object id="AdView"

     classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF" border="0" 

     codebase="

    size=2>http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab

    face="Courier New" size=2>">
       <param name="Src"
    value="

    size=2>http://myserver/mydir/<%=Response

    face="Courier New">.Write(
    size=2>Request.QueryString("dwf")
    )%>">

        ... add
    other parameters here ....
    </object>


    You could still use XML and XSL to render the page
    that contained a list of links, but you'd have better control of the AEV object
    if you directed the link to a page that was designed for that very
    purpose.

     

    HTH,

     

    :smileytongue:

     

    > I've got a XML
    listing of sheets which I've created a XSL stylesheet to
    > render in
    IE.  The XSL creates links to the DWFs.  My problem is, I want
    to
    > have the links open a new browser window OR open the DWF in just the
    Express
    > Viewer.  Sounds pretty simple, exept that when the link
    opens a new window,
    > the parent window changes to have "[object]" written
    on it instead of
    > keeping my sheet listing.
    > This is my current
    code
    > <a>
    >      <xsl:attribute
    name="href">
    >      
    javascript:smileysurprised:pen("<xsl:value-of
    > select="

    href="mailto:./@name"/>.dwf","dwfWin","toolbar='0',location='no',menubar='0'">
    face=Arial
    size=2>....

    face=Arial size=2>")
    >     
    </xsl:attribute>
    >      <xsl:value-of
    select="

    size=2>./@name"/
    >
    >
    </a>
    >
    > I've treid using just the target="_blank" attribute,
    but I can't keep the
    > new window from having toolbars, menus, ect. 
    Any one else have a clue?  If
    > there's a way to have the link open
    the express viewer by itself, that'd
    > work also.
    >
    >
    Befuddled,
    > Robert
    >
    >
    Please use plain text.