DWG TrueView
Welcome to Autodesk’s DWG Trueview Forums. Share your knowledge, ask questions, and explore popular DWG Trueview topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Javascript hyperlinks don't work

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
188 Views, 3 Replies

Javascript hyperlinks don't work

This problem stems from migration to VVE from Whip!
I am not a programmer, and lack some knowledge of computer and programming stuff, but will try to explain my problem as best as I can.
For purposes of our website, we have constructed a demonstration set of drawings, to be published on-line. On Acad2000 platform, we had constructed a set of 30 adjacent layout drawings, with around 400 hyperlinks. The 30 drawings were plotted to DWF, in ASCII format. The ASCII files were edited and the link refs were changed into a javascript call, that opens a new browser window, with another dwf embedded. It worked perfectly with Whip! I had a beautiful set of layouts, linked to section drawings, very impressive, all ready to be published. In the meanwhile, we upgraded to Acad2002. I updated the Whip! to VVE, and also re-plotted the layouts with the new DWF format. Now the javascript links don't work anymore. The new layouts, viewed with Whip! lose their raster content, but the javascript links still work fine. Viewed with VVE, they display their full content, but the links are dead.

The very common javascript used is:

function openWindow(url, w, h) {
var options = "width=" + w + ",height=" + h + ",";
options += "resizable=no,scrollbars=no,status=no,";
options += "menubar=no,toolbar=no,location=no,directories=no, top=110, left=534";
var Mhkotomes = window.open(url, 'Mhkotomes', options);
Mhkotomes.focus();
}

This is a part of the html file that has the layout dwf object.
An example of the links that I inserted in the dwf files would be:

(URL (0 'javascript:openWindow("4d6.htm",480,580);'4d6))

calling for the 4d6.htm file to be opened in a new window. This file has another dwf object to be displayed.

Since I have most of these on-line, I invite anyone interested to take a look. Only drawback....it's only in Greek (for now). However, anyone interested can follow my instructions and eventually get there:
-Use 1024x768 res.
-Go directly to http://www.hydroex.gr/GR/5_frameGR.htm
-From top to bottom, click on the 4th link of the main window.
-Now click on the 1st link of the new main window. A new window should come up, having a general layout. Click on any part to activate another new window, with a more detailed part of the layout. This is the dwf that does not work anymore. Activating the links, should activate a third new window with a section of the clicked line.

Is there a solution, or I have lost all this work because VVE does not support the javascript commands, as Whip! did? Why didn't Autodesk keep the Whip! capabilities as a minimum for its replacement web-viewer?

Any help would be greatly appreciated. Thank you for reading all this.

Spyros Michas
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

You could save your DWF files as classic DWFs using AutoCAD 2002 and
stick with WHIP!.

spyrosmichas wrote:
>
> This problem stems from migration to VVE from Whip!
> I am not a programmer, and lack some knowledge of computer and
> programming stuff, but will try to explain my problem as best as I
> can.
> For purposes of our website, we have constructed a demonstration set
> of drawings, to be published on-line. On Acad2000 platform, we had
> constructed a set of 30 adjacent layout drawings, with around 400
> hyperlinks. The 30 drawings were plotted to DWF, in ASCII format. The
> ASCII files were edited and the link refs were changed into a
> javascript call, that opens a new browser window, with another dwf
> embedded. It worked perfectly with Whip! I had a beautiful set of
> layouts, linked to section drawings, very impressive, all ready to be
> published. In the meanwhile, we upgraded to Acad2002. I updated the
> Whip! to VVE, and also re-plotted the layouts with the new DWF format.
> Now the javascript links don't work anymore. The new layouts, viewed
> with Whip! lose their raster content, but the javascript links still
> work fine. Viewed with VVE, they display their full content, but the
> links are dead.
>
> The very common javascript used is:
>
> function openWindow(url, w, h) {
> var options = "width=" + w + ",height=" + h + ",";
> options += "resizable=no,scrollbars=no,status=no,";
> options += "menubar=no,toolbar=no,location=no,directories=no,
> top=110, left=534";
> var Mhkotomes = window.open(url, 'Mhkotomes', options);
> Mhkotomes.focus();
> }
>
> This is a part of the html file that has the layout dwf object.
> An example of the links that I inserted in the dwf files would be:
>
> (URL (0 'javascript:openWindow("4d6.htm",480,580);'4d6))
>
> calling for the 4d6.htm file to be opened in a new window. This file
> has another dwf object to be displayed.
>
> Since I have most of these on-line, I invite anyone interested to take
> a look. Only drawback....it's only in Greek (for now). However, anyone
> interested can follow my instructions and eventually get there:
> -Use 1024x768 res.
> -Go directly to http://www.hydroex.gr/GR/5_frameGR.htm
> -From top to bottom, click on the 4th link of the main window.
> -Now click on the 1st link of the new main window. A new window should
> come up, having a general layout. Click on any part to activate
> another new window, with a more detailed part of the layout. This is
> the dwf that does not work anymore. Activating the links, should
> activate a third new window with a section of the clicked line.
>
> Is there a solution, or I have lost all this work because VVE does not
> support the javascript commands, as Whip! did? Why didn't Autodesk
> keep the Whip! capabilities as a minimum for its replacement
> web-viewer?
>
> Any help would be greatly appreciated. Thank you for reading all this.
>
> Spyros Michas
Message 3 of 4
Anonymous
in reply to: Anonymous

This is an obvious solution, however, this would mean that my site visitors must have installed a soon-to-become obsolete and discontinued plug-in. Furthermore, installing Acad2002 installs Voloview. This means that (correct me if I'm worng here) PCs already equipped with acad2002, would have to install another plugin for the same use (viewing dwfs). And anyway, sooner or later, everybody will switch to 2002. Isn't there a Voloview solution?
Message 4 of 4
Anonymous
in reply to: Anonymous

The sad story is that autodesk is not really interested in your
problem -- to them, "web publication" means Buzzsaw or some other
equivalent. This is unfortunate, because lots of big corporations are
using Whip and will not be anxious to switch to the unstable and
bloated VV. Eventually, I think Adesk will see the light, or some 3rd
party will write a really neat Whip-equivalent -- what Whip would have
been if Scott had been allowed to go on with its development.

Michael Porter

spyrosmichas wrote:

>This is an obvious solution, however, this would mean that my site visitors must have installed a soon-to-become obsolete and discontinued plug-in. Furthermore, installing Acad2002 installs Voloview. This means that (correct me if I'm worng here) PCs already equipped with acad2002, would have to install another plugin for the same use (viewing dwfs). And anyway, sooner or later, everybody will switch to 2002. Isn't there a Voloview solution?

Michael Porter Naval Architect / Boatbuilder
mporter at mp-marine dot com
Antispam -- make the obvious changes

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

Post to forums  

Autodesk Design & Make Report