Problems with sendAndLoad and PHP script

  • oli
  • Born
  • Born
  • No Avatar
  • Joined: Nov 22, 2007
  • Posts: 1
  • Status: Offline

Post November 22nd, 2007, 1:41 pm

Hello:

I'm new in this forum. I'm having problems with a sendAndLoad call. I invoke a php script with sendAndLoad and try to open a javascript pop-up window from the php, but it doesn't open.

However if i run the php script alone it works.

I'm already test that the php script is invoked from flash, is just that no open the pop-up.

thanks in advance

oli
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post November 22nd, 2007, 1:41 pm

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Joined: Jul 11, 2005
  • Posts: 1828
  • Loc: In the Great White North
  • Status: Offline

Post November 23rd, 2007, 5:48 pm

why don't you just call the javascript right from actionscript? The php in the middle seems like an extra layer.

There are other ways but a simple solution is:
Code: [ Select ]
getURL("javascript:functionName()");
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Joined: Sep 22, 2003
  • Posts: 6130
  • Loc: Seattle, WA
  • Status: Offline

Post November 23rd, 2007, 8:40 pm

The ExternalInterface class would probably be of great help to you. It allows you to call javascript functions directly from within the ActionScript, complete with callback methods and the works.

http://livedocs.adobe.com/flash/8/main/00002200.html
The Beer Monocle. Classy.

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 52 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.