• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: PHP and Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

property target_URL : "http://www.mywebsite.com"
open location target_URL


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

  • Follow-Ups:
    • Re: PHP and Applescript
      • From: Brian Johnson <email@hidden>
References: 
 >Re: PHP and Applescript (From: "Gary (Lists)" <email@hidden>)
 >Re: PHP and Applescript (From: Grace Finn <email@hidden>)
 >Re: PHP and Applescript (From: Brian Johnson <email@hidden>)
 >Re: PHP and Applescript (From: has <email@hidden>)
 >Re: PHP and Applescript (From: Grace Finn <email@hidden>)
 >Re: PHP and Applescript (From: has <email@hidden>)
 >Re: PHP and Applescript (From: Grace Finn <email@hidden>)
 >Re: PHP and Applescript (From: Brian Johnson <email@hidden>)

  • Prev by Date: Re: Error -609 [OT]
  • Next by Date: Re: Error -609
  • Previous by thread: Re: PHP and Applescript
  • Next by thread: Re: PHP and Applescript
  • Index(es):
    • Date
    • Thread