CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Widget page open
Pages: [1]

Author Topic: Widget page open  (Read 1433 times)

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Widget page open
April 17, 2008, 12:44:56 pm
The "contribute" button on the widget opens the page in a separate browser window - I'd really like to change this behavior. I only have Flash MX, so I couldn't open the .fla file, but I had a friend open it and change the "_blank" target to "_self" in the Actionscript - but it doesn't work. The widget just "loops."

I'm obviously missing something - is there anyone who's savvy enough out there to either know how to change this behavior or generate a different version of the widget? Thanks... looking forward to deploying this soon!

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: Widget page open
April 17, 2008, 04:13:34 pm
I'm not an actionscript expert - but found this result off of a quick Google search. Looks promising:

http://www.actionscript.org/forums/showthread.php3?t=140266

Let us know if it works / post the code change here.
Protect your investment in CiviCRM by  becoming a Member!

bcobin

  • I post frequently
  • ***
  • Posts: 337
  • Karma: 9
    • InterCreative Media
  • CiviCRM version: 4.3.3
  • CMS version: Drupal 7.22
  • MySQL version: 5.5.9
  • PHP version: 5.3
Re: Widget page open
April 18, 2008, 06:51:56 am
Thanks, Dave. From the post:

Quote
You cannot navigate the special windows "_self", "_top", or "_parent" if your SWF file is contained by an HTML page that has set the allowScriptAccess to "none", or to "sameDomain" when the domains of the HTML file and the SWF file do not match.

Indeed, the embedding code is as follows:

Code: [Select]
<param name="allowScriptAccess" value="sameDomain" />
So I changed the allowScriptAccess value to "always".... but it still doesn't work. Just an endless loop. Nice try, though!

Not much more that I can do with Flash MX (again, the .fla file is a later version and won't open up in Flash MX, which is what I have), but I would think that changing the embedding code and changing "_blank" to "_self" might, just might do the trick.

Any takers? Thanks!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Widget page open

This forum was archived on 2017-11-26.