usage of buttons and modal dialogs

Discussion and education for beginner / novice programmers interested in embarking on the development process to take advantage of the extensible nature of the Joomla! CMS.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Forum rules
Post Reply
ghostrifle
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Wed Aug 22, 2007 8:41 am
Location: Germany
Contact:

usage of buttons and modal dialogs

Post by ghostrifle » Tue Oct 02, 2007 7:38 pm

Hi there,

I'm not familiar yet with the joomla api resources.. so I don't quite understand how to create a jbutton.. for example opening a modal window.

The way I create a calendar is clear to me:

Code: Select all

<?php echo JHTML::_( 'calendar',$this->rl_ad->valid_to,'valid_to','valid_to'); ?>


but.... how can I create now a button using the joomla api.

Thanx in advance !

Bye, Alex
Last edited by ghostrifle on Wed Oct 03, 2007 9:16 am, edited 1 time in total.
o

ghostrifle
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Wed Aug 22, 2007 8:41 am
Location: Germany
Contact:

Re: usage of buttons and modal dialogs

Post by ghostrifle » Wed Oct 03, 2007 9:19 am

Well,

I think I got it now how tu create a popup button:

Code: Select all

jimport('joomla.html.toolbar.button.popup');

$popupbutton = new JButtonPopup();
echo $popupbutton->fetchButton( $type='Popup', $name = 'some-popup-button', $text = 'hello', $url = 'http://www.some-link.de', $width=640, $height=480, $top=0, $left=0 );


... but... when I call a joomla speficic url... the whole page gets rendered... so.. could anyone give me a small example how I could use modal dialogs using joomla's mvc scheme ?

bye, alex
o


Post Reply