Jump to content
  • 0

IWP afsluiten


jw

Question

Posted

Ik heb een simpele oplossing gemaakt in IWP.

In het afsluiten wil ik graag dat de gebruiker op een door mij op te geven url terugkeert of evt. het venster sluit. Heeft iemand hier een oplossing voor?

2 answers to this question

Recommended Posts

  • 0
Posted

De script stap 'Exit Application' logt de webgebruiker uit, en doet de gebruiker terugkeren naar de IWP home page. Je maakt best een knop 'Verlaten' of 'Uitloggen' of iets dergelijks, met deze script stap erachter.

 

De home page is wat FileMaker standaard voorziet, nl. pagina met lijst van databases die beschikbaar zijn via IWP.

 

Je kan ook je eigen IWP home page maken, waarnaar de gebruiker terugkeert als gevolg van de Exit Application script stap.

 

De instructies hiervoor vind je zo rond pagina 16 van de Instant Web Publishing Guide, meegeleverd als documentatie bij FileMaker Pro of FileMaker Server.

 

For your convenience, plak ik hieronder de betreffende paragraaf:

 

To replace the default Database Homepage, place an HTML file named iwp_home.html in the Web folder inside the FileMaker Pro folder. Web users are returned to this page when they log out of a session or the session times out.

Note   If you are hosting databases with FileMaker Server Advanced, place the custom home page in the Web Publishing/IWP folder where FileMaker Server is installed (Windows) or in the /Library/FileMaker Server/Web Publishing/IWP folder (Mac OS).

You can use the iwp_home.html file that is on your product CD as a basis for your custom home page.

Be sure to make a copy of the original file before modifying it. Or you can create your own home page, such as one that redirects web users to another page on your web site.

If there is no file named iwp_home.html in the Web folder (FileMaker Pro, FileMaker Pro Advanced) or the iwp folder (FileMaker Server Advanced), Instant Web Publishing uses the default Database Homepage.

In order to prevent a custom home page from loading into the Instant Web Publishing layout frame when a user logs out via a script or a session times out, the following JavaScript should be added to the head section of the iwp_home.html file:

if (window != window.top) top.location = "/fmi/iwp/cgi?-home";

You can set top.location to the home URL or any other URL.

 

- Jeroen

  • 0
Posted

als je liever NL leest:

Een eigen startpagina gebruiken

Als u de standaard homepage van de database wilt wijzigen, plaatst u een HTML-bestand met de naam

iwp_home.html in de map Web van de FileMaker Pro-map. Webgebruikers keren terug naar die pagina

wanneer ze hun sessie sluiten door zich af te melden of wanneer er een time-out voor hun sessie optreedt.

Opmerking Als u databases host met FileMaker Server Advanced, plaatst u uw eigen homepage in de map

Web Publishing/IWP, waarin FileMaker Server is geïnstalleerd (Windows) of in de map /Library/FileMaker

Server/Web Publishing/IWP (Mac OS).

U kunt het bestand iwp_home.html dat zich op de product-cd bevindt, gebruiken als basis voor uw eigen

homepage.

Let erop dat u eerst een kopie van het originele bestand maakt alvorens het te wijzigen. U kunt ook uw eigen

homepage maken, bijvoorbeeld een homepage die webgebruikers omleidt naar een andere pagina op uw

website.

Als de map Web (FileMaker Pro, FileMaker Pro Advanced) of de map iwp (FileMaker Server Advanced)

geen bestand met de naam iwp_home.html bevat, gebruikt Instant Web Publishing de standaard

homepage van de database.

Als u wilt voorkomen dat een eigen homepage wordt geladen in het Instant Web Publishing-lay-outframe

wanneer een gebruiker zich via een script afmeldt of wanneer er een time-out voor een sessie optreedt, voegt

u het volgende JavaScript toe aan de kopsectie van het bestand iwp_home.html:

if (window != window.top) top.location = "/fmi/iwp/cgi?-home";

U kunt top.location instellen op de homepage-URL of elke andere URL.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...