Jump to content
Server Maintenance This Week. ×

Opening multiple URLs in sequence


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

Recommended Posts

I'm trying to make a solution IWP-compatible (testing in FMP Advanced 10.0v3). I'm currently testing on my own machine, but will eventually move to a server.

THE PROBLEM: I want to have multiple "Open URL" commands run in sequence. When I do so, the first one opens in a new tab as I want it, but the subsequent tabs or windows all load the same URL (one of the ones specified); not the other ones.

The script has two if/end if structures, that determine what kind of client is active (FMP or IWP), then runs the same basic logic (see following), only for IWP, it uses "Open File" (which works perfectly), and for IWP, uses "Open URL"

Within the if/end if structure that script goes into, scripting determines which of four checkboxes have been selected in a field, and then based on that, again, opens those files (in FMP) or URLs (in IWP).

A CHUNK OF THE FMP CODE:

PatternCount(login::db_selector; "db1") and PatternCount(login::db_selector; "db2") and PatternCount(login::db_selector; "db3") and PatternCount(login::db_selector; "db4")

Open File ["db1"]

Open File ["db2"]

Open File ["db3"]

Open File ["db4"]

A CHUNK OF THE IWP CODE:

PatternCount(login::db_selector; "db1") and PatternCount(login::db_selector; "db2") and PatternCount(login::db_selector; "db3") and PatternCount(login::db_selector; "db4")

Open URL [No dialog; "http://127.0.0.1:591/fmi/iwp/cgi?-db=db1&-loadframes"]

Open URL [No dialog; "http://127.0.0.1:591/fmi/iwp/cgi?-db=db2&-loadframes"]

Open URL [No dialog; "http://127.0.0.1:591/fmi/iwp/cgi?-db=db3&-loadframes"]

Open URL [No dialog; "http://127.0.0.1:591/fmi/iwp/cgi?-db=db4&-loadframes"]

OS X 10.6.8

Firefox 8.0.1

"A script step attempted to open a url, but failed because popup windows are being blocked by your browser. Please disable popup blocking and try again."

Once the site was added to pop up blocking exceptions, the first url opened in two new tabs (when there were two Open URLs steps).

Safari 5.1.5

Same behavior as Firefox.

Chrome 18.0.xxx

Same behavior as Firefox and Safari, except the urls are opened in new windows, not tabs.

Is there a way in FileMaker to have the urls open in tabs, vs. new windows, or is that purely browser controlled?

Anyone know the solution? I'm new to IWP, so it is likely something pretty basic. Thank you.

Ken

Link to comment
Share on other sites

This topic is 4409 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.