Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.
-
Jammer #1
Cannot Insert Code in with my Extension.
Hey everyone!
Back with another question.
I am trying to figure out why I cannot add code to my command extension.
There is a UI with it, and my custom button code looks like this:
function commandButtons() {
return new Array("OK", "window.close()",
"Insert Code", "objectTag()",
"Cancel", "window.close()");
}
and my objectTag function looks like this:
function objectTag() {
return '\n' +'<OBJECT CLASSID="clsid:166F1OOB-3A9R-11FB-8075444553540000" \n'
+ 'CODEBASE="http://www.mysite.com/product/cabs/myproduct.cab#version=1,0,0,0"
\n' + 'NAME="MyProductName"> \n' + '<PARAM NAME="SRC" VALUE=""> \n' + '<EMBED
SRC="" HEIGHT="" WIDTH="" NAME="MyProductName"> \n' + '</OBJECT>'
}
Why... when I press the button does it not insert the code. In fact nothing
happends.
Thanks!
Jammer Guest
-
Adding Extension Tab to Insert Bar
Finally, after much trial and error, I' ve created an extension to insert some code I needed that prompts for input... Now, however, in following... -
Insert Object Extension (?) Help for Newbie
Not quite sure where to begin...I'm rather new at Dreamweaver, and I'm finding a need to have an insert extension written which will automate the... -
How do I insert an extension into a DW file.
I am new to Dreamweaver. I have downloaded Web Photo Album 2.2 for Dreamweaver 8 and MX 2004, V2.2.6 from ... ... -
Problem with Insert Flash Extension
Hi Experts, I am having trouble with the Insert Flash HTML Extension. It is complaining that the HTML was not created by Flash Publish, but it... -
Bug in extension-insert tag
Bob Crawford wrote: The docs say nothing about where the inserted item would be placed, and I would only expect it to be placed as it's own... -
Distefano Felice #2
Re: Cannot Insert Code in with my Extension.
Hi Jammer
you have a window.close() for the OK and the Cancel, of course when you
click Ok it just close the window and stop.
They are three pairs but may be two you can use the third for the help or
else, for each one the first is the button and the other the funcion to
associate.
return new Array("OK", "theFunction which inserts the code", "Cancel",
"window.close()");
Felix
P.S. Michael is right, you have to use layers.
"Jammer" <webforumsuser@macromedia.com> ha scritto nel messaggio
news:dhro6q$ac5$1@forums.macromedia.com...> Hey everyone!
>
> Back with another question.
>
> I am trying to figure out why I cannot add code to my command extension.
> There is a UI with it, and my custom button code looks like this:
>
> function commandButtons() {
> return new Array("OK", "window.close()",
> "Insert Code", "objectTag()",
> "Cancel", "window.close()");
> }
>
> and my objectTag function looks like this:
>
> function objectTag() {
> return '\n' +'<OBJECT CLASSID="clsid:166F1OOB-3A9R-11FB-8075444553540000"
> \n'
> +
> 'CODEBASE="http://www.mysite.com/product/cabs/myproduct.cab#version=1,0,0,0"
> \n' + 'NAME="MyProductName"> \n' + '<PARAM NAME="SRC" VALUE=""> \n' +
> '<EMBED
> SRC="" HEIGHT="" WIDTH="" NAME="MyProductName"> \n' + '</OBJECT>'
> }
>
> Why... when I press the button does it not insert the code. In fact
> nothing
> happends.
>
> Thanks!
>
Distefano Felice Guest
-
Jammer #3
Re: Cannot Insert Code in with my Extension.
Ahhhhh... ok. That makes sense.. Thanks!
Also I found that becuase I was using a command I was not able to use the
objectTag() function to insert code. I had to use the dom.insertHtml() function.
Thanks again!
Jammer Guest



Reply With Quote

