Recent Posts by akina
|
Jan 7, 2009
|
Topic: Feature requests / ajax and PWC First, hello ) and thanks for PWC is very nice :) I have some questions ,more are about ajax 1. Ajax supports only Dialog Module,how it work with windows ? for example:
echo'
<a href="#" onclick=\'Dialog.alert({url: "ajaxform.php", options: {method: "post"}},
{className: "alphacube", width:540, okLabel: "Close"});\'>windows3(ajax)</a>';
ajaxform.php
#We have submit?
if (isset($_POST['firstname'])&& isset($_POST['lastname'])) {
echo'Hello'.$_POST['firstname'].isset($_POST['lastname'];
die();#Die for now
}
echo'
<form action="ajaxform.php" onsubmit="return false;" method="post" id="form">
First name: <input name="firstname" type="text">
Last name: <input name="lastname" type="text">
<button type="submit" onclick=" ">submit</button>
</form>';
can someone give me code example for onclick event ? This is example code , this is not my work , i dont want iframe , because in my case I wanna open multiple windows with different functions and some of them will be nested into into the parent window. 3. Dialog module has light effect as background (like lightbox). How can i get this effect in window mode? Thanks for your help. |