Re: PHP and Applescript
Re: PHP and Applescript
- Subject: Re: PHP and Applescript
- From: Grace Finn <email@hidden>
- Date: Sun, 10 Feb 2008 12:43:44 -0600
On Feb 10, 2008, at 12:06 PM, Brian Johnson wrote:
You can return an http redirect, or a simple HTML page with a _javascript_ redirect, and use that to load a static HTML page with the form for the next event. As long as the form is always the same, that should work fine.
I'm not exactly sure how to do that without the browser opening a new window. As I said, I think I have to look into how to refresh a single frame from applescript.
The following works for Safari only:
tell application "Safari" do _javascript_ "window.location.reload()" in front document delay 0 end tell
This works with all but opens a new browser window:
Are you using a collection of separate CGIs? (your use of the "right.acgi" in your form suggests you might have a separate acgi for each action) or running all the commands through one?
All of the scripts will be separate acgi files for each action the buttons will be located in the same frame.
-b.johnson
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden