Page 2 of 3

c15r error with checkbox

Posted: Wed Feb 18, 2015 11:56 pm
by Michael4771079

Thanks alot Bruce,
I really appreciate your reply, I have watched your posts regularly as the questions are vey often interesting to me, I may ask your advice on some ;)

as u know
"Being in the desert with a prob of no name,
it would be good to come out of the rain"

My c15r error was related to putting a checkbox in a collapsible, and then putting the collapsible in another collapsible, and then in a grid.
But thats me trying to make it more difficult. :)
This is not an easy UI to effect as it has so many parts.

Please comment at any time,
its good to speak with other developers.

Best of luck with your App

Irish regards to you!


c15r error with checkbox

Posted: Thu Feb 19, 2015 1:38 am
by Bruce Stuart

Micheal,

Thanks for the note back and of course the Irish regards !

Kinda figured it wasn't related.

In terms of creating complexity ... I'm pretty sure that most anything worth doing here has some level of complexity ... And generally 'pushes' the platform a bit ( hopefully without breaking it !)...

Problems that are easy to solve ... By nature ... Not that fun lol !

Thanks for introducing yourself as well..

Have a great evening or ....

Bruce


c15r error with checkbox

Posted: Fri Feb 20, 2015 12:25 am
by Michael4771079

Hi Yurii,
I tried tthe code but it didnt work for me.
I implemented it on "14 INCH STUFFED CRUST" radio button, but when clicked it shows error in console and does not select the rado button.
I tried different events but no luck, any ideas?

Here are some s/s of the implementation and the result.

Thanks alot!


c15r error with checkbox

Posted: Fri Feb 20, 2015 10:25 am
by Michael4771079

screenshots above Bruce's first post


c15r error with checkbox

Posted: Mon Feb 23, 2015 10:47 pm
by Michael4771079

Hi Yurii,
I dont think you have seen my response above, can you take a look?

Thanks


c15r error with checkbox

Posted: Wed Feb 25, 2015 3:22 am
by Yurii Orishchuk

Hi Michael,

I'm so sorry, but there is an error in given above code.
There was a typo ";" instead of ".".

Here is correct one:

precode

//Current collapsibleset item.
var currentCollapsible = jQuery(this).closest('[data-role="collapsible"]');
//orderlabel in the current collapsible set item.
var orderlabel = currentCollapsible.find('[name="orderlabel"]');
//Get itext.
var orderlabelText = orderlabel.text();
//Using this text.
console.log("orderlabelText = " + orderlabelText);

/code/pre

Thanks.


c15r error with checkbox

Posted: Wed Feb 25, 2015 3:19 pm
by Michael4771079

Hi,
I have tried the code but its not working.
I have implemented it on "ham Pizza screen on "14 Inch Stuffed Crust " radiobutton
Here are some screen shots with result in console

thanks

Image

Image

Image


c15r error with checkbox

Posted: Thu Feb 26, 2015 4:11 am
by Yurii Orishchuk

Hi Michael,

Please give us your app public link and describe steps to reproduce this problem.

Regards.


c15r error with checkbox

Posted: Thu Feb 26, 2015 4:57 pm
by Michael4771079

Hi Yurri,
app name "anglotest" app id 6c85b861-afa4-4819-b7ed-887e917e2d1e
login with "a" as log and pass,
click new order,
click pizza,
click ham pizza
click "14 Inch Stuffed Crust" radio button and check console
the code is on click event for this radio button, orderlabel in on collapsibleheader

thanks Yurri.


c15r error with checkbox

Posted: Fri Feb 27, 2015 5:33 am
by Yurii Orishchuk

Hi Michael,

Thanks for this detailed str.

The culprit of your problem is not a code. The culprit is content of this label that's actually empty.

See details here: http://prntscr.com/6ad68n/direct

So you should fill this label with needed value before.

Regards.