This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > March 2004 > Issues with MMHttp.getFile





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Issues with MMHttp.getFile
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.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews