douglasgifford Posted May 15, 2002 Posted May 15, 2002 I'd like to parse CDML output to a page using JavaScript and don't know if its possible and don't know how to delimit it. If this worked, it would look like this: var textInput = [FMP-Field:course_materials, Break]; document.write(textInput.replace(/(http:[s|.S|,]*)/gi, "<a href = $1> $1 </a>")); but it doesn't work, nor do single or double quotes outside the square brackets. This line of code changes any full URLs in the field into links. It can be done within FileMaker, of course, but it's ghastly complicated, so being able to use the regular expressions in JavaScript would be nice. You seem a clever lot, can it be done? Doug
Recommended Posts
This topic is 8298 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now