Problem with Dreamweaver

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Problem with Dreamweaver

    Hi there, I'm working on some ASP files, I'm using a few Server behaviors like
    insert/ update records, the problem is, I'm receiving this message when I try
    to save the document:

    " Making this change would require changing code that is locked by a template
    or a translator. The change will be discarded "

    but i don?t know where to unlock this, and, the other thing is, I'm not using
    a template, can somebody here help me please?

    Thanks in advance!!

    Arturo

    Atmosfera Guest

  2. Similar Questions and Discussions

    1. Download problem Dreamweaver
      When I try to download Macromedia dreamweaver 8 I get this message "dreamweaver8-en-exe is not a valid win32 application". What can I do?
    2. 6.1, IIS, Dreamweaver on OS X problem
      Hi I'm running CFMX 6.1, w/ xp pro, IIS, and developing on OS X 10.3.9 w Dreamweaver this is a new problem, previously everything worked when...
    3. ASP and Dreamweaver 4.0 for Mac string problem
      Hello, I'm trying to get an asp string to work correctly when I cut and paste the url or hard type it into Dreamweaver's link box and/or the html...
    4. Dreamweaver 4 Image problem with OS X - Help!!
      to check a possible- Please open a new document using File-->New -->Don't Save It<-- Insert an image that's from inside that site's Local Site...
    5. Dreamweaver ASP.NET DataSet Problem
      Hello, I'm working through Heidi Bautista's DataGrids tutorial, and have a problem displaying my web page. Immediately after creating the...
  3. #2

    Default Re: Problem with Dreamweaver

    Which DW?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d40jdf$5ou$1@forums.macromedia.com...
    > Hi there, I'm working on some ASP files, I'm using a few Server behaviors
    > like
    > insert/ update records, the problem is, I'm receiving this message when I
    > try
    > to save the document:
    >
    > " Making this change would require changing code that is locked by a
    > template
    > or a translator. The change will be discarded "
    >
    > but i don?t know where to unlock this, and, the other thing is, I'm not
    > using
    > a template, can somebody here help me please?
    >
    > Thanks in advance!!
    >
    > Arturo
    >

    Murray *TMM* Guest

  4. #3

    Default Re: Problem with Dreamweaver

    :o, sorry, DW MX ( Version 6.0 )
    Atmosfera Guest

  5. #4

    Default Re: Problem with Dreamweaver

    Please update to DMX6.1 at your earliest opportunity. You can find the
    updater at the MM site.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d40lqm$9uu$1@forums.macromedia.com...
    > :o, sorry, DW MX ( Version 6.0 )

    Murray *TMM* Guest

  6. #5

    Default Re: Problem with Dreamweaver

    nobody?
    Atmosfera Guest

  7. #6

    Default Re: Problem with Dreamweaver

    You updated?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d40ncq$cd8$1@forums.macromedia.com...
    > nobody?

    Murray *TMM* Guest

  8. #7

    Default Re: Problem with Dreamweaver

    well, let me try that


    Atmosfera Guest

  9. #8

    Default Re: Problem with Dreamweaver

    And when you do, please right click on the dreamweaver.exe, then PROPERTIES
    | Version, and tell me what version you have there.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d40pg2$fnj$1@forums.macromedia.com...
    > well, let me try that
    >
    >

    Murray *TMM* Guest

  10. #9

    Default Re: Problem with Dreamweaver

    nope, same problem, don?t know what to do now

    :(


    Atmosfera Guest

  11. #10

    Default Re: Problem with Dreamweaver

    What version number do you have, please.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d40qgl$hea$1@forums.macromedia.com...
    > nope, same problem, don?t know what to do now
    >
    > :(
    >
    >

    Murray *TMM* Guest

  12. #11

    Default Re: Problem with Dreamweaver

    6.1
    thanks Murray
    Atmosfera Guest

  13. #12

    Default Re: Problem with Dreamweaver

    Nope, I need to know the version number. It will look like 6.x.xxxx, or
    something like that. Please tell me those numbers.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d40r7n$il1$1@forums.macromedia.com...
    > 6.1
    > thanks Murray

    Murray *TMM* Guest

  14. #13

    Default Re: Problem with Dreamweaver

    hi thanks, I don't know wher to get this number?, it's my serial number?

    Atmosfera Guest

  15. #14

    Default Re: Problem with Dreamweaver

    Find dreamweaver.exe and right click on it. Select PROPERTIES | Version.
    Read the number there and tell me what it is.

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d41597$4lk$1@forums.macromedia.com...
    > hi thanks, I don't know wher to get this number?, it's my serial number?
    >

    Murray *TMM* Guest

  16. #15

    Default Re: Problem with Dreamweaver


    well, this is what I got

    6.1.1842.0

    sorry, but, what this number means?


    Atmosfera Guest

  17. #16

    Default Re: Problem with Dreamweaver

    It means that you have already installed the DMX6.1 update.

    Thank you.

    Now - I need to see the code on your page, please. And tell me again what
    happens?

    --
    Murray --- ICQ 71997575
    Team Macromedia Volunteer for Dreamweaver
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================

    "Atmosfera" <webforumsuser@macromedia.com> wrote in message
    news:d419jj$at9$1@forums.macromedia.com...
    >
    > well, this is what I got
    >
    > 6.1.1842.0
    >
    > sorry, but, what this number means?
    >
    >

    Murray *TMM* Guest

  18. #17

    Default Re: Problem with Dreamweaver

    thanks a lot Murray

    I'm working on some ASP files, I'm using a few Server behaviors like insert/
    update records, the problem is, I'm receiving this message when I try to save
    the document:

    " Making this change would require changing code that is locked by a template
    or a translator. The change will be discarded "

    my code is this:

    THE ENTIRE DOCUMENT:

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!--#include file="../Connections/CinemaxSite.asp" -->
    <!--#include file="../ScriptLibrary/incPureUpload.asp" -->
    <%
    '*** Pure ASP File Upload -----------------------------------------------------
    ' Copyright (c) 2001-2002 George Petrov, [url]www.UDzone.com[/url]
    ' Process the upload
    ' Version: 2.0.8
    '------------------------------------------------------------------------------
    '*** File Upload to: """../cartelera""", Extensions: "GIF,JPG,JPEG,BMP,PNG",
    Form: nuevacartelera, Redirect: "", "file", "", "over", "true", "", "" , "",
    "", "", "", "600", "", "", ""

    Dim GP_redirectPage, RequestBin, UploadQueryString, GP_uploadAction,
    UploadRequest
    PureUploadSetup

    If (CStr(Request.QueryString("GP_upload")) <> "") Then
    on error resume next
    Dim reqPureUploadVersion, foundPureUploadVersion
    reqPureUploadVersion = 2.08
    foundPureUploadVersion = getPureUploadVersion()
    if err or reqPureUploadVersion > foundPureUploadVersion then
    Response.Write "<b>You don't have latest version of
    ScriptLibrary/incPureUpload.asp uploaded on the server.</b><br>"
    Response.Write "This library is required for the current page. It is fully
    backwards compatible so old pages will work as well.<br>"
    Response.End
    end if
    on error goto 0
    GP_redirectPage = ""
    Server.ScriptTimeout = 600

    RequestBin = Request.BinaryRead(Request.TotalBytes)
    Set UploadRequest = CreateObject("Scripting.Dictionary")
    BuildUploadRequest RequestBin, """../cartelera""", "file", "", "over"

    If (GP_redirectPage <> "" and not (CStr(UploadFormRequest("MM_insert")) <>
    "" or CStr(UploadFormRequest("MM_update")) <> "")) Then
    If (InStr(1, GP_redirectPage, "?", vbTextCompare) = 0 And
    UploadQueryString <> "") Then
    GP_redirectPage = GP_redirectPage & "?" & UploadQueryString
    End If
    Response.Redirect(GP_redirectPage)
    end if
    else
    if UploadQueryString <> "" then
    UploadQueryString = UploadQueryString & "&GP_upload=true"
    else
    UploadQueryString = "GP_upload=true"
    end if
    end if
    ' End Pure Upload
    '------------------------------------------------------------------------------
    %>
    <%
    ' *** Edit Operations: declare variables

    Dim MM_editAction
    Dim MM_abortEdit
    Dim MM_editQuery
    Dim MM_editCmd

    Dim MM_editConnection
    Dim MM_editTable
    Dim MM_editRedirectUrl
    Dim MM_editColumn
    Dim MM_recordId

    Dim MM_fieldsStr
    Dim MM_columnsStr
    Dim MM_fields
    Dim MM_columns
    Dim MM_typeArray
    Dim MM_formVal
    Dim MM_delim
    Dim MM_altVal
    Dim MM_emptyVal
    Dim MM_i

    MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME"))
    If (Request.QueryString <> "") Then
    MM_editAction = MM_editAction & "?" & Request.QueryString
    End If

    ' boolean to abort record edit
    MM_abortEdit = false

    ' query string to execute
    MM_editQuery = ""
    %>
    <%
    ' *** Insert Record: set variables

    If (CStr(Request("MM_insert")) = "nuevacartelera") Then

    MM_editConnection = MM_CinemaxSite_STRING
    MM_editTable = "Durango"
    MM_editRedirectUrl = "checkdata.asp"
    MM_fieldsStr =
    "NombreSpanish|value|NombreEnglish|value|Clasifica cion|value|Pais|value|FechaRel
    ease|value|Director|value|Reparto|value|SitioOfici al|value|SalasExhibicion|value
    |Horarios|value|Imagen|value|Fecha|value|Sinopsis| value"
    MM_columnsStr =
    "NombreSpanish|',none,''|NombreEnglish|',none,''|C lasificacion|',none,''|Pais|',
    none,''|FechaRelease|',none,''|Director|',none,''| Reparto|',none,''|SitioOficial
    |',none,''|SalasExhibicion|',none,''|Horarios|',no ne,''|Imagen|',none,''|Fecha|'
    ,none,NULL|Sinopsis|',none,''"

    ' create the MM_fields and MM_columns arrays
    MM_fields = Split(MM_fieldsStr, "|")
    MM_columns = Split(MM_columnsStr, "|")

    ' set the form values
    For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
    Next

    ' append the query string to the redirect URL
    If (MM_editRedirectUrl <> "" And Request.QueryString <> "") Then
    If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0 And
    Request.QueryString <> "") Then
    MM_editRedirectUrl = MM_editRedirectUrl & "?" & Request.QueryString
    Else
    MM_editRedirectUrl = MM_editRedirectUrl & "&" & Request.QueryString
    End If
    End If

    End If
    %>
    <%
    ' *** Insert Record: construct a sql insert statement and execute it

    Dim MM_tableValues
    Dim MM_dbValues

    If (CStr(Request("MM_insert")) <> "") Then

    ' create the sql insert statement
    MM_tableValues = ""
    MM_dbValues = ""
    For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
    MM_formVal = MM_fields(MM_i+1)
    MM_typeArray = Split(MM_columns(MM_i+1),",")
    MM_delim = MM_typeArray(0)
    If (MM_delim = "none") Then MM_delim = ""
    MM_altVal = MM_typeArray(1)
    If (MM_altVal = "none") Then MM_altVal = ""
    MM_emptyVal = MM_typeArray(2)
    If (MM_emptyVal = "none") Then MM_emptyVal = ""
    If (MM_formVal = "") Then
    MM_formVal = MM_emptyVal
    Else
    If (MM_altVal <> "") Then
    MM_formVal = MM_altVal
    ElseIf (MM_delim = "'") Then ' escape quotes
    MM_formVal = "'" & Replace(MM_formVal,"'","''") & "'"
    Else
    MM_formVal = MM_delim + MM_formVal + MM_delim
    End If
    End If
    If (MM_i <> LBound(MM_fields)) Then
    MM_tableValues = MM_tableValues & ","
    MM_dbValues = MM_dbValues & ","
    End If
    MM_tableValues = MM_tableValues & MM_columns(MM_i)
    MM_dbValues = MM_dbValues & MM_formVal
    Next
    MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & ")
    values (" & MM_dbValues & ")"

    If (Not MM_abortEdit) Then
    ' execute the insert
    Set MM_editCmd = Server.CreateObject("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_editConnection
    MM_editCmd.CommandText = MM_editQuery
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close

    If (MM_editRedirectUrl <> "") Then
    Response.Redirect(MM_editRedirectUrl)
    End If
    End If

    End If
    %>
    <%
    Dim RSAddDurango
    Dim RSAddDurango_numRows

    Set RSAddDurango = Server.CreateObject("ADODB.Recordset")
    RSAddDurango.ActiveConnection = MM_CinemaxSite_STRING
    RSAddDurango.Source = "SELECT * FROM Durango"
    RSAddDurango.CursorType = 0
    RSAddDurango.CursorLocation = 2
    RSAddDurango.LockType = 1
    RSAddDurango.Open()

    RSAddDurango_numRows = 0
    %>
    <html>
    <head>
    <script language="JavaScript">
    <!--

    function
    checkFileUpload(form,extensions,requireUpload,size Limit,minWidth,minHeight,maxWi
    dth,maxHeight,saveWidth,saveHeight) { //v2.08
    document.MM_returnValue = true;
    for (var i = 0; i<form.elements.length; i++) {
    field = form.elements;
    if (field.type.toUpperCase() != 'FILE') continue;

    checkOneFileUpload(field,extensions,requireUpload, sizeLimit,minWidth,minHeight,m
    axWidth,maxHeight,saveWidth,saveHeight);
    } }

    function
    checkOneFileUpload(field,extensions,requireUpload, sizeLimit,minWidth,minHeight,m
    axWidth,maxHeight,saveWidth,saveHeight) { //v2.08
    document.MM_returnValue = true;
    if (extensions != '') var re = new RegExp("\.(" +
    extensions.replace(/,/gi,"|").replace(/s/gi,"") + ")$","i");
    if (field.value == '') {
    if (requireUpload) {alert('File is required!');document.MM_returnValue =
    false;field.focus();return;}
    } else {
    if(extensions != '' && !re.test(field.value)) {
    alert('This file type is not allowed for uploading.\nOnly the
    following file extensions are allowed: ' + extensions + '.\nPlease select
    another file and try again.');
    document.MM_returnValue = false;field.focus();return;
    }
    document.PU_uploadForm = field.form;
    re = new RegExp(".(gif|jpg|png|bmp|jpeg)$","i");
    if(re.test(field.value) && (sizeLimit != '' || minWidth != '' || minHeight
    != '' || maxWidth != '' || maxHeight != '' || saveWidth != '' || saveHeight !=
    '')) {

    checkImageDimensions(field,sizeLimit,minWidth,minH eight,maxWidth,maxHeight,saveW
    idth,saveHeight);
    } }
    }

    function showImageDimensions(fieldImg) { //v2.08
    var isNS6 = (!document.all && document.getElementById ? true : false);
    var img = (fieldImg && !isNS6 ? fieldImg : this);
    if ((img.minWidth != '' && img.minWidth > img.width) || (img.minHeight != ''
    && img.minHeight > img.height)) {
    alert('Uploaded Image is too small!\nShould be at least ' + img.minWidth +
    ' x ' + img.minHeight); return;}
    if ((img.maxWidth != '' && img.width > img.maxWidth) || (img.maxHeight != ''
    && img.height > img.maxHeight)) {
    alert('Uploaded Image is too big!\nShould be max ' + img.maxWidth + ' x '
    + img.maxHeight); return;}
    if (img.sizeLimit != '' && img.fileSize > img.sizeLimit) {
    alert('Uploaded Image File Size is too big!\nShould be max ' +
    (img.sizeLimit/1024) + ' KBytes'); return;}
    if (img.saveWidth != '') document.PU_uploadForm[img.saveWidth].value =
    img.width;
    if (img.saveHeight != '') document.PU_uploadForm[img.saveHeight].value =
    img.height;
    document.MM_returnValue = true;
    }

    function checkImageDimensions(field,sizeL,minW,minH,maxW,ma xH,saveW,saveH) {
    //v2.08
    if (!document.layers) {
    var isNS6 = (!document.all && document.getElementById ? true : false);
    document.MM_returnValue = false; var imgURL = 'file:///' +
    field.value.replace(/\\/gi,'/');
    if (!field.gp_img || (field.gp_img && field.gp_img.src != imgURL) ||
    isNS6) {field.gp_img = new Image();
    with (field) {gp_img.sizeLimit = sizeL*1024; gp_img.minWidth = minW;
    gp_img.minHeight = minH; gp_img.maxWidth = maxW; gp_img.maxHeight = maxH;
    gp_img.saveWidth = saveW; gp_img.saveHeight
    Atmosfera 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