Re: Bug on modal window

2008-04-01 Thread Marco Aurélio Silva
My point is: It doesn't work if the span is inside the p. And I can't
put a div (with div works) because the div has a line break.

On Mon, Mar 31, 2008 at 5:57 PM, Martijn Dashorst 
[EMAIL PROTECTED] wrote:

 What is your point? it works != it is good/legal/standards
 compliant/works everywhere/works any time/etc.

 Browsers are notorious for incompatible behavior for standards
 compliant markup. You just found out what happens with non-standards
 compliant markup.

 Martijn

 On 3/31/08, Marco Aurélio Silva [EMAIL PROTECTED] wrote:
  But it works fine on FF
 
 
   On Mon, Mar 31, 2008 at 5:35 PM, Matej Knopp [EMAIL PROTECTED]
 wrote:
 
It can not be span. Span is an inline element so you can't put
 block
element such as divs inside span. That is invalid markup and it
confuses browsers.
   
-Matej
   
On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva 
 [EMAIL PROTECTED]
wrote:
 Hi all

  I found a bug in ModalWindow of wicket 1.2.6. If the markup of
modalwindow
  is inside a tag p, the modal doesn't work on IE6 and IE7.
  I wrote a CMS componente where the user can insert links on the
 page.
If
  user insert a link that is a popup inside a tag p /p the popup
doesn't
  open. This is what I can see on ajax debbuger:

  *INFO: *
  *INFO: *
  Initiating Ajax GET request on

   
  
 /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListenerwicket:behaviorId=0random=
  0.4619706830869044
  *INFO: *Invoking pre-call handler(s)...
  *INFO: *Received ajax response (1937 characters)
  *INFO: *
  ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent

   
  
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
  ![CDATA[span style=display:none

   
  
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater

 div
   
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content

  object width=425 height=355param value=
  http://www.youtube.com/v/ve9U1QunUoghl=nl
   name=movie/paramparam name=wmode
  value=transparent/paramembed width=425 height=355
  type=application/x-shockwave-flash wmode=transparent src=
  http://www.youtube.com/v/ve9U1QunUoghl=nl;/embed/object
  /div
  /span]]/componentevaluate![CDATA[var element =
  document.getElementById

   
  
 (cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content);
  var settings = new Object();
  settings.minWidth=200;
  settings.minHeight=200;
  settings.className=w_blue;
  settings.width=448;
  settings.height=355;
  settings.resizable=false;
  settings.widthUnit=px;
  settings.heightUnit=px;
  settings.element = element;
  settings.mask=semi-transparent;
  settings.onClose
   = function() { var

   
  
 wcall=wicketAjaxGet('/myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:modalWindowRepeater::IBehaviorListenerwicket:behaviorId=1',
  function() { }, function() { }); };
  Wicket.Window.create(settings).show();
  ]]/evaluate/ajax-response
  *INFO: *Response parsed. Now invoking steps...
  *ERROR: *Error while parsing response: Unknow runtimer error.
  *INFO: *Invoking post-call handler(s)...
  *INFO: *Invoking failure handler(s)...

  What I found out is that the error only happens if the markup of
 modal
  window is a SPAN. If I use a DIV, the modal works fine.
 Unfortunately I
  can't use DIV because DIV cause line break, and this break the
 layout
of my
  page. I tried to debug the javascript, but is a lot of lines and
 the JS
  debugger of IE didn't help. Can anyone help me?

   
   
   
--
Resizable and reorderable grid components.
http://www.inmethod.com
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
 


 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.2 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

 -
 To unsubscribe, e-mail: [EMAIL 

Re: Bug on modal window

2008-04-01 Thread Wouter Huijnink

Marco Aurélio Silva wrote:

My point is: It doesn't work if the span is inside the p. And I can't
put a div (with div works) because the div has a line break.

  


then add a class attribute to the div in order to exclude it from having 
a line break in your CSS


--
Wouter Huijnink
Func. Internet Integration
W http://www.func.nl
T +31 20 423
F +31 20 4223500


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-04-01 Thread Matej Knopp
You can use display:inline for the div.

-Matej

On Tue, Apr 1, 2008 at 2:36 PM, Wouter Huijnink [EMAIL PROTECTED] wrote:
 Marco Aurélio Silva wrote:
   My point is: It doesn't work if the span is inside the p. And I can't
   put a div (with div works) because the div has a line break.
  
  

  then add a class attribute to the div in order to exclude it from having
  a line break in your CSS

  --
  Wouter Huijnink
  Func. Internet Integration
  W http://www.func.nl
  T +31 20 423
  F +31 20 4223500




  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-03-31 Thread Matej Knopp
It can not be span. Span is an inline element so you can't put block
element such as divs inside span. That is invalid markup and it
confuses browsers.

-Matej

On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote:
 Hi all

  I found a bug in ModalWindow of wicket 1.2.6. If the markup of modalwindow
  is inside a tag p, the modal doesn't work on IE6 and IE7.
  I wrote a CMS componente where the user can insert links on the page. If
  user insert a link that is a popup inside a tag p /p the popup doesn't
  open. This is what I can see on ajax debbuger:

  *INFO: *
  *INFO: *
  Initiating Ajax GET request on
  
 /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListenerwicket:behaviorId=0random=
  0.4619706830869044
  *INFO: *Invoking pre-call handler(s)...
  *INFO: *Received ajax response (1937 characters)
  *INFO: *
  ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
  
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
  ![CDATA[span style=display:none
  
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater

 div 
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content

  object width=425 height=355param value=
  http://www.youtube.com/v/ve9U1QunUoghl=nl
   name=movie/paramparam name=wmode
  value=transparent/paramembed width=425 height=355
  type=application/x-shockwave-flash wmode=transparent src=
  http://www.youtube.com/v/ve9U1QunUoghl=nl;/embed/object
  /div
  /span]]/componentevaluate![CDATA[var element =
  document.getElementById
  
 (cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content);
  var settings = new Object();
  settings.minWidth=200;
  settings.minHeight=200;
  settings.className=w_blue;
  settings.width=448;
  settings.height=355;
  settings.resizable=false;
  settings.widthUnit=px;
  settings.heightUnit=px;
  settings.element = element;
  settings.mask=semi-transparent;
  settings.onClose
   = function() { var
  
 wcall=wicketAjaxGet('/myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:modalWindowRepeater::IBehaviorListenerwicket:behaviorId=1',
  function() { }, function() { }); };
  Wicket.Window.create(settings).show();
  ]]/evaluate/ajax-response
  *INFO: *Response parsed. Now invoking steps...
  *ERROR: *Error while parsing response: Unknow runtimer error.
  *INFO: *Invoking post-call handler(s)...
  *INFO: *Invoking failure handler(s)...

  What I found out is that the error only happens if the markup of modal
  window is a SPAN. If I use a DIV, the modal works fine. Unfortunately I
  can't use DIV because DIV cause line break, and this break the layout of my
  page. I tried to debug the javascript, but is a lot of lines and the JS
  debugger of IE didn't help. Can anyone help me?




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-03-31 Thread Marco Aurélio Silva
But it works fine on FF

On Mon, Mar 31, 2008 at 5:35 PM, Matej Knopp [EMAIL PROTECTED] wrote:

 It can not be span. Span is an inline element so you can't put block
 element such as divs inside span. That is invalid markup and it
 confuses browsers.

 -Matej

 On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva [EMAIL PROTECTED]
 wrote:
  Hi all
 
   I found a bug in ModalWindow of wicket 1.2.6. If the markup of
 modalwindow
   is inside a tag p, the modal doesn't work on IE6 and IE7.
   I wrote a CMS componente where the user can insert links on the page.
 If
   user insert a link that is a popup inside a tag p /p the popup
 doesn't
   open. This is what I can see on ajax debbuger:
 
   *INFO: *
   *INFO: *
   Initiating Ajax GET request on
 
  
 /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListenerwicket:behaviorId=0random=
   0.4619706830869044
   *INFO: *Invoking pre-call handler(s)...
   *INFO: *Received ajax response (1937 characters)
   *INFO: *
   ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
 
  
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
   ![CDATA[span style=display:none
 
  
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
 
  div
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content
 
   object width=425 height=355param value=
   http://www.youtube.com/v/ve9U1QunUoghl=nl
name=movie/paramparam name=wmode
   value=transparent/paramembed width=425 height=355
   type=application/x-shockwave-flash wmode=transparent src=
   http://www.youtube.com/v/ve9U1QunUoghl=nl;/embed/object
   /div
   /span]]/componentevaluate![CDATA[var element =
   document.getElementById
 
  
 (cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content);
   var settings = new Object();
   settings.minWidth=200;
   settings.minHeight=200;
   settings.className=w_blue;
   settings.width=448;
   settings.height=355;
   settings.resizable=false;
   settings.widthUnit=px;
   settings.heightUnit=px;
   settings.element = element;
   settings.mask=semi-transparent;
   settings.onClose
= function() { var
 
  
 wcall=wicketAjaxGet('/myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:modalWindowRepeater::IBehaviorListenerwicket:behaviorId=1',
   function() { }, function() { }); };
   Wicket.Window.create(settings).show();
   ]]/evaluate/ajax-response
   *INFO: *Response parsed. Now invoking steps...
   *ERROR: *Error while parsing response: Unknow runtimer error.
   *INFO: *Invoking post-call handler(s)...
   *INFO: *Invoking failure handler(s)...
 
   What I found out is that the error only happens if the markup of modal
   window is a SPAN. If I use a DIV, the modal works fine. Unfortunately I
   can't use DIV because DIV cause line break, and this break the layout
 of my
   page. I tried to debug the javascript, but is a lot of lines and the JS
   debugger of IE didn't help. Can anyone help me?
 



 --
 Resizable and reorderable grid components.
 http://www.inmethod.com

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Bug on modal window

2008-03-31 Thread Matej Knopp
It can cause all kinds of problems, even ones you can not see
immediately, like with forms or other layout problems. If it's invalid
then it's invalid. Not all browsers can cope with that.

-Matej

On Mon, Mar 31, 2008 at 10:54 PM, Marco Aurélio Silva [EMAIL PROTECTED] wrote:
 Actually, it works with span also on IE, it only not works if  the span is
  inside the p tag


  On Mon, Mar 31, 2008 at 5:35 PM, Matej Knopp [EMAIL PROTECTED] wrote:



  It can not be span. Span is an inline element so you can't put block
   element such as divs inside span. That is invalid markup and it
   confuses browsers.
  
   -Matej
  
   On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva [EMAIL PROTECTED]
   wrote:
Hi all
   
 I found a bug in ModalWindow of wicket 1.2.6. If the markup of
   modalwindow
 is inside a tag p, the modal doesn't work on IE6 and IE7.
 I wrote a CMS componente where the user can insert links on the page.
   If
 user insert a link that is a popup inside a tag p /p the popup
   doesn't
 open. This is what I can see on ajax debbuger:
   
 *INFO: *
 *INFO: *
 Initiating Ajax GET request on
   

 /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListenerwicket:behaviorId=0random=
 0.4619706830869044
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (1937 characters)
 *INFO: *
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
   

 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
 ![CDATA[span style=display:none
   

 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
   
div
   
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content
   
 object width=425 height=355param value=
 http://www.youtube.com/v/ve9U1QunUoghl=nl
  name=movie/paramparam name=wmode
 value=transparent/paramembed width=425 height=355
 type=application/x-shockwave-flash wmode=transparent src=
 http://www.youtube.com/v/ve9U1QunUoghl=nl;/embed/object
 /div
 /span]]/componentevaluate![CDATA[var element =
 document.getElementById
   

 (cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content);
 var settings = new Object();
 settings.minWidth=200;
 settings.minHeight=200;
 settings.className=w_blue;
 settings.width=448;
 settings.height=355;
 settings.resizable=false;
 settings.widthUnit=px;
 settings.heightUnit=px;
 settings.element = element;
 settings.mask=semi-transparent;
 settings.onClose
  = function() { var
   

 wcall=wicketAjaxGet('/myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:modalWindowRepeater::IBehaviorListenerwicket:behaviorId=1',
 function() { }, function() { }); };
 Wicket.Window.create(settings).show();
 ]]/evaluate/ajax-response
 *INFO: *Response parsed. Now invoking steps...
 *ERROR: *Error while parsing response: Unknow runtimer error.
 *INFO: *Invoking post-call handler(s)...
 *INFO: *Invoking failure handler(s)...
   
 What I found out is that the error only happens if the markup of modal
 window is a SPAN. If I use a DIV, the modal works fine. Unfortunately I
 can't use DIV because DIV cause line break, and this break the layout
   of my
 page. I tried to debug the javascript, but is a lot of lines and the JS
 debugger of IE didn't help. Can anyone help me?
   
  
  
  
   --
   Resizable and reorderable grid components.
   http://www.inmethod.com
  


  -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  




-- 
Resizable and reorderable grid components.
http://www.inmethod.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bug on modal window

2008-03-31 Thread Martijn Dashorst
What is your point? it works != it is good/legal/standards
compliant/works everywhere/works any time/etc.

Browsers are notorious for incompatible behavior for standards
compliant markup. You just found out what happens with non-standards
compliant markup.

Martijn

On 3/31/08, Marco Aurélio Silva [EMAIL PROTECTED] wrote:
 But it works fine on FF


  On Mon, Mar 31, 2008 at 5:35 PM, Matej Knopp [EMAIL PROTECTED] wrote:

   It can not be span. Span is an inline element so you can't put block
   element such as divs inside span. That is invalid markup and it
   confuses browsers.
  
   -Matej
  
   On Mon, Mar 31, 2008 at 10:22 PM, Marco Aurélio Silva [EMAIL PROTECTED]
   wrote:
Hi all
   
 I found a bug in ModalWindow of wicket 1.2.6. If the markup of
   modalwindow
 is inside a tag p, the modal doesn't work on IE6 and IE7.
 I wrote a CMS componente where the user can insert links on the page.
   If
 user insert a link that is a popup inside a tag p /p the popup
   doesn't
 open. This is what I can see on ajax debbuger:
   
 *INFO: *
 *INFO: *
 Initiating Ajax GET request on
   

 /myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:link::IBehaviorListenerwicket:behaviorId=0random=
 0.4619706830869044
 *INFO: *Invoking pre-call handler(s)...
 *INFO: *Received ajax response (1937 characters)
 *INFO: *
 ?xml version=1.0 encoding=UTF-8?ajax-responsecomponent
   

 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
 ![CDATA[span style=display:none
   

 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater
   
div
   
 id=cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content
   
 object width=425 height=355param value=
 http://www.youtube.com/v/ve9U1QunUoghl=nl
  name=movie/paramparam name=wmode
 value=transparent/paramembed width=425 height=355
 type=application/x-shockwave-flash wmode=transparent src=
 http://www.youtube.com/v/ve9U1QunUoghl=nl;/embed/object
 /div
 /span]]/componentevaluate![CDATA[var element =
 document.getElementById
   

 (cms_p_body_content_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_right_cont_link_buttonContainer_lis_cont_modalWindowRepeater_content);
 var settings = new Object();
 settings.minWidth=200;
 settings.minHeight=200;
 settings.className=w_blue;
 settings.width=448;
 settings.height=355;
 settings.resizable=false;
 settings.widthUnit=px;
 settings.heightUnit=px;
 settings.element = element;
 settings.mask=semi-transparent;
 settings.onClose
  = function() { var
   

 wcall=wicketAjaxGet('/myapp/app/?wicket:interface=:3:cms:p:body:content:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:right:cont:link:buttonContainer:lis:cont:modalWindowRepeater::IBehaviorListenerwicket:behaviorId=1',
 function() { }, function() { }); };
 Wicket.Window.create(settings).show();
 ]]/evaluate/ajax-response
 *INFO: *Response parsed. Now invoking steps...
 *ERROR: *Error while parsing response: Unknow runtimer error.
 *INFO: *Invoking post-call handler(s)...
 *INFO: *Invoking failure handler(s)...
   
 What I found out is that the error only happens if the markup of modal
 window is a SPAN. If I use a DIV, the modal works fine. Unfortunately I
 can't use DIV because DIV cause line break, and this break the layout
   of my
 page. I tried to debug the javascript, but is a lot of lines and the JS
 debugger of IE didn't help. Can anyone help me?
   
  
  
  
   --
   Resizable and reorderable grid components.
   http://www.inmethod.com
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  



-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.2 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.2

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]