DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
Anonymous
225 Views, 1 Reply

Problem with code

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:open("
select="./@name"/>.dwf","dwfWin","toolbar='0',location='no',menubar='...




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
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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,

 

😛

 

> 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:open("<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
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report