LoadVars enviar Firefox bloquear pop-up

  • IceCold
  • Guru
  • Guru
  • Avatar de Usuario
  • Registrado: Nov 05, 2004
  • Mensajes: 1254
  • Loc: Ro
  • Status: Offline

Nota Junio 1st, 2007, 4:04 am

¿Soy yo el único que no lo sabía o...?
Esto es lo que tengo:
Código: [ Select ]
function PlayEmbededVideo()
{
    var lvSend:LoadVars = new LoadVars();
    lvSend.strEmbed = "some text";
    lvSend.send("playembed.php", "_blank", "POST");
}

// first case: when i press the button, firefox blocks the new window
myBtn.onPress = function()
{
  PlayEmbededVideo();
}

// -------- onPress and onRelease are not used in the same time, i remove one of them when testing

// second case: when i release the button, firefox displays the new window
myBtn.onRelease = function()
{
  PlayEmbededVideo();
}
  1. function PlayEmbededVideo()
  2. {
  3.     var lvSend:LoadVars = new LoadVars();
  4.     lvSend.strEmbed = "some text";
  5.     lvSend.send("playembed.php", "_blank", "POST");
  6. }
  7. // first case: when i press the button, firefox blocks the new window
  8. myBtn.onPress = function()
  9. {
  10.   PlayEmbededVideo();
  11. }
  12. // -------- onPress and onRelease are not used in the same time, i remove one of them when testing
  13. // second case: when i release the button, firefox displays the new window
  14. myBtn.onRelease = function()
  15. {
  16.   PlayEmbededVideo();
  17. }

Que me hace pensar: ¿qué onRelease más de onPress, nueva ventana para que ya no se considera una ventana emergente y bloqueado?
“True mastery transcede any particular art. It stems from mastery of oneself - the ability, developed throgh self-discipline, to be calm, fully aware, and complety in tune with oneself and the surroundings. Then, and only then, can a person know himself. ”
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Junio 1st, 2007, 4:04 am

  • graphixboy
  • Control + Z
  • Mastermind
  • Avatar de Usuario
  • Registrado: Jul 11, 2005
  • Mensajes: 1828
  • Loc: In the Great White North
  • Status: Offline

Nota Junio 3rd, 2007, 3:37 pm

Hmm su divertido. Yo no sabía eso. Yo siempre uso onRelease porque siento que proporciona más de la experiencia del usuario de esperar, pero de cualquier manera no debe haber ese tipo de diferencia. Sólo por curiosidad, pero ¿qué ocurre si se utiliza una tecla?

también lo hace el cambio la reacción FF si utiliza
Código: [ Select ]
System.security.allowDomain( "www.mysite.com" );
  • krismeister
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Oct 21, 2006
  • Mensajes: 202
  • Status: Offline

Nota Junio 3rd, 2007, 5:11 pm

No sé la respuesta, pero --

Muchas gracias. Nunca he entendido cómo algunas personas pueden obtener sus películas Flash para abrir un pop-up, pero no soy yo.

Publicar Información

  • Total de mensajes en este tema: 3 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 45 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC