Results 1 to 6 of 6
  1. #1
    Newbie
    Join Date
    January 18th, 2005
    Posts
    6
    Can anyone tell me what mistake I have made in the following code, which is intended to replace ss in the Eey_Ex field with Simple Style:
    [WM-Field: Key_Ex replace ("ss", "Simple Style")]
    At present it draws ss from the field but does not do the replacement with Simple Style.

  2. #2
    ABW Ambassador Nature Boy's Avatar
    Join Date
    January 18th, 2005
    Location
    Tennessee
    Posts
    1,423
    There shouldn't be a space after the comma.

    [WM-Field: Key_Ex replace ("ss","Simple Style")]
    Scott
    If you can't dazzle them with brilliance, then baffle them with bulls#!t
    Don't tell me that you'll do it... SHOW ME.
    Just because everyone else is drinking it is no reason for me to drink the KOOL-AID.

  3. #3
    Newbie
    Join Date
    January 18th, 2005
    Posts
    6
    Thank you. I've removed the space after the comma and it is still not working. Can you see a second error?

    Primrose

  4. #4
    ABW Ambassador AWaR's Avatar
    Join Date
    January 18th, 2005
    Location
    Scotland
    Posts
    625
    There should also be no space between replace and the opening bracket :

    [WM-Field: Key_Ex replace("ss","Simple Style")]

  5. #5
    Newbie
    Join Date
    January 18th, 2005
    Posts
    6
    Thank you. Using WM is making me very 'space conscious'. I sometimes find that re-sizing a cell in Dreamweaver forces a line of code onto 2 lines and stops it working properly. But I am very pleased with WM and the support from this forum helps a lot.

    Primrose

  6. #6
    Affiliate Manager
    Join Date
    January 18th, 2005
    Location
    Los Angeles, California
    Posts
    1,913
    <BLOCKQUOTE class="ip-ubbcode-quote"><font size="-1">quote:</font><HR>Originally posted by Primrose:
    Thank you. Using WM is making me very 'space conscious'. I sometimes find that re-sizing a cell in Dreamweaver forces a line of code onto 2 lines and stops it working properly. But I am very pleased with WM and the support from this forum helps a lot.
    <HR></BLOCKQUOTE>

    Yes, there are some very brigh and enormously helpful people on this list.

    The WebMerge replace option should allow spaces between the search and replace strings and the comma, so if anyone has an example in which that's not working please send it to me so I can correct that.

    As for returns put in by DW, yes, that can be a problem. But I'm curious: in most other regards Macromedia products are very good. Any idea why they would choose to bloat your HTML with unnecessary returns based solely on space available for display?
    Richard Gaskin
    Developer of WebMerge: Publish any data feed on any site
    http://www.fourthworld.com

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Using the title attribute or the alt attribute
    By Julian in forum Midnight Cafe'
    Replies: 12
    Last Post: July 11th, 2008, 02:55 PM
  2. How can I replace commas. Replace wont' do it
    By sotonman in forum WebMerge (Fourthworld.com)
    Replies: 8
    Last Post: April 25th, 2007, 04:37 AM
  3. WM tags into the Replace attribute!!
    By it2shoes in forum WebMerge (Fourthworld.com)
    Replies: 7
    Last Post: March 21st, 2006, 11:45 PM
  4. Image alt Attribute
    By John Powell in forum WebMerge (Fourthworld.com)
    Replies: 2
    Last Post: October 26th, 2005, 08:27 AM
  5. Feedback of nolink attribute
    By FourthWorld in forum WebMerge (Fourthworld.com)
    Replies: 12
    Last Post: February 4th, 2004, 09:42 PM

Posting Permissions

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