Page 1 of 1

Forms for entering variables - not table field data

Posted: Tue Dec 02, 2014 7:42 am
by WRBailey
I am still working through nuBuilder's way of doing things. I am at a point where I want to create a form that allows the user to choose what he/she will enter. I want them to be able to look at their account by clicking a button to enter either their email address or their name or their member id #. (I do not want a user to see all the other users in a brouse form.) Once they have selected the button I want the form to remove the choices and present them with a way to enter the one they opted for. None of these buttons or fields are in a table. They are just working with variables. I found a clue to doing this in the documentation under JavaScript functions|nuAjax(pCode [, pFunctionName]). It starts by saying: "The AjaxStart button calls nuAjax('5','goAjax') when clicked." It sounds good, but I don't know where this button is or how to create one like it. Can someone show me the details of this button? Where does the call go and what does it look like exactly? When this button is clicked does a new form open? The documentation shows a form that has the title Ajax Demo. Iss this form predefined or does Ajax or some other service create it on the fly? Where do I find how to do this? Is there a place to go see this Ajax Demo and see the nuBuilder info that makes it work?

I have seen references to creating an html object so a JavaScript can put something into it (like a total for an invoice). I would like specific help on creating this object. I think I could find this in the demo shown in the video tutorials if I could get to the nuBuilder info that controls it. Is this possible?

Re: Forms for entering variables - not table field data

Posted: Wed Dec 03, 2014 4:22 am
by admin
Bill,

I don't know why you would want to reinvent what is essentially the login screen.

The way you want to do it is by checking 1 of 3 values, one of which could have duplicates (their name).

If you really have to then you may be better creating a iFrame Object http://wiki.nubuilder.net/index.php/Add ... iFrame_Tab

and refreshing it with this JavaScript function http://wiki.nubuilder.net/index.php/Jav ... C_id.5D.29

on the onchange event of whatever Object they are typing their code in.

Steven

Re: Forms for entering variables - not table field data

Posted: Wed Dec 10, 2014 7:10 am
by WRBailey
Thank you. You nailed it. If I could modify the login screen that would be the best thing for me to do; and I would learn how to do what needs to be done as I do it. Can I do this? What do I edit? From where? What do I click or type?

Thanks again.

Re: Forms for entering variables - not table field data

Posted: Thu Dec 11, 2014 3:39 am
by admin
Bill,

I still don't understand. If they have already logged into nuBuilder why do they need to log in again?

Steven

BTW the current login screen is written in JavaScript and is not a Form that can be modified .

Steven

Re: Forms for entering variables - not table field data

Posted: Sat Dec 13, 2014 5:37 am
by WRBailey
The reason I need to enhance the login is to accommodate visitors who add themselves as users of the app. I need to have them enter enough info to qualify them as unique and also to have them specify in what capacity they are intending to use the app. An iframe should do the trick seeing as I have already written the code in html+javascript+php urls. The problem will be sharing the global/session variables.

Can you tell me what I will need to do to create or just access nuBuilder variables in the PHP code that will run in the iframe?

Re: Forms for entering variables - not table field data

Posted: Sun Dec 14, 2014 10:25 pm
by admin
Bill,

maybe these will help..
http://forums.nubuilder.cloud/viewtopic.php?f=13&t=8669 setting hash variables with js
http://wiki.nubuilder.net/index.php/Hash_Variables other available hash variables
http://wiki.nubuilder.net/index.php/Creating_PHP_Code using them with php
Steven