Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

repeating table row text field issue

Guest
Jun 30, 2011 Jun 30, 2011

Hi ,

Not sure if this a CF issue per se. I am outputting data to a table, product , pricing , image ect... in each row I have a text field and add button. The text field has a value of 1 , and the add , works via onclick event. My issue is this. Only the first row passes any number as value should you want to change quanity. The rest of the rows only add 1 no matter what you type in. You can increment quantity if you keep clicking , but it's usability issue and I can't find a reason or workaround. Has anyone heard of this? Thanks.

Steve

802
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 30, 2011 Jun 30, 2011

Add a couple of fields to your form and submit it.  On your action page, cfdump your form to see what is being submitted.  Pay particular attention to the names of the fields added by javascript.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 30, 2011 Jun 30, 2011

Dan ,

There is no form. Basically a Javascipt function passes info to a cart action page where it switches through actions like list , add, ect ... thats where the queries live for all the actions. I have the cart displayed in some text in a thin taskbar type element in the header. Kind of a dynmic cart view. I did trace all the queries and actions, and they seem fine. It sill doesn't explain why the first row of my repeating table only passes it's text box's changed value , while the rest don't , only the hard coded one on the input tag, which is set to 1. Thanks for the reply.

Steve

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 30, 2011 Jun 30, 2011

Same general idea, different details.  Do whatever it takes on the action page to see what data got sent to it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2011 Jul 01, 2011

Dan,

I believe it might be becuase the Javascript function passes the text field value through the URL. For some reason the first row value is the only legitimate value passed. Even after I pass that one , if I change the value of another row , it will still use the first row's value if it wasn't 1. Very weird behavior. It wouldn't matter if I was only outputting 1 row / 1 item. Thanks. I'll keep whcking away at it.

Steve

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 01, 2011 Jul 01, 2011

Actually it passes evrything BUT the qty text box value , that is just passed in the funcion itself.  So , I am at an impasse here. Thanks for the help though.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 07, 2011 Jul 07, 2011
LATEST

Regarding - "There is no form. Basically a Javascipt function passes info to a cart action page "

Maybe it's time to reconsider that approach.  Given all the grief it's causing you, can you remember the expected benefits of passing your data that way?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 07, 2011 Jul 07, 2011

Still looking at this issue. I don't think it's CF at all. The repeating table row somehow gives the first text box functionality , i.e. any change in value and the onChange ,onBlur functions ect. The rest of the rows only take the hard coded value of 1 and the add button works for all rows. Strange indeed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources