Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Open URL script not working correctly

Featured Replies

  • Newbies

I have a image database running on 5.5 server, and publishing via IWP using 5.5 Unlimited.

I have just created an OPEN URL script that opens the full size image (with a reduced version also displayed in a container field as a reference only)

The Open URL script opens the file using the path recorded in a field called URL.

This functions totally successfully within FMP5.5, and appears to also work in IWP, but only when browsing all records. When browsing a found set of record within IWP running the OPEN URL script opens the image for the wrong item. For instance when browsing a set of 4 records, clicking on the OPEN URL script for the 4th record will open up the image for the 4th record in the database, rather than the actual record I am browsing.

I have searched the web and Usenet for this problem but can't find any mention of it, and from everything I've read this seems to work successfully for others.

My webcompanion pluging is patched to v5.5.4.

Does anyone have any insight on what I am doing wrong?

thanks,

Caitlin

Hi, caitlin! I'm afraid I don't work with scripts often and hear that executing scripts over the web can be unpredictable, although I think FM7 (Advanced Server?) is supposed to be better at that than v4-6. Hopefully, someone from the Instant Web Publishing forums will be able to help you.

If you have the URL to the image in the field in its entirety, though, can you not make it a clickable link, e.g. http://www.yoursite.com/images/fullsize/photo.jpg, or does IWP not allow you to do that? In Custom Web Publishing, it's fairly simple...

<A HREF="[FMP-field:URL]">View Full Size</A>

Hmm... maybe there's a way to make IWP process data so that you can generate that line in calculation fields and have it insert it as part of the HTML returned to the browser. Sorry, just thinking out loud... I don't know enough about IWP.

Anyone else? I can only hit a foul ball here...

--ST

Try this tag [FMP-LinkRecID: format=yourimagepage.htm, layout=data]

The link should go to your page to display the image.

- If you can do it with calculations and CDML tags it is much better and more predictable than relying on scripts.

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.