Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Byron Adams #1
site.getLocalPathToFiles() even when no files are open?
Hi all,
i want to use the site.getLocalPathToFiles(); function but the only problem
is one of the sites files needs to be open for it to work, what i want to do
is have the site open in the site-panel on the left but not need any files
to be open is this even possible?
for example say the user had just created a site using the site definition
diaglog box but hasnt added any files yet, i want to retreive the local
path the the site, do i really need to have a file open for this to work?
thanks in advance,
Byron
[url]http://byron-adams.com[/url]
Byron Adams Guest
-
pdf files uploaded onto a web site won't open correctly.
I'm currently building a web site for a construction company. There are some forms/documents that they want clients to be able to download. These... -
site.getLocalPathToFiles() doesnt update when site.setCurrentSite() is called
hi, i've been having issues with site.getLocalPathToFiles() getting the wrong sites path can anyone else confirm this? this is what im trying to... -
#25886 [Bgs]: failed to open stream: Too many open files in Unknown on line 0
ID: 25886 User updated by: padair at pntsi dot ca Reported By: padair at pntsi dot ca Status: Bogus Bug Type: ... -
#25886 [Opn->Bgs]: failed to open stream: Too many open files in Unknown on line 0
ID: 25886 Updated by: sniper@php.net Reported By: padair at pntsi dot ca -Status: Open +Status: ... -
#25886 [NEW]: failed to open stream: Too many open files in Unknown on line 0
From: padair at pntsi dot ca Operating system: Solaris 8 PHP version: 4.3.3 PHP Bug Type: *General Issues Bug description: ... -
Phil #2
Re: site.getLocalPathToFiles() even when no files are open?
> i want to use the site.getLocalPathToFiles(); function but the only problem
Just tried in a command.> is one of the sites files needs to be open for it to work, what i want to do
> is have the site open in the site-panel on the left but not need any files to
> be open is this even possible?
No need to have a file open.
function initializeUI() {
alert(site.getLocalPathToFiles());
}
Phil Guest
-
Byron Adams #3
Re: site.getLocalPathToFiles() even when no files are open?
Well would there be any reason that its not working here? because mine only
works if i have one of the files in the site open...
maybe im putting it in the wrong place or somthing sorry im new dw extension
dev heres my command (simplfied) :
<!-- MENU-LOCATION=NONE -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>my extension</title>
<script>
function clickIt() {
alert();
}
</script>
</head>
<body>
<form >
<input type="button" value="<>" onClick="clickIt();"/>
</form>
</body>
</html>
Thanks for taking the time to help me btw =)
> Just tried in a command.
> No need to have a file open.
>
> function initializeUI() {
> alert(site.getLocalPathToFiles());
> }
>
Byron Adams Guest
-
Byron Adams #4
Re: site.getLocalPathToFiles() even when no files are open?
Sorry, in the prior example i left out the call to the function
(site.getLocalPathToFiles()) but regardless it doesnt work.
just wanted to make sure you didnt think that was why it wasnt working
Byron Adams Guest
-
Phil #5
Re: site.getLocalPathToFiles() even when no files are open?
Tried your code, without <!-- MENU-LOCATION=NONE -->> Sorry, in the prior example i left out the call to the function
> (site.getLocalPathToFiles()) but regardless it doesnt work.
>
> just wanted to make sure you didnt think that was why it wasnt working
It works perfectly here.
If you have 'menu-location=none', I suppose you call your command from an other
place.
Maybe the problem is in this other place.
Phil Guest
-
Byron Adams #6
Re: site.getLocalPathToFiles() even when no files are open?
Ok thanks,
that helps because now i know that the issue is somthing else in my
extension (i tried it without 'menu-location=none') still didnt work...
is there any issue that anyones aware of that could be causing this? because
it does actually work if i have file open... this is quiet weird.... its got
me stumped but the thing that worries me mostly is that im working to a
deadline so this is quiet an urgent issue
maybe some guru would be interested in having a look at my code and pointing
out what i need to fix?
any help is much appreciated, thanks for your help so far Phil
Byron Adams Guest
-
Byron Adams #7
Re: site.getLocalPathToFiles() even when no files are open?
Ok, i've discovered somthing else...
It does actually work if no files are open but if i have a file open that
isnt part of the current site (some random html file)
then it just returns nothing, is there a way i can close all currently open
documents?
Thanks in advance
Byron
Byron Adams Guest



Reply With Quote

