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.

SCGetContainer for local paths only?

Featured Replies

I'm having difficulty using the SCGetContainer function to grab images for use in a portal. The SuperContainer demo seems to rely on the fact that you are running SC Server locally, and has no problem grabbing an image. But when I try to use the function using using a URL in the file path parameter (to a remote SC Server), I get an ERROR as the result.

Here's an example:

SCGetContainer("https://fmdemo.360works.com/SuperContainer/Files/desktoptests/11/7" ; 64 ; 64)

Suggestions please!! Thanks!

Dave

your url doesn't appear to have the port number?

http://www.360works.com/plugins/SuperContainer/plugin-documentation.html

  • Author

I have tried with and without port numbers, and it doesn't seem to make a difference. I've tried :80, :8020 and :8080.

I have also tried adding a forward slash at the end of the URL, but that too doesn't seem to make a difference.

You need to use the SCSetBaseUrl() function to set the prefix for all further requests. So instead of calling

SCGetContainer("https://fmdemo.360works.com/SuperContainer/Files/desktoptests/11/7" ; 64 ; 64)

You would call this once in your startup script:

SCSetBaseUrl( "http://fmdemo.360works.com/SuperContainer/Files/" )

and then you would make this call wherever appropriate:

SCGetContainer("desktoptests/11/7" ; 64 ; 64)

The idea behind the base URL is that since it is the same for all calls, you just call it once. We get some efficiency benefits in the plugin by being able to assume that all calls are made to the same server.

  • Author

Jesse,

Thanks for the response. I continued to have the same issue no matter what I tried. I finally called your company for help. After working with Michael, we ended up fixing the issue by upgrading my plugin version from v.2.1.2 to 2.1.6.

Cheers!

Dave W

Create an account or sign in to comment

Important Information

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

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.