Re: got error in hello world itself
Posted:
Tue Apr 24, 2012 10:18 pm
by finaxis
hello Raymond,
thanks for the last post.
session with raxan
$a = do not want to use file for session handling, use db instead. (how to and how do I use databank feature then)
$b = Raxan::databank is great. but I want to handle 1 session per user across browsers and show alert on next login attempt. I tried using session_set_save_handler (code attached) but can't make it work. Please enlighten me on this.
also any tip/sample code on login / session is humbly requested.
Thanks and Regards,
Finaxis
Re: got error in hello world itself
Posted:
Sat May 12, 2012 10:10 am
by finaxis
Hello Raymond,
my use case:
user clicks on submit login button(login form):
c()->confirm("Access to this account is blocked. Would you like to un-block right away ?", _event('ok', null,$this->okShow((string) $this->user['username'])), _event('cancel',null,null));
My problem:
Passing the username from the login form to _event('ok') and _event('cancel') when clicked on the confirm dialogue box(js).
In the above "confirm dialogue" , clicking on 'ok' works great, but click on "Cancel" completes the ok-function and then completes the cancel function.
Please move your magic wand.
Thanks and Regards,
Finaxis
Re: got error in hello world itself
Posted:
Fri May 18, 2012 1:48 am
by raymond
Hi ,
From what I'm seeing the code for the _even() callback is incorrect. You should use the $this->registerEvent() method to first register the "ok" and "cancel" events. Check out the PHP/HTML Source cde in this example:
Best regards,
__
Raymond
Re: got error in hello world itself
Posted:
Thu Aug 02, 2012 8:38 pm
by finaxis
Hello Raymond,
m longing to use this functionality (checkValidity) with all my forms.
- checkValidity.php.zip
- test page for checkValidity
- (1.58 KiB) Downloaded 1375 times
Please let know what to do to make it work.
Thanks and Regards,
Finaxis.
Re: got error in hello world itself
Posted:
Fri Aug 17, 2012 3:46 am
by raymond
Hi,
There are two ways to get the checkValidity() method working:
1. Set $this->preserveFormContent = true inside the _config handler
2. Call $this->updateFormFields() inside the event - This update form fields with postback values
I've attached the updated code.
- checkValidity.php.zip
- (1.21 KiB) Downloaded 1380 times
See also
http://raxanpdi.com/sdk/docs/data-sanitization.html__
Raymond