Skip to Content Skip to Menu

[SOLVED] Changing Field-Value by click on link with following redirect to given url

10 years 4 months ago #245901 by avateamcom
Hi Kyle,

I verified, that what I want does not work, because the funktion is not call-able after load. I did a workaround by hiding tabs and just showing each after another by showing buttons included with field-delimiter. now I need to change a mysql-value (set a variable to 1) with a click on this button (a-tag). can I do that with jquery and auto actions easily?

Thanks!
-Stefan

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 4 months ago #245946 by krileon
If the MYSQL value is a CB field, yes. You can change its value using jQuery, but it needs to be displayed on profile edit for that to work or CB won't bind and store it (you could hide it with CSS I guess). If you mean in profile view then no, then field would need to be designed with ajax functionality.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

10 years 4 months ago #245977 by avateamcom
Hi Kyle,

thank you for your answer. The value is a CB-Field - since a few minutes.. ;)
I think it is no problem to include the field on profile-edit. I'll hide it by css as you mentioned.
Can you tell me how I can edit it with jQuery or maybe is there any documentation about these manipulations in cb?

Thanks in advance!
-Stefan

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 4 months ago #245992 by krileon

Can you tell me how I can edit it with jQuery or maybe is there any documentation about these manipulations in cb?

Please see the links I provided earlier below. jQuery is not CB specific. It uses selectors to navigate to elements and adjust them as needed. Using Inspect Element (right click on something) in Chrome or Firefox will help you find somethings CSS classes or its element ID that can be used in the jQuery selector.

API: api.jquery.com/
Tutorials: www.w3schools.com/jquery/default.asp


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

10 years 4 months ago #246075 by avateamcom
Hi Kyle,

just wanted to say "thanks". Everything works as you said.
I found an example in another forum-article. :)

Best regards,
Stefan
The following user(s) said Thank You: nant, krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum