For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > July 2005 > how to use QuickForm button to open new window in Javascript?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to use QuickForm button to open new window in Javascript?
l Burnerheimerton

2005-07-31, 9:00 am

I've used the following code to try to get this to
work - I want the button to open a new window with the
parameters given.

This works with a HTML element if I add the javascript
there.

$buttons[] = &HTML_QuickForm::createElement('button',
'ibutTest', 'Try putting open window here',
array('onClick' => "window.open('page3.php?i=' +
document.getElementById('selectionMenu').selectedIndex)"));
$form->addGroup($buttons, null, null, ' ',
false);

Any ideas are appreciated - or if there are better
ways to do this...



________________________________________
____________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com