[ 3 posts ]

Seth Broomer

  • Username: blocky97
  • Joined: Tue Dec 15, 2009 3:27 pm
  • Posts: 11
  • Offline
  • Profile

Trying to set the content dynamically

Post Posted: Fri Apr 22, 2011 9:56 am
+0-
Hi,
I'm trying to set the content inside an Overlay dynamically.

USE CASE:
I have 2 overlay objects.
The user does an action and I want to change the content in overlay 1 that is displayed to the user.


I so far have not figured out how to set the content in the overlay. (sorry YUI 3 newbie here)

Currently what i do is i add a property to the Overlay Object. Then when i need to set the content i do something like this:
Y.one('#' + myOverlay.id).setContent(content);

was wondering if there is something where i could just go:
myOverlay.setContent(content)

thanks!
seth

Eric Ferraiuolo

YUI Developer

  • Username: ericf
  • Joined: Mon Jan 12, 2009 8:26 pm
  • Posts: 380
  • Location: Boston, MA
  • Twitter: ericf
  • GitHub: ericf
  • Gists: ericf
  • IRC: eric_f
  • YUI Developer
  • Offline
  • Profile
Tags:

Re: Trying to set the content dynamically

Post Posted: Sun Apr 24, 2011 5:06 pm
+0-
This is a generic Overlay question and isn't related to the features that Overlay Extras adds.

You probably want to start here when changing the content of an Overlay: http://developer.yahoo.com/yui/3/overlay/#content

Seth Broomer

  • Username: blocky97
  • Joined: Tue Dec 15, 2009 3:27 pm
  • Posts: 11
  • Offline
  • Profile

Re: Trying to set the content dynamically

Post Posted: Mon Apr 25, 2011 11:56 am
+0-
lol oops...shoulda realized that. my bad!
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum