You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Vasili Petrenko <va...@devintime.de> on 2013/11/28 14:26:30 UTC

JQuery IE Problem

Hi. I use jQuery Dialog. In FireFox and Chrome work it perfect, but not in
IE ( I use IE 10 ). I have following javascript error:

 

SCRIPT438: Object doesn't support this property or method à„dialog“

dialoglink.js, line 9 character 14

 

The code of dialoglink.js

 

(function( $ ) {

 

       T5.extendInitializers(function(){

             

             function init(spec) {

                    $('#' + spec.triggerId).click(function(e) {

 

                        e.preventDefault();

                   jQuery('#' + spec.dialogId).dialog('open');

                           

                           return false;

               });

             }

             

             return {

                    dialogLink : init

             };

       });

       

}) ( jQuery );

 

How can I solve the problem?

 


AW: JQuery IE Problem

Posted by Vasili Petrenko <va...@devintime.de>.
Yes, I have a right ID. It is happens if I have a dialogajaxlink. 

<t:jquery.dialogajaxlink t:id="link2" t:dialog="myDialog" t:zone="myZone">
    Open
</t:jquery.dialogajaxlink>

With the direct call ($j('#dlgAskPdf').dialog('open');) I don't jump to line
9.



-----Ursprüngliche Nachricht-----
Von: Emmanuel DEMEY [mailto:demey.emmanuel@gmail.com] 
Gesendet: Donnerstag, 28. November 2013 15:38
An: Tapestry users
Betreff: Re: JQuery IE Problem

If you add a breakpoint on line 9, does your jQuery('#' + spec.dialogId)
return the right thing ?
Manu


2013/11/28 Vasili Petrenko <va...@devintime.de>

> If I execute this code in console : $j('#dlgAskPdf').dialog('open'); 
> the modal box is showing.
>
>  '$j' is my alias for JQuery.
>
> -----Ursprüngliche Nachricht-----
> Von: Vasili Petrenko [mailto:vasili.petrenko@devintime.de]
> Gesendet: Donnerstag, 28. November 2013 14:27
> An: users@tapestry.apache.org
> Betreff: JQuery IE Problem
>
> Hi. I use jQuery Dialog. In FireFox and Chrome work it perfect, but 
> not in IE ( I use IE 10 ). I have following javascript error:
>
>
>
> SCRIPT438: Object doesn't support this property or method à„dialog“
>
> dialoglink.js, line 9 character 14
>
>
>
> The code of dialoglink.js
>
>
>
> (function( $ ) {
>
>
>
>        T5.extendInitializers(function(){
>
>
>
>              function init(spec) {
>
>                     $('#' + spec.triggerId).click(function(e) {
>
>
>
>                         e.preventDefault();
>
>                    jQuery('#' + spec.dialogId).dialog('open');
>
>
>
>                            return false;
>
>                });
>
>              }
>
>
>
>              return {
>
>                     dialogLink : init
>
>              };
>
>        });
>
>
>
> }) ( jQuery );
>
>
>
> How can I solve the problem?
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


--
Emmanuel DEMEY
Ingénieur Etude et Développement
Worldline, an atos company
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com


Twitter : @EmmanuelDemey



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: JQuery IE Problem

Posted by Emmanuel DEMEY <de...@gmail.com>.
If you add a breakpoint on line 9, does your jQuery('#' + spec.dialogId)
return the right thing ?
Manu


2013/11/28 Vasili Petrenko <va...@devintime.de>

> If I execute this code in console : $j('#dlgAskPdf').dialog('open'); the
> modal box is showing.
>
>  '$j' is my alias for JQuery.
>
> -----Ursprüngliche Nachricht-----
> Von: Vasili Petrenko [mailto:vasili.petrenko@devintime.de]
> Gesendet: Donnerstag, 28. November 2013 14:27
> An: users@tapestry.apache.org
> Betreff: JQuery IE Problem
>
> Hi. I use jQuery Dialog. In FireFox and Chrome work it perfect, but not in
> IE ( I use IE 10 ). I have following javascript error:
>
>
>
> SCRIPT438: Object doesn't support this property or method à„dialog“
>
> dialoglink.js, line 9 character 14
>
>
>
> The code of dialoglink.js
>
>
>
> (function( $ ) {
>
>
>
>        T5.extendInitializers(function(){
>
>
>
>              function init(spec) {
>
>                     $('#' + spec.triggerId).click(function(e) {
>
>
>
>                         e.preventDefault();
>
>                    jQuery('#' + spec.dialogId).dialog('open');
>
>
>
>                            return false;
>
>                });
>
>              }
>
>
>
>              return {
>
>                     dialogLink : init
>
>              };
>
>        });
>
>
>
> }) ( jQuery );
>
>
>
> How can I solve the problem?
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Emmanuel DEMEY
Ingénieur Etude et Développement
Worldline, an atos company
+33 (0)6 47 47 42 02
demey.emmanuel@gmail.com


Twitter : @EmmanuelDemey

AW: JQuery IE Problem

Posted by Vasili Petrenko <va...@devintime.de>.
If I execute this code in console : $j('#dlgAskPdf').dialog('open'); the
modal box is showing.

 '$j' is my alias for JQuery.

-----Ursprüngliche Nachricht-----
Von: Vasili Petrenko [mailto:vasili.petrenko@devintime.de] 
Gesendet: Donnerstag, 28. November 2013 14:27
An: users@tapestry.apache.org
Betreff: JQuery IE Problem

Hi. I use jQuery Dialog. In FireFox and Chrome work it perfect, but not in
IE ( I use IE 10 ). I have following javascript error:

 

SCRIPT438: Object doesn't support this property or method à„dialog“

dialoglink.js, line 9 character 14

 

The code of dialoglink.js

 

(function( $ ) {

 

       T5.extendInitializers(function(){

             

             function init(spec) {

                    $('#' + spec.triggerId).click(function(e) {

 

                        e.preventDefault();

                   jQuery('#' + spec.dialogId).dialog('open');

                           

                           return false;

               });

             }

             

             return {

                    dialogLink : init

             };

       });

       

}) ( jQuery );

 

How can I solve the problem?

 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org