Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Forms for entering variables - not table field data

Post Reply
WRBailey
Posts: 13
Joined: Fri Jun 06, 2014 9:44 am

Forms for entering variables - not table field data

Unread post 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?
admin
Site Admin
Posts: 2825
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Forms for entering variables - not table field data

Unread post 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
WRBailey
Posts: 13
Joined: Fri Jun 06, 2014 9:44 am

Re: Forms for entering variables - not table field data

Unread post 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.
admin
Site Admin
Posts: 2825
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Forms for entering variables - not table field data

Unread post 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
WRBailey
Posts: 13
Joined: Fri Jun 06, 2014 9:44 am

Re: Forms for entering variables - not table field data

Unread post 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?
admin
Site Admin
Posts: 2825
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 29 times

Re: Forms for entering variables - not table field data

Unread post 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
Post Reply