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.

manipulation between main form and iframe

Questions related to using nuBuilder Forte.
joecocs
Posts: 67
Joined: Wed Jul 04, 2018 4:11 pm
Location: France

Re: manipulation between main form and iframe

Unread post by joecocs »

this area buttons :
Capture d’écran 2020-02-21 à 10.47.21.png
You do not have the required permissions to view the files attached to this post.
kev1n
nuBuilder Team
Posts: 4581
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 536 times
Contact:

Re: manipulation between main form and iframe

Unread post by kev1n »

Give this a shot:

Code: Select all

$(document).find(".nuActionButton").css("background-color", "#20b2aa");
joecocs
Posts: 67
Joined: Wed Jul 04, 2018 4:11 pm
Location: France

Re: manipulation between main form and iframe

Unread post by joecocs »

Cool, thank's,

I would like to use the command:

Code: Select all

nuReturnNewRecord('5a72a0fce65fea2');
in the 'AfterSave' procedure of the form so that the new record is ready to be edited,

but how do I get the value of the last record saved ?
joecocs
Posts: 67
Joined: Wed Jul 04, 2018 4:11 pm
Location: France

Re: manipulation between main form and iframe

Unread post by joecocs »

kev1n wrote:Give this a shot:

Code: Select all

$(document).find(".nuActionButton").css("background-color", "#20b2aa");
it colors the background of the buttons, I didn't want to change the buttons but the background behind the buttons.
kev1n
nuBuilder Team
Posts: 4581
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 536 times
Contact:

Re: manipulation between main form and iframe

Unread post by kev1n »

replace css("background-color" with css("color" ?

This is a good page to learn the css basics:

https://www.w3schools.com/cssref/pr_bac ... -color.asp
https://www.w3schools.com/cssref/pr_text_color.asp
joecocs
Posts: 67
Joined: Wed Jul 04, 2018 4:11 pm
Location: France

Re: manipulation between main form and iframe

Unread post by joecocs »

Thank's
for the links but that i can do it,
what i was missing is the name of the section to name it, but i found.

Thanks to your help, I am starting to better understand the functioning and the power of nuBuilder.

I still miss some notions notably on how to code and how to use the built-in functions
kev1n
nuBuilder Team
Posts: 4581
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 536 times
Contact:

Re: manipulation between main form and iframe

Unread post by kev1n »

joecocs wrote: I still miss some notions notably on how to code and how to use the built-in functions
Feel free to ask anytime!
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: manipulation between main form and iframe

Unread post by admin »

joecocs,

You have errors in your code...
c.PNG

Steven
You do not have the required permissions to view the files attached to this post.
joecocs
Posts: 67
Joined: Wed Jul 04, 2018 4:11 pm
Location: France

Re: manipulation between main form and iframe

Unread post by joecocs »

Thank's Steven,

I noticed it a little higher in the posts
I just checked the code:

Code: Select all
var c = '#6395ed;
parent.$('#iframe1').css('border-color', c');
$('.nuTab').css('color', c);
$('#nuBreadcrumbHolder').css('background-color', c);



and I replaced with:

Code: Select all
var c = '#6395ed';
parent.$('#iframe1').css('border-color', c);


and it works
admin
Site Admin
Posts: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: manipulation between main form and iframe

Unread post by admin »

Cool!
Post Reply