Changes between Initial Version and Version 1 of Ticket #18740
- Timestamp:
- Aug 8, 2012, 9:11:45 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18740
- Property Resolution → needsinfo
- Property Status new → closed
-
Ticket #18740 – Description
initial v1 1 1 So I have this form (some elements removed for clarity) 2 2 {{{ 3 3 <form id="{{ section }}-submission-form{{ cell_id }}"> 4 4 … … 35 35 style="float:right; position: relative; bottom: 7px; right: -4px;">Post</button> 36 36 </div> 37 37 }}} 38 38 The tags-list input is turned into an autocomplete and users select tags, which are then added to a global js variable "selected tags". When the user presses "Post", I have this code: 39 39 {{{ 40 40 alert(selectedtags); 41 41 $("#"+section+"-submission-form"+cellid).ajaxSubmit({ … … 48 48 location.reload(); 49 49 }, 50 50 }}} 51 51 printing out request.POST gets me: 52 {{{ 52 53 <QueryDict: {u'text-submission': [u'your mom is on my mind.'], u'school': [u'1997'], u'tags-list': [u''], u'url': [u''], u'section': [u'posts'], u'tags[]': [u'tigers', u'lions'], u'anonymity-level': [u'schoolandmajor']}> 53 54 }}} 54 55 (i.e. what I expect) 55 56 56 57 but printing request.REQUEST gets me: 57 58 {{{ 58 59 {u'text-submission': u'your mom is on my mind.', u'school': u'1997', u'tags-list': u'', u'url': u'', u'section': u'posts', u'tags[]': u'lions', u'anonymity-level': u'schoolandmajor'} 59 60 }}} 60 61 (i.e. tags[] is truncated, as if using get instead of getlist)