cdotyone / mochaui

development tree for MochaUI
http://mochaui.org/demo/
Other
290 stars 83 forks source link

Determining panel title from content #90

Open cdotyone opened 13 years ago

cdotyone commented 13 years ago

I needed a way to find the title of a panel from the content, not from the function which loads the content URL (e.g., html documents know their titles, but the links to them do not). This applies to the last SVN version 0.9.6.

My solution for this can be seen here: http://www.renownedmedia.com/codevault/javascript-code/js-mochaui-panel-title-from-content/

It requires an update to Core.js, and is a mere 5 additional lines. It's not perfect, but it will make development (in my situation) a lot easier.

--copied from email from Google Groups - from Thomas

cdotyone commented 13 years ago

--my response:

Thomas; Just finally had time to look at this. I don't think I will do it exactly they way you guys did, but I will provide a similar function to do it. At the very least you will be able to add this function without modifying the base Mocha code. Thanks this type of problem was not even on my radar. -Chris