Talk:Ajax form example

From Organic Design wiki

Submit button appears to be broken --Sven 11:37, 26 June 2007 (NZST)

Still...almost a month later Some organic design, eh? -Eep² 16:19, 24 July 2007 (NZST)
It's not like I'm paid to sit here doing this shit all day ya know! --Nad 19:31, 24 July 2007 (NZST)
What do you mean anyway - this example is working fine? I thought it was only the Ajax links example that wasn't working?! --Nad 19:43, 24 July 2007 (NZST)
Ok, it's not working when I change computer - another damn bug needing to be fixed :-( --Nad 19:51, 24 July 2007 (NZST)
Found the problem - had to disable all caching for requests which use content and not title --Nad 20:19, 24 July 2007 (NZST)

Code inconsistency

Note the difference and why I fixed it. This is the code on the page:

{{#form:style=width:400px|
	{{#input:type = hidden | name = content | value =  {{#dpl:category={{#request:cat}}}}  }}
	{{#input:type  = select
		| name  = cat
		| *Select category {{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, }}
		}}
	{{#input: type = ajax | value = List members | update = listcat-result}}
<div id="listcat-result">''No results to display...''</div>
}}

This is what you claim is the same code (it's not the same formatting and uses & lt; (no space but won't render as text without it) instead of <):

{{#form:

	{{#input: type   = hidden
		| name   = content
		| value  = <nowiki> {{#dpl:category={{#request:cat}}}} </nowiki>
	}}

	{{#input: type   = select
		| name   = cat
		| *Select category {{#dpl: namespace = Category | mode = userformat | listseparators = ,\n*%TITLE%,, }}
	}}

	{{#input: type   = ajax
		| value  = List members
		| update = listcat-result
	}}
}}

<div id="listcat-result">''No results to display...''</div>

Note the }} is before the <div> in the second code but after the <div> in the first code... -Eep² 13:50, 19 August 2007 (NZST)

The ajax resultant div should be outside the form, so the other one should be changed to match, but the one people read is the most important. --Nad 14:03, 19 August 2007 (NZST)
No, Nad. Staying consistent is most important. The code in both the example and the output should be exactly the same. -Eep² 15:38, 19 August 2007 (NZST)
That's your opinion, not mine. I'm warning you to stop irritating me, you are on the virge of being blocked off this wiki --Nad 16:24, 19 August 2007 (NZST)
Sometimes the best response is no response at all. --Rob 16:38, 19 August 2007 (NZST)

this example may be malfunctioning, I am getting the News information returning


In IE7 (both on this site and on my own firm's wiki with our data), all pages in the wiki are returned, regardless of the category selected. I even tried this:

{{#form:
        {{#input: type = hidden | name = content | value = Some random text rather than a query }}
        {{#input: type  = select
                | name  = cat
                | value = {{#request:cat}}
                | *Select category {{#dpl: category=Expertise | format = ,\n*%TITLE%,, }}
        }}
        {{#input: type = ajax | value = List members | update = listcat-result}}
}}

<div id="listcat-result">NO RESULTS TO DISPLAY YET</div>

but it still returns all pages. I really need to make this work - what SimpleForms is supposed to do is exactly what I require. Any ideas? --Jpetrie 20:07, 18 February 2008 (NZDT)