Francisco Martins | 10 Feb 21:57
Picon

How do I use JQuery with Javascript variable

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)


Gmane