@verylastminute:
for mootools: http://jsfiddle.net/Fp2s2/
for jquery: http://jsfiddle.net/Fp2s2/2/
Both of these are not work on Safari 5.1.3


@piotr
No, I cannot. My project requires Popup Window only. And the users will be
confused

Thank you big big

On Thu, May 17, 2012 at 2:25 PM, piotr_cz <pkoniec...@hotmail.com> wrote:

> Instead of opening new window you could load new content to modal
> iframe/ ajax content (see http://mootools.net/forge/browse?search=modal)
>
> When you really really need to open new window, you may check if
> opening has been successful and if not, assume that it's blocked by
> browser and show up a notice to user that popups have to be allowed
> for full app functionality.
>
>
> On May 16, 4:34 pm, verylastminute <cgp...@gmail.com> wrote:
> > Please can you make a fiddle (http://jsfiddle.net) which demonstrates it
> > working with jQuery and a fiddle that demonstrates it not working with
> > MooTools? My initial feeling is that popups are the domain of the
> browser,
> > and all libraries will fail this operation if the browser prevents it.
> The
> > fiddles will help to enforce this idea, or provide insight as to why it
> is
> > invalid.
> >
> > cp
> >
> >
> >
> >
> >
> >
> >
> > On Wednesday, May 16, 2012 3:58:46 PM UTC+2, Sitthykun wrote:
> >
> > > Hi Mootooler,
> >
> > > I have problem with my mootools's statement
> >
> > > document.id("myAhref").addEvent("click", function(event) {
> > >                                         event.stop();
> > > new Request({
> > >      url: 'http://test.com/requestData.php',
> > >                                              async:    false,
> > >                                              method: 'POST',
> > >      data: {'key': 'value'},
> > >       onComplete: function(responseText) {
> > > if (responseText != undefined) {
> > >  var newWindow = window.open('http://test.com/example.php');
> > > if (newWindow && !newWindow.closed) {
> > >  newWindow.focus();
> > > }
> > >         }
> > >     }
> > >       }).send();
> > > });
> >
> > > *It does not work Safari and others are so good, I don't see error.*
> > > *but in JQuery it work as well.*
> > > *I don't know what is the problem*
> >
> > > $("# myAhref ").click(function(e) {
> > >                                         e.preventDefault();
> > >                                         $.ajax({
> > >                                                 url: '
> > >http://test.com/requestData.php',
> > >                                                 async:    false,
> > >                                                 type: "POST",
> > >                                                 data: {'key': 'value'},
> > >                                                 success:
> > >  function(responseText) {
> > >                                                         if
> (responseText
> > > != undefined) {
> > >                                                                 if
> > > (responseText != undefined) {
> > >  var newWindow = window.open('http://test.com/example.php');
> > > if (newWindow && !newWindow.closed) {
> > >  newWindow.focus();
> > > }
> > >                 }
> > >                                                         }
> > >                                         });
> > >                                 });
> >
> > > Thanks,
> > > Sitthykun LY
>

Reply via email to