10 Feb 21:57
How do I use JQuery with Javascript variable
Francisco Martins <chicoary <at> gmail.com>
2012-02-10 20:57:13 GMT
2012-02-10 20:57:13 GMT
Johan, I did some research and with help of a co-worker detected the cause of themalfunction. Now it works! A string containing the javascript can be generated inSmalltalk using apostrophes repeated. As for quotes no problem. The code to render the radio buttons was using group, which prevented the "values" were rendered. I made a version that worked obstrusive. See below: renderContentOn: html html form: [ html div: [ (html label) for: #radioYes; with: 'What is your answer?'. (html radioButton) id: #radioYes; name: #someRadioGroup; selected: true; value: 'yes'; with: 'Yes'. (html radioButton) id: #radioNo; name: #someRadioGroup; value: 'no'; with: 'No'. (html radioButton) id: #radioMaybe; name: #someRadioGroup; value: 'maybe';(Continue reading)
RSS Feed