Dreamweaver 8 - New Extension Engine?

Ask a Question related to Macromedia Exchange Dreamweaver Extensions, Design and Development.

  1. #1

    Default Dreamweaver 8 - New Extension Engine?

    Hey Everyone!

    I have an extension that works GREAT in DW version 8, but in any earlier
    version I get an error stating that:

    TypeError: document.images[1] has no properties.

    But it does, although I am dynamically defining the source. Any ideas?

    If you would like a copy of the extension, let me know,

    jj at frunder.com

    Thanks!

    Jammer Guest

  2. Similar Questions and Discussions

    1. Lightbox extension for Dreamweaver
      I've spent the last 2 hours searching and searching for a http://www.dynamicdrive.com/dynamicindex4/lightbox2/index.htm tool such as: A. An...
    2. Why cant I upload my DreamWeaver extension?
      I have DW cs3. I bought a extension called TSPreviewImg which is an image pop up extension for dreamweaver but I cannot get the program to...
    3. Dreamweaver Extension
      Is there a user authentication extension for Dreamweaver MX Version 6? My version does not seem to have this function listed in the Server Behaviors...
    4. ColdFusion 7 Dreamweaver extension
      I have been trying to install the Coldfusion 7 components extension for Dreamweaver. Have been souring the net for dayss looking for a solution. ...
    5. Nokia wml Extension - Dreamweaver 4.01
      I'm trying to install the nokia wml extension in dreamweaver 4.01, extension manager 1.5. It gets through the accept license dialog, and...
  3. #2

    Default Re: Dreamweaver 8 - New Extension Engine?

    Just a wild guess... Do you have at least a placement image in the place of
    document.images[1] before it gets loaded dynamically? If not you might want
    to throw in an image so its src can be changed.


    --
    Regards,
    ...Trent Pastrana
    [url]www.fourlevel.com[/url]

    Things Dreamweaver
    -----------------------------------------------------------
    eZeeGallery | iFrameSuite | MiniMenus | Scrollers | More...
    -----------------------------------------------------------






    "Jammer" <webforumsuser@macromedia.com> wrote in message
    news:dia840$h4l$1@forums.macromedia.com...
    > Hey Everyone!
    >
    > I have an extension that works GREAT in DW version 8, but in any earlier
    > version I get an error stating that:
    >
    > TypeError: document.images[1] has no properties.
    >
    > But it does, although I am dynamically defining the source. Any ideas?
    >
    > If you would like a copy of the extension, let me know,
    >
    > jj at frunder.com
    >
    > Thanks!
    >

    T.Pastrana - 4Level Guest

  4. #3

    Default Re: Dreamweaver 8 - New Extension Engine?

    Hmmm...

    Well I tried that. Did not work.

    Here is the javascript code:

    document.images[1].src = (imagePath+"yes.gif");

    Here is the code on the page:

    <img src="" alt="Site Folder" width="20" height="20">

    I have tried with src empty and with stuff in it. No luck.

    Thanks for the thought though!
    Any other thoughts?

    Jammer Guest

  5. #4

    Default Re: Dreamweaver 8 - New Extension Engine?

    Perhaps add an alert(document.images[1]) to check that
    document.images[1] exists at all. Any chance that you mean [0] ? Not
    sure why it work in dw8 if this were the case, but we are not getting to
    see your entire page, so just guessing.

    emichael brandt

    Jammer wrote:
    > Hmmm...
    >
    > Well I tried that. Did not work.
    >
    > Here is the javascript code:
    >
    > document.images[1].src = (imagePath+"yes.gif");
    >
    > Here is the code on the page:
    >
    > <img src="" alt="Site Folder" width="20" height="20">
    >
    > I have tried with src empty and with stuff in it. No luck.
    >
    > Thanks for the thought though!
    > Any other thoughts?
    >
    E Michael Brandt Guest

  6. #5

    Default Re: Dreamweaver 8 - New Extension Engine?

    What I am doing is defining all of the images through a function on the
    window.onLoad. I define images 0 - 8 so yeah, images[1] does exist.

    If you want to see the extension any maybe see whay this may be happening, you
    can download it here:

    [url]http://www.frunder.com/fm3-trial.mxp[/url]

    Thanks again for any help.

    Jammer Guest

  7. #6

    Default Re: Dreamweaver 8 - New Extension Engine?

    I may have time later today to try it, but I am suggesting that you use
    that alert to see if the the code sees that the image exists, not that
    you know it to exist.

    Jammer wrote:
    > What I am doing is defining all of the images through a function on the
    > window.onLoad. I define images 0 - 8 so yeah, images[1] does exist.
    >
    > If you want to see the extension any maybe see whay this may be happening, you
    > can download it here:
    >
    > [url]http://www.frunder.com/fm3-trial.mxp[/url]
    >
    > Thanks again for any help.
    >
    E Michael Brandt Guest

  8. #7

    Default Re: Dreamweaver 8 - New Extension Engine?

    Jammer,

    To solve your issue, you could give your images id's ( and names ) and
    access them with the findObj().

    <img name="folder" id="folder" src="0folder.gif" alt="Site Folder"

    findObject('folder').src = (imagePath+"yes.gif");

    Another way is to traverse the DOM for the image element.You could do it
    this way and the syntax would then be...

    document.layers["summary"].document.images["folder"].src =
    (imagePath+"no.gif");

    This way it will be easier to track your targeted images .. by id .. instead
    of thier order in the page.


    --
    Regards,
    ...Trent Pastrana
    [url]www.fourlevel.com[/url]

    Things Dreamweaver
    -----------------------------------------------------------
    eZeeGallery | iFrameSuite | MiniMenus | Scrollers | More...
    -----------------------------------------------------------






    "Jammer" <webforumsuser@macromedia.com> wrote in message
    news:die3tl$q6l$1@forums.macromedia.com...
    > What I am doing is defining all of the images through a function on the
    > window.onLoad. I define images 0 - 8 so yeah, images[1] does exist.
    >
    > If you want to see the extension any maybe see whay this may be happening,
    > you
    > can download it here:
    >
    > [url]http://www.frunder.com/fm3-trial.mxp[/url]
    >
    > Thanks again for any help.
    >

    T.Pastrana - 4Level Guest

  9. #8

    Default Re: Dreamweaver 8 - New Extension Engine?

    yeah!!!!

    It is working!

    I tried your seggestion trent and it worked!

    I don't know why I did not try that, it seems that fundObj has been the answer
    to my last 8 questions. eeeekkkk...

    Anyway... thanks again guys! You are great! My extension is almost done!

    You will be the first to know when it is in Beta, because you are the ones
    developing it I am just copying and pasting your answers... (It seems that way
    at least).

    Thanks agian!

    Jammer Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139