Using Spry how to stop Dreamweaver CS3 from Changing Code

Hi
  I am using Dreamweaver CS3 to build/maintain a website www.ghoter.net. I started using Spry to insert data from an xml file as I need the data in the xml file to show up on several different pages, includeing the home page. The data in the xml file changes from time to time. This is working wery well. But I am having a problem with Dreamweaver automaticly  changing a line of code in the html files every time I make a change to the html file. The line of code that is being changed is in the head of the program.
This is the line of code that is being changed: The xml's name is data-3.xml The date from the xml file goes at the top of the left collumn.
The good code is:  var ds1 = new Spry.Data.XMLDataSet("data-3.xml", "customers/customer",{distinctOnLoad:true});
The above line of code is automaticly being changed to this below, which does not work:
var ds1 = new Spry.Data.XMLDataSet("data-3.xml", "customers/customer",<MM:BeginLock translatorClass="MM_SPRY" type="MM_SPRY_DATA_REFERENCE" orig="{distinctOnLoad:true}" ><MM_DYNAMIC_CONTENT DYNAMICDATA=1><MM:DECORATION HILITECOLOR="Dyn Untranslated Color">{distinctOnLoad:true}</MM:DECORATION></MM_DYNAMIC_CONTENT></script><MM:EndLock>);
I can replace the bad line of code with the good code just befor saving the html file and the good line of code will be saved with the file and the web page works as it should.
Any help would be appricated. Thanks
Jack Burn

Hi Jack,
I think (not sure though) that the Library Item is causing the problem. I never use the Library Item because server side includes are far more efficient and need less maintenance.
Have a look here http://foundationphp.com/tutorials/sprymenu/ssi.php
If you have PHP serverside scripting language, use DW to add serverside includes using PHP.
Getting back to your original problem, try without the Library Item and see if DW still changes the code.
I hope this helps.
Ben

Similar Messages

  • Stop Dreamweaver CS3 rewriting my code

    I dearly hope one of you lovely people can help me as this program is driving me nuts!
    I need to find a way of stopping Dreamweaver CS3 from rewriting my code. I know it's a good thing for it to check for errors (unclosed tags, etc) and I have no problem with that, but what I need to stop is the way Dreamweaver keeps running closing tags on to the end of the previous line!
    For example, I type:
    <div>
        <div>
            <a href="link">
                <img src="piccy" />
            </a>
        </div>
    </div>
    which is lovely and structured and, above all, easy to read, but as soon as I edit an element's propery, Dreamweaver makes it:
    <div>
        <div>
            <a href="link">
                <img src="piccy" />        </a>    </div>
    </div>
    which is so annoying!
    I've tried turning off all code rewriting in the preferences, but to no avail.
    Please can someone save what little hair I have left?
    Thanks in desperation
    Peter

    I guess my problem is not directly related to yours after all, as I discovered a hack to live with DW's bad behavior in my case. I found this when I used DW to try to collapse the tags that were getting fouled up and seeing it not know exactly what to do.
    The solution below tricks DW into thinking that my HTML tags are all nested properly, and it no longers rewrites the code in my CFC's function. Because nesting fixed it, I'm guessing the original poster's spacing issue is unrelated.
    Nevertheless, here's what I did:
    <cffunction ... >
        <cfset var strHTML = "">
            <!--- a memorable and always false condition --->
        <cfset var hellfreezesover = False>
        <cfsavecontent variable="strHTML">
        <ul>
            <li>first level
            <!--- Trick DW into submission --->
            <cfif hellfreezesover></li></ul></cfif>
            <cfloop ...>
                <!--- Trick DW into submission --->
                <cfif hellfreezesover><li></cfif>
                <cfif closeit>
                    </li>
                <cfelse>
                </cfif>
            </cfloop>
            <!--- Trick DW into submission --->
            <cfif hellfreezesover><ul><li></cfif>
            </li><!--- close last open li --->
        </ul>
        </cfsavecontent>
        <cfreturn strHTML>
    </cffunction>

  • How to stop  the users from changing the Decimal in SAP

    How  to stop  the users from changing User Profile

    Hai,
    It is not possible to restrict SU3 to display, because it has only S_TCODE has the authorization object.
    If you really want to restrict users from changing their profile you have to remove the SU3 access and give SU1 or SU2 which gives access only to Personnel details and Parameters.
    Hope this helps.
    Regards,
    Yoganand.V

  • How to stop the computer from changing its local network name when waking up from sleep mode

    How do I prevent a mac mini from changing its' network name automatically when it wakes up from sleep mode... It will wake up and display a warning that the network name is already in use and it changes its name to (n+1) name with number after it... I know that there is no other device with that name because the only other things on the network are 2 hard drives (one being used for time capsule) and a printer..
    This is very annoying and needs to be fixed.... don't tell me to make the computer never sleep because that defeats the power savings settings under power management.

    Go to System Preferences>Network>AirPort and delete your network from the Preferred Networks box. Reenter your network information. Make sure that AirPort is the topmost listed interface when you Show Port Configurations. Apply the changes and Restart. Does it work now?

  • How to stop Dreamweaver Tabs from moving after restart?

    Hello.
    I am a PHP developer, and I find that tabs in Dreamweaver 8
    are very useful. Right now I have about 30 files, mostly PHP, some
    HTML and CSS open in tabs.
    I love the ability to move the tabs around all the time, as I
    see fit.
    However, one of the wost things I find about Dreamweaver 8
    is, once you close it and start it next time, and tabs are all
    jumbled up in the order they were opened, rather than in the order
    they were left at.
    Is there any way to prevent this jumbling up of tabs?
    Thanks.

    Those tabs represent the documents you have open currently.
    As you open a
    new document, it gets a new tab. You cannot move them, nor
    can you preserve
    them from one session to the next, other than by opening the
    same documents
    again in the same order (you can do this automatically with
    PREFERENCES |
    General > Reopen Documents on startup.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Starcraftmazter" <[email protected]> wrote
    in message
    news:e2g4go$7ov$[email protected]..
    > Hello delaneypub, thank you for your replies.
    >
    > Yes, by tabs I mean the ones holding the documents.
    > To further illustrate this, I uploaded the appropriate
    screenshot
    >
    http://www.filesnexus.com/file.php?file=m17n608F5nhEf7HOqbNP8JaWHHXO57s59SE6y6pN
    >
    > I see you are not sure if there is a way to dowhat I
    require.
    >
    > Thanks for your help none the less.
    >

  • How to stop expression pedal from changing patch volume

    I'm trying to use an expression pedal with Omnisphere in Mainstage but the pedal is controlling the volume of the sound. How do I stop this so that I am only controlling the parameters I have selected in the modulation matrix in Omnisphere?
    Thanks

    the problem seems to be that when you set  Controllers:Output to Expression(11) it controls the Expression disc/dial at the top of the channel which controls the volume IN to the channel and if you set the Controllers:Output to Volume(7) it controls the volume Fader.  the first is pre-fader volume and the second 'post'-fader volume.
    here's what i don't understand.  if i change the Controllers:Input to anything other than Expression(11), then it reverts back to controlling the Expression disc/dial. 
    so why is  Controllers:Output to Expression(11) always controlling the pre-fader input?  why can't i change where that 'goes'?  i only have 4 choices. the reason i don't directly map it is because i use my MINILAB to change MIDI Channels and so i when i'm on MCh1 it only plays and controls the EP on channel one.  MCh2 plays and controls the lead on channel 2, etc through 4 channels.  this way i can switch between the channels by selecting such on my MINILAB controller. 
    to add another issue, the expression pedal i'm using is from my Apogee GiO and it doesn't change channels..it goes to all Expression controls everywhere.
    —Caleb
    ^ i discovered that i had the Expression Pedal 'knob' set to Automatic.  this for some reason sends it to all my channels even though they are on different MIDI channels/inputs.  when i set it to just one input it only controls the Expression disc/dial for the channels that are mapped to that input (Keyboard1).
    still, i'd like for it to change channels when i change MIDI on my MINILAB, though that seems like an impossible desire.  second, it still doesn't explain why Expression is functionally synonymous with pre-fader gain. 

  • How to stop Outlook 2007 from changing my telephone number format?

    I'm using Windows 7 and Outlook 2007 (and Exchange 2007 SP1).
    Now, in Outlook's contact, whenever I enter a telephone number, the stupid Outlook 2007 always tries to be smart and add brackets to the first few digits!  There's no brackets in tel number.  How could I make it stop from being too smart and changing anything?

    I've found another PC with XP and Outlook 2007, but I still can't find any service called "Windows Dialing".  But I tried it anyway.  Guess what I got: in this computer, a normal local telephone format isn't changed.  But when the number is in long distance format, ie +XX YYYYYYY, Outlook 2007 stupidly removes the '+' sign in front of it!
    I then tried in my first PC to see what would happen to international telephone number format.... it's OK, the '+' sign isn't deleted.
    What a f**k!  What's this ____ called Outlook 2007 which tries to reformat things it can't understand??
    I have exactly the same problem - I am in the UK and have a pile of UK numbers stored in international format (which most cell phones recognise and some generate automatically from incoming calls). So the number would be entered as +44 1234 56789. Outlook strips off the + and, because I sync with my pda, the numbers get exported to it in a broken state :-(
    In the UK, we don't drop leading digits - to dial a number I either dial 01234 56789 or +44 1234 56789. We don't really use local numbers a lot in the UK - it doesn't make any difference within a local area if I dial the full code, just the local number or the international version. So there is no need for Outlook to do anything.
    This is extremely aggravating - sure ly Outlook is not hard coded to use  US phone dialling methods?
    There must be a way to disable the automatic parsing of numbers - if not it is bug that needs fixing, IMHO...
    Rgrds
    Peter

  • How to stop symbol-content from changing size when symbol size changes?

    When I change the size of a symbol, the content is also resized. I want my symbol to act as a viewport: when I make the symbol half as high, the content shouldn't be transformed, you only should see half of the content instead of transformed content. Make the symbol's boundaries act as a cropper, if you get what I mean. How do I do this?

    Hi Jack,
    I think (not sure though) that the Library Item is causing the problem. I never use the Library Item because server side includes are far more efficient and need less maintenance.
    Have a look here http://foundationphp.com/tutorials/sprymenu/ssi.php
    If you have PHP serverside scripting language, use DW to add serverside includes using PHP.
    Getting back to your original problem, try without the Library Item and see if DW still changes the code.
    I hope this helps.
    Ben

  • Monogame, how to stop screen orientation from changing

    Hi,
    I am having a really annoying problem with mono game for windows 8 phone.
    The landscape keeps changing its orientation even though I have it set to landscapeleft.
    Someone please put me put of my misery.
    Xaml
    SupportedOrientations="Landscape"  Orientation="LandscapeLeft"
    Game cs
     graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft;

    Hi Smilesprower,
    How about the setting on your manifest? You have to check the supported rotations.
    Besides,
    Supporting screen orientation is also a helpful documentation if you are using DirectX part for Mono games
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to STOP microphone sensitivity from changing by itself?

    I'm using Skype and I keep the sensitivity of the mic low through the sound pref. pane. It keeps automatically raising the sensitivity when something louder is picked up by the mic and this is really annoying.
    Anyone have a fix for this ?
    thanks!

    You might try checking the ambient noise reduction box under the sound section of system preferences. I can't remember which way it works, so it may be checked and you need to uncheck it. Try it both ways.

  • I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe

    I am trying to reinstall Dreamweaver CS3 from the CD after having computer issues.  Now getting error "You can only install one Adobe product at a time.  Please complete the other installation before attempting to install ......."  There is no other Adobe product installing.  I have used the Adobe Cleaner Tool many times and uninstalled other Adobe Products but neither has worked.  I have uninstalled/reinstalled this CD version of Dreamweaver several times when changing computers and after having computer issues. A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.  Please help.

    A google search of the problem suggested it may be an error related to the number of times I can reinstall this product due to licensing issues.
    Absolutely not. You are misinterpreting things. The activation check never happens when just running the installer, only much later. It means what it says - there is another "install" pending/ active on your system, meaning somewhere there is an (invisible) process still blocking things. Either way, since you haven't provided any real technical info, we can't advise specifically. if you are on Windows, you may want to check your task manager and terminate any setup.exe and msiexec.exe processes plus potentially may need to manually fix/ delete some registry keys. For anything beyond that you will have to be much more specific.
    Mylenium

  • How to stop Time Machine from backing up Temp Files?

    Hi folks!
    I am trying to find out how to stop Time Machine from constantly backing up 'useless' temporary files accumulated from web browsing? Although I don't change or add large files to my HD, Time Machine backs up hundreds of MBs every hour. Those file amounts make sense when I consider that I browse a lot to YouTube, SoundCloud, etc to watch videos or listen to music - I just don't want them to be backed up.
    Under Time Machine Options I already excluded the following items from backups:
    ~/Library/Caches
    /Library/Caches
    ~/Downloads
    But even though I did this weeks ago, Time Machine stills finds large files to be backed up every hour and my only guess is that I am still missing a location where either Safari or Firefox - the two web browsers I use - store temporary files.
    Can you help?
    Thanks a lot in advance!

    oas2103 wrote:
    they come from my anti-virus software
    Are you sure you need that? There are no viruses that run on OSX. None. Zip. Zero.
    If you're running Windoze on your Mac, that's the same as running it on a PC, so it needs all the same anti-everything stuff you'd use on a PC.
    There is some "malware," such as Trojans, for Macs, though. But (unlike viruses that can get onto your system without your knowledge), you must approve their installation (via your Admin password) and/or operation (via the "This application was downloaded from the internet ..." prompt).
    Appropriately enough, some of these Trojans are included in pirated versions of Apple software, such as iWork!
    For the gory details, see Thomas Reed's [Mac Virus Guide|http://www.reedcorner.net/thomas/guides/macvirus].
    Thanks a lot again!
    You're quite welcome, and thanks for posting back.

  • How to stop the Browser from caching my web pages

    Hi There
    Can anyone tell how to stop the browser from caching my jsp pages
    I am using
    <%response.setHeader("Cache-Control","no-cache");
    response.setHeader("Pragma","no-cache");
    response.setDateHeader ("Expires", 0);
    %>
    but this does not work anduser is able to go back to the previous page
    which i dont want and i want the browser to display the message the page has expired
    Help appreciated
    Thanks
    Mumtaz

    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
    I have cut paste the code from my jsp which is working. There is one additional line. I do not know if that is the cause but there is no harm in trying that out.
    Srinivasan Ranganathan

  • How to stop the Calendar from editing your input?

    How to stop the Calendar from editing your input?

    I am constantly finding that Calendar Version 8.0 thinks it knows what I want to type but it incorrectly takes numbers and days and times out of my input and changes my appointments. I hate this new supposedly "smart" feature. Even when I edit my event correctly a second or third time it rewrites my input incorrectly again. I have to use my iPhone to override the annoying editing on my mac. I am ready to find a new calendar program unless Apple allows users to input what they want without their information being incorrectly edited.

  • How to stop PR creation from PM work order for a particular vendor?

    Hello Experts,
    We have following scenario for breakdown maintenance activities.
    When a machine breaks down, a breakdown order is created in SAP. The external manintenance services are planned in the order. When the order is released, a single PR (with multiple item numbers corresponding to number of services) is created by SAP. The PR has a release strategy. When PR is released, PO is created followed by the SES.
    The practice followed AS -IS for breakdown outside business hours:- If the breakdown happens outside business working hours, the person releasing the PRs is not available & hence PR can not be released resulting in no PO & no subsequent SES.
    In this case, the maintenance is completed by the external agency & the work order is TECO. The next day, TECO is reveresed, new PR is created, released, converted into PO, & then SES.
    TO-BE process:- Client expects that, for certain vendors identified, PR should not get created at all from the breakdown order. (The list of  vendors will be maintained seperately). For these vendors, a framework order will be created at the start of fiscal year & SES will be created as & when required agaainst the framework order.
    My concern is :- How to stop PR creation from PM work order for a particular vendor? OR delete the created PR?
    Highly appreciate your quick response.
    Thank you.
    Amit
    Note:- My ABAP consultant has checked following BADI's, but could not find it useful.
    IWO1_ORDER_BADI
    ORDER_COSTING_CK
    DATA_EXTENSION_CK
    VALUATION_CK
    ME_REQ_OI_EXT
    IWO1_PREQ_BADI
    ME_CHECK_SOURCES
    ME_REQ_POSTED
    IWO1_ORDER_BADI

    Dear Amit
    I am giving a different dimension to your question check if it fulfills your requirement -
    As we know Vendor selection comes at a later stage only after your PR creation, approval & RFQ etc. & PR generation from maintaine. order is controllled through control key PM03.  While triggering PR from order you have to specify Material group, Purchase group and vendor. Try to control it through authorisation as all these are authorisation objects. The persons executing breakdown order shall no t be given this authoriations
    shakti

Maybe you are looking for