Top Experts [
learn more
]
Top 4-10
webko
9743 K
bandmandq
2458 K
Genx
1525 K
4.
tcmeyers
5.
kbata
6.
Martie
7.
Hammerton
8.
rrenfrow
9.
bneeman
10.
plegler
Welcome,
Guest
. Please
login
or
register
.
June 19, 2013, 01:03:17 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27508
Posts in
6074
Topics by
1524
Members
Latest Member:
fmwebster
fmwebschool.com
PHP Web Publishing Technologies
FileMaker PHP, FX.php custom web publishing
Subsequent fmsredirects [SOLVED]
0 Members and 1 Guest are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Subsequent fmsredirects [SOLVED] (Read 2223 times)
glucas3232
Hero Member
Offline
Posts: 204
Applications:
FMStudio
(User)
Dolphin Cart Pro
(Novice)
FMStudio Charts
(Novice)
FMStudio Email
(Novice)
Subsequent fmsredirects [SOLVED]
«
on:
April 23, 2009, 03:04:46 PM »
I have a form submitted to the database that loops through a portal to send emails for each record in the portal. Like this:
add_job_post.php
>>
job_post_result.php
(creates record) FMSREDIRECT (uses -recid) to
JobQueueNotify.php
(send email to each portal record).
Above scenario works fine. But as you may know, there is about a 1 second delay between each record sent with the FMStudio Email Module. This causes a delay in the screen draw and it's confusing to the user to know what is going on.
I'd like to solve this by inserting a processing page between the job_post_result.php page and the JobQueuNotify.php page. Like this:
add_job_post.php
>>
job_post_result.php
(creates record)
1st FMSREDIRECT
(uses -recid) to
JobQueueNotify.php
(send email to each portal record and has a process graphic indicating status)
2nd FMSREDIRECT
(uses -recid) to
JobQueueNotifyList.php
that will show list of those notified (bascially this page is a clone of the JobQueueNotify.php page without the process graphic).
Here's the problem. When the record is created and redirects to the JobQueueNotify.php page (which also has the second redirect on it) I just get a blank page. Is there a limit to the number of subsequent FMSRedirects or is there a basic flaw with my logic here?
«
Last Edit: April 24, 2009, 01:40:36 PM by glucas3232
»
Logged
glucas3232
Hero Member
Offline
Posts: 204
Applications:
FMStudio
(User)
Dolphin Cart Pro
(Novice)
FMStudio Charts
(Novice)
FMStudio Email
(Novice)
Re: Subsequent fmsredirects
«
Reply #1 on:
April 23, 2009, 04:31:40 PM »
Ok I think I understand the problem. Fmsredirect apparently only executes in the header thus preventing the remainder of the page from loading and executing email script. So, whats a better method to have the page load, execute the email module code then redirect to the final summary page?
Logged
webko
Global Moderator
Hero Member
Offline
Posts: 2060
Kudos: 9743
Applications:
FX.php
(Guru)
BlackBelt
(Expert)
PHP API
(Advanced)
Re: Subsequent fmsredirects
«
Reply #2 on:
April 23, 2009, 05:06:24 PM »
So long as there is no html or white space, then you can use the redirect after the email code...
Put every thing inside the one set of <?php ?> tags for a start...
Logged
tim.webko_at_gmail.com
glucas3232
Hero Member
Offline
Posts: 204
Applications:
FMStudio
(User)
Dolphin Cart Pro
(Novice)
FMStudio Charts
(Novice)
FMStudio Email
(Novice)
Re: Subsequent fmsredirects
«
Reply #3 on:
April 23, 2009, 09:43:31 PM »
If I can't have any html after the FMSredirect, then I don't see a way to present a status bar on the screen to alert users that emails are in progress.
I think I'll just put a blurb of copy at the end of the job post form advising users to be patient while emails are processed and sent. Not elegant, but I don't see a better way to use the fmsredirect. Is there a different command that is less restrictive?
Logged
glucas3232
Hero Member
Offline
Posts: 204
Applications:
FMStudio
(User)
Dolphin Cart Pro
(Novice)
FMStudio Charts
(Novice)
FMStudio Email
(Novice)
Re: Subsequent fmsredirects
«
Reply #4 on:
April 23, 2009, 10:23:34 PM »
Also, during the delay 1 sec between emails, this interrupts the screen draw of the page, so it's all kind of busted up until the email script completes process processing then it all snaps into place. Is there a way to delay the email script so that the screen has a chance to build before the emails or sent. Just a cosmetic issue, but bugs me.
Logged
webko
Global Moderator
Hero Member
Offline
Posts: 2060
Kudos: 9743
Applications:
FX.php
(Guru)
BlackBelt
(Expert)
PHP API
(Advanced)
Re: Subsequent fmsredirects
«
Reply #5 on:
April 23, 2009, 11:27:26 PM »
Which is one of the reasons why I combine it all on one page - usually with the mailing code at the very end, so it should run after page load - I manage to quite happily send 50 emails before there's a noticeable lag, but (as usual) my stuff is all hand-coded so I don't know how to do the same thing in FMStudio
Logged
tim.webko_at_gmail.com
glucas3232
Hero Member
Offline
Posts: 204
Applications:
FMStudio
(User)
Dolphin Cart Pro
(Novice)
FMStudio Charts
(Novice)
FMStudio Email
(Novice)
Re: Subsequent fmsredirects
«
Reply #6 on:
April 24, 2009, 01:40:21 PM »
Thanks webko,
I duplicated the portal on the page and deleted all the content except for the email script and it now draws the page, and then loops through the second portal and sends emails.
Still would be nice process flow to have an intermedite page telling users what is going on, but I can live with this for now. Thanks for your help as always.
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Discussion and Announcements
-----------------------------
=> FMWebschools updates and announcements
===> FMWebschool Training Schedule
=> Newsletter and Community Discussion
=> Webinar and FMWebschool Events
=> General Discussion
===> CDML Old School FileMaker Web Publishing
===> FileMaker Mobile 7/8
=> Holiday Special Product Support
-----------------------------
FMTouch
-----------------------------
=> FMTouch - FileMaker Databases on the iPhone and iPod iTouch
===> FMTouch - Multi Language Discussion
=> FMTouch BlackBerry and FileMaker
-----------------------------
FMStudio
-----------------------------
=> FMStudio
===> FMStudio Connection and Installation Problems
=> FMStudio Pro
-----------------------------
FMWebschool Products and Solutions
-----------------------------
=> Dolphin Shopping Cart System
=> BlackBelt CDML Software
-----------------------------
FileMaker Books
-----------------------------
=> FileMaker Book Questions and Suggestions
-----------------------------
PHP Web Publishing Technologies
-----------------------------
=> FileMaker's New PHP API
=> FileMaker PHP, FX.php custom web publishing
===> Ajax Code and Examples
-----------------------------
FileMaker Inc Products and Technologies
-----------------------------
=> FileMaker Server 9
===> FileMaker Server 7 / 8 Advanced
=> Web Viewer
=> Instant Web Publishing
=> FileMaker XML, XSLT
-----------------------------
Other Resources
-----------------------------
=> Search Engine Optimization and Consulting
===> Marketing Book Reviews
=> FileMaker Web Resources
=> Free JavaScript Code Snips
=> Free PHP Code Snips
=> Web Jobs, Web Consulting
Loading...