Problem with dialog boxes

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

  1. #1

    Default Problem with dialog boxes

    Hello, I am trying to create a dialog box, that has a txt box on it, and when
    you click OK i want the values from the textbox to be inserted into the current
    document(but at the top of the document).
    The code that I've made generates an error in "objectTag()" but I'm not sure
    why?
    Any help you can give would be great!

    Thanks in advance!!





    <html>
    <head>
    <script language="javascript">

    function isDOMRequired() {
    return false;
    }
    function objectTag() {
    var dom = dw.getDocumentDOM();
    dom.source.startOfDocument();
    //var frm = document.forms["form1"];
    tmp=frm.text.value;
    dom.source.wrapSelection(tmp,'');
    return;
    }
    </script>
    </head>

    <body>
    <form name="form1" method="post" action="">
    <table width="379" border="0">
    <tr>
    <td>Name : </td>
    <td><input name="txtName" type="text" id="txtName"></td>
    </tr>
    <tr>
    <td> Variables : </td>
    <td><input name="txtVars" type="text" id="txtVars"></td>
    </tr>

    </table>
    </form>
    </body>

    </html>

    RaviUK Guest

  2. Similar Questions and Discussions

    1. Photoshop dialog boxes are 'offscreen' after going from two monitors to one
      sorry, its long... typically work from two monitors at once, and when i switch to one monitor (such as when working mobile on my laptop as opposed to...
    2. information exchange between two dialog boxes
      I am interacting with a dialog box opened on already existing dialog box. Can anybody tell me how to pass information from the upper dialog to the...
    3. Dragging Movie-clips: maybe like dialog boxes?
      Well, I'm working on my disclaimer dialog and some other dialogs in my site (http://www.geocities.com/matt_atknsn). I made a disclaimer dialog and...
    4. RASdialer connection without dialog boxes ?
      Dear Sirs, I am using the RAS API and would like to set up a connection without going through the dialog boxes. The Windows API says that if...
    5. Dialog Boxes Not Showing (Mult Monitors)
      have no way of returning to a dual monitor system right now if you can't hook up a 2nd monitor, follow the FAQ topic for deleting/resetting...
  3. #2

    Default Re: Problem with dialog boxes

    Hi, has anyone been able to have a look at this yet?
    RaviUK 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