| ramya.subramanya 2004-03-01, 8:28 am |
| Hey
There is an issue I have with MMHttp.getFile.
1. Get a file using the following
var temp = MMHttp.getFile("mail.yahoo.com",false);
Now since "mail.yahoo.com" is a perfectly valid URL temp.statusCode is 200 .
2. Get the javascript DOM object for the response.
var theDOM = dw.getDocumentDOM(temp.data);
This generates a Javascript error saying "getDocumentDOM: Argument number 1 is
invalid ". This I think is because the temp.data points to the file in
<install> directory but the file is actually stored in <user
configuration>/Temp directory. For example if Dreamweaver is installed in
D:/Program Files/Macromedia/Dreamweaver, then temp.data would point to file:///
D|\Program Files\Macromedia\Dreamweaver
MX\Configuration\Temp\mail.yahoo.com\index.html but the actually file exists at
file:///C|\Documents and Settings\rasubram\Application
Data\Macromedia\Dreamweaver MX\Configuration\Temp\mail.yahoo.com\index.html.
Thanks,
Ramya.
|