Help, need to make a extension that uses search and replace

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

  1. #1

    Default Help, need to make a extension that uses search and replace

    Hello,

    I am trying to make an extension that searches for certain tags in the
    source code. Something similar to "Remove Frontpage tags" extension.

    I have had a look at some really simple extensions that talk about using
    javascript. How do i use javascript to look for certain tags and strip them?

    I am a newbie so please take it easy on the jargon :)

    cheers
    Suman


    Suman Dahal Guest

  2. Similar Questions and Discussions

    1. Search and replace
      I'm certain this has been asked 1000 times.. however ... I recently imported some data - all INTs ... from an excel sheet, but the damn thing...
    2. Search and replace (super global replace)
      I am using the 30 day trail of acrobate professional....before I buy it I have a few questions.... 1) is there a "search and replace" function...
    3. search an replace
      Hi This scripts sucks in a 109mb file and i'm trying to do a search and replace on unxtime to the format from strftime. Which is working... ...
    4. Search & Replace Function?
      I have some textfield that users will enter data into on my web site and then I'll use php and write it to mysql - for security purposes, is there...
    5. search replace
      Hi , How do I search replace text in a file from a perl script. i.e. by opening the file in write mode and then do a search replace. I don't...
  3. #2

    Default Re: Help, need to make a extension that uses search and replace

    Suman Dahal wrote:
    > I have had a look at some really simple extensions that talk about using
    > javascript. How do i use javascript to look for certain tags and strip them?
    There are a variety of ways to accomplish this task depending on the
    specifics of the case. One way would be to use regular expressions to
    remove the starting and ending tags. Or you could "walk the DOM" to
    strip out tags.

    Both fashions require a good bit of general JavaScript knowledge.

    First thing I'd suggest you do (after reading the resources and links
    below) would be to take a look at the files that comprise the Clean up
    HTML command, which can be found at on a PC, as it allows you to be able
    to remove specified tags:
    C:/Program Files/Macromedia/Dreamweaver MX
    2004/Configuration/Commands/Clean Up HTML.htm
    C:/Program Files/Macromedia/Dreamweaver MX
    2004/Configuration/Commands/Clean Up HTML.js

    Actually, unless you really really want to get into extension
    development, this command could more than likely cover your needs.
    > I am a newbie so please take it easy on the jargon :)
    You should read up on building extensions, theres a lot of ground to
    cover. Here's my generic getting started post:

    MX04:
    Help > Extensions > Extending Dreamweaver
    and
    Help > Extensions > API Reference
    and
    Help > Extensions > Creating and Submitting

    livedocs as well:
    [url]http://livedocs.macromedia.com/dreamweaver/mx2004/index.html[/url]

    Configuration folder locations:
    [url]http://www.communitymx.com/blog/index.cfm?newsid=27&blogger=12[/url]

    Dreamweaver MX 2004 SDK (includes MXI format for DWMX 2004):
    [url]http://www.macromedia.com/cfusion/exchange/index.cfm?view=sn121&extid=1009962[/url]

    MXI File Format for DWMX 2004:
    [url]http://download.macromedia.com/pub/dw_exchange/mxi_file_format.pdf[/url]

    MXI File format for DWMX and earlier:
    [url]http://download.macromedia.com/pub/dw_exchange/mxi_file_format.pdf[/url]

    Books (dedicated):
    Building Dreamweaver 4 and Dreamweaver UltraDev 4 Extension
    Tom Muck and Ray West
    [url]http://basic-ultradev.com/building_extensions/index.asp[/url]

    Dreamweaver MX Extensions
    Laura Gutman
    [url]http://www.amazon.com/exec/obidos/tg/detail/-/0735711828/qid=10686781[/url]...

    Covers extending:
    Dreamweaver MX The Complete Reference
    Ray West and Tom Muck
    [url]http://www.amazon.com/exec/obidos/ASIN/0072195142/basicultradev-20[/url]

    Dreamweaver MX 2004 The Complete Reference
    Ray West and Tom Muck
    [url]http://dwteam.com/tcr/[/url]

    Beyond Dreamweaver
    Joseph Lowrey
    [url]http://www.amazon.com/exec/obidos/tg/detail/-/0789727404/qid=10686785[/url]...

    Plus, always good to see what others have done. Visit the Exchange and
    look at as many as you can:
    [url]http://www.macromedia.com/exchange/[/url]

    Lists of DW extension developer sites:
    [url]http://www.dwfaq.com/Resources/Extensions/default.asp[/url]
    [url]http://www.felixone.it/extensions/mext.asp[/url]

    And also the site I write for: [url]http://www.communitymx.com/[/url] I have a few
    extension related articles there (commercial site).



    --
    Danilo Celic
    | Extending Knowledge Daily : [url]http://CommunityMX.com/[/url]
    | Team Macromedia for Dreamweaver : [url]http://macromedia.com/go/team/[/url]
    danilocelic *TMM* 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