From: Mike B. <mb...@Ga...> - 2002-08-30 11:20:26
|
Hi Asle, > Does htmlunit handle cases where javascript is not embedded > in the html sourcecode but located in an external file? Yes, it handles this case. > I am using 1.1-pre4 and as far as I could tell it did not seem to > evaluate external javascripts. That's strange - it's been working fine for me. I wonder if it isn't able to resolve the url in the src tag. If it isn't able to load the external file then you should see an error message like this: [ERROR] HtmlPage - -Error loading javascript from [http://www.alphaworks.ibm.com/www.ibm.com/common/stats/stats.js] status=[404 Not found - file doesn't exist or is read protected [even tried multi]] Are you seeing any log messages? > BTW: The getAnchors() solution worked fine.. thanks! Glad to hear it. -- Mike Bowler Principal, Gargoyle Software Inc. Voice: (416) 822-0973 | Email : mb...@Ga... Fax : (416) 822-0975 | Website: http://www.GargoyleSoftware.com |