[EMAIL PROTECTED] wrote:
> Used widgets very minimally. So could someone please explain how to
> install and use submodal as a widget or point me to some good
> documentation to help me with this?
It sounds like you need to use easy_install.  For info on how to do 
that, the first item 
<http://peak.telecommunity.com/DevCenter/EasyInstall> returned by Google 
<http://www.google.com/search?q=easy_install&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a>
 
is the right one.
> I'm assuming I need to add some code to the controller as well after
> installing submodal.
>   
After installing submodal, the docs in its code (it's only 60 lines of 
code) give you an example of how to use it:

    <div>
      <script type='text/javascript'>
      var callback_test_function = function (returnVal) {
          alert('This is a callback!');
          alert(returnVal);
      }
      </script>
      <p>SubModal Testing.</p>
      <p><a href='http://www.turbogears.org' class='submodal'>
         Click Here for a SubModal Window (just using the class is 
enough ;-))
         </a></p>
      <p><a href='/tg_widgets/submodal/html/testing.html'
         onclick='showPopWin("/tg_widgets/submodal/html/testing.html",
                             500, 300, callback_test_function);
                  return false;'>
         Click Here for a SubModal Window with a CallBack Function</a></p>
    </div>

Tim Black

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to