[Seaside] answer: and jQuery

Robert Sirois watchlala at hotmail.com
Tue Mar 20 01:09:35 UTC 2012


Alrighty, here you are (two methods on a WAComponent). Hopefully the email wont mutilate my spacing too bad so it's readable hehe.
updateRoot: html	super updateRoot: html.
	html title: 'Testing jQuery UI accordion widget inside a ui dialog'.
	html javascript url: 'https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js'.	html javascript url: 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.12/jquery-ui.js'.	html stylesheet url: 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/redmond/jquery-ui.css'.
renderContentOn: html
	html div		script: (html jQuery new dialog			title: 'Title';			modal: false;			width: 500;			height: 400;			autoOpen: true;			onClose: html jQuery this remove		);		with: [						" this section could be replaced with a component doing the same work via: html render: aComponent "			html div				script: (html jQuery new accordion active: false);				with: [										1 to: 10 do: [:n |											html div: [ html anchor: 'Section ', n asString ].						html div: [ html paragraph: 'Hello! I am in section ', n asString, '! Cool!' ].											].								].					].
I hope this helps. As always, the built in examples are the best place for help, as well as the jQuery website and the Seaside book.
Examples:    http://www.seaside.st/about/examples    http://demo.seaside.st/javascript/jquery-ui
jQuery:    http://jquery.com/    http://jqueryui.com/
Seaside book:    http://book.seaside.st/book
RSFrom: malte.grunwald at googlemail.com
To: seaside at lists.squeakfoundation.org
Subject: Re: [Seaside] answer: and jQuery
Date: Mon, 19 Mar 2012 18:51:08 +0100









That  would too kind... I tried both, in the #with: [] and I created a 
own component. But the effects are still blocked.
 
Kind Regards


 

From: Robert Sirois 
Sent: Monday, March 19, 2012 5:47 PM
To: seaside at lists.squeakfoundation.org 

Subject: RE: [Seaside] answer: and jQuery
 

Gah, sorry I was gonna give you some code! I'm putting a reminder 
in my phone right now for when I get home...

RS





Date: Mon, 19 Mar 2012 11:55:00 +0100
From: 
malte.grunwald at googlemail.com
To: 
seaside at lists.squeakfoundation.org
Subject: Re: [Seaside] answer: and 
jQuery


Thank you Robert,

I 
tried it the way you described, but still - it does not work.
The Accordion 
will be shown, but if you click a header, no sub menu slides down. 
This is a 
really strange behaviour and I have no clue what I did 
wrong.

Regards

Malte


Am 16.03.2012 15:24, schrieb 
Robert Sirois: 

  

  Should be as simple as sticking the accordion into the #with: 
  block or popping in a component containing the accordion. I have some code (at 
  home) I can send you tonight.

(from memory)
html 
  div
    script: (html jQuery dialog 
  new
                                        
  ...options...
                                        
  with: 
  [
                                            
  html div script: (html jQuery accordion new 
  ...options...).
                                            
  " or 
  alternately:
                                            
  html render: 
  anAccordionComponent.
                                            
  "
                                        
  ]
    ). "end dialog div"

Yea... something like that 
  lol

RS


  > Date: Fri, 16 Mar 2012 11:51:27 +0100
> From: malte.grunwald at googlemail.com
> 
  To: seaside at lists.squeakfoundation.org
> 
  Subject: Re: [Seaside] answer: and jQuery
> 
> Hello,
> 
  
> there is no need any more to think about it... I fixed my problem 
  with a 
> workaround.
> 
> Has anybody a jQAccordion 
  inherited into a jQDialog, if somebody did, 
> did it work?
> 
  
> Thank your for your help!
> 
> Regards.
> 
  _______________________________________________
> seaside mailing 
  list
> seaside at lists.squeakfoundation.org
> 
  http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


   
_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________ 
seaside mailing list seaside at lists.squeakfoundation.org 
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing 
list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside


_______________________________________________
seaside mailing list
seaside at lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120319/15f98553/attachment-0001.htm


More information about the seaside mailing list