Problems with sendAndLoad and PHP script

  • oli
  • Born
  • Born
  • oli
  • Posts: 1

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

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()");
  • spork
  • Brewmaster
  • Silver Member
  • User avatar
  • Posts: 6251
  • Loc: Seattle, WA

Post 3+ Months Ago

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

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 16 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.