Jump to content

Search the Community

Showing results for tags 'global'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome
    • Start Here!
    • News
  • Software-Related Talk
    • Documentation
    • Getting Started
    • The JavaScript Library
    • FusionPro® VDP Creator
    • FusionPro® VDP Producer
    • FusionPro® VDP Server (API)
    • FusionPro® Expression®
    • MarcomCentral®
  • Support
    • Issues, Questions, Etc.
    • Digital Workflow Documents
    • Fonts
  • Off Topic
    • Customer Polls
    • Job Board (Moderated)
    • Reviews, Rants, and General Musings

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Location


Occupation


FusionPro VDP software version


OS


Acrobat Version


Homepage


ICQ


AIM


Yahoo


MSN


Skype


User Title

Found 1 result

  1. I've run into a snag with a template where users are allowed to enter their own comment line. Some people requested Smilies in the form of ":)" which I used a snippet of code to replace with ☺: return Trim(Field("Comment").replace(":)","☺"); Someone just asked for a line of Smilies ":) :) :)" and that code returned "☺ :) :)". No problem, I'm thinking, I'll just make it a global replace with /g: return Trim(Field("Comment").replace(/:)/g,'☺'); Unfortunately, the close parenthesis refuses to register as a character in this format- an error message is returned when I try to validate: "Comment Rule, line 6: SyntaxError: unmatched ) in regular expression" Using .replace(":)"/g,'☺') doesn't work because the expressions are mixed (I'm not sure if that's the right terminology). Using .replace(/:()/g,'☺') generates valid code, but returns ☺)☺)☺)☺) (I did not expect it to give the right results, but it shows some of the internal process being applied). I'm not at the end of my rope, but some of the solutions I'm thinking of are getting really complicated. Does anyone have suggestions?
×
×
  • Create New...