Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 8298 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.