Beside to the problem i mentioned before. I actually have found
another problem with UI Dialog. It seems like UI Dialog caches the
dialog attribute in the DOM. So even i have a dynamically (Ajaxed)
generated div for dialog, all the previous attributes are not cleared
from last call. So when dialog is requested, it cycles through all
previous dialogs.

I am not sure if i have made myself clear, it is quite complicated to
explain though.



On May 27, 10:23 pm, coffee <mycoldcof...@gmail.com> wrote:
> what i mean is if  var j = "some text"; K = "Title" + j; wont work in
> title definition. sorry about the multiple replies.
>
> On May 27, 6:32 pm, Charlie <charlie...@gmail.com> wrote:
>
> > this worksvar k = "Title" + "some text" $("div").dialog({ ..... title: k .. 
> > /// left off last brackets in case the missing ";" is causing you problems 
> > tooalso worst case span in dialog title has both an ID and class that can 
> > be selected to modify text
> > coffee wrote:Sorry that i hit return button accidentally. continue previous 
> > post. var k = "some text" $("div").dialog({ ..... title: "Title" + k ... }) 
> > and this wont work. I am wondering if there is any easy way to set dynamic 
> > attribute? it definitely a must have with dialog. thanks. On May 27, 
> > 5:24 pm, coffee<mycoldcof...@gmail.com>wrote:I love and hate UI Dialog. The 
> > love part is quite obvious, the hate part is due to the difficulty of 
> > setting dynamic attributes. In a recent project, i try to set dynamic title 
> > using variable but no success. i.e. var k = "some text" $("div").dialog({ 
> > });
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery-ui@googlegroups.com
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to