Changes between Initial Version and Version 1 of Ticket #18740


Ignore:
Timestamp:
Aug 8, 2012, 9:11:45 PM (12 years ago)
Author:
Ramiro Morales
Comment:

Are you getting any real behavior that shows request.REQUEST isn't having the value you expect or it's only the representation shown with print?

Also, I'd beg you to take a few more minutes and re-post a test case:

  • With a simple HTML form that is actually a minimal expression needed to get the issue to show.
  • Not using any AJAX, but using a form widget that has the same representation and use POST.

Otherwise, trying to create a setup reproducing all the same bells and whistles is nearly impossible for others.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18740

    • Property Resolutionneedsinfo
    • Property Status newclosed
  • Ticket #18740 – Description

    initial v1  
    11So I have this form (some elements removed for clarity)
    2 
     2{{{
    33    <form id="{{ section }}-submission-form{{ cell_id }}">
    44
     
    3535                    style="float:right; position: relative; bottom: 7px; right: -4px;">Post</button>
    3636            </div>
    37 
     37}}}
    3838The 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{{{
    4040               alert(selectedtags);
    4141           $("#"+section+"-submission-form"+cellid).ajaxSubmit({
     
    4848                   location.reload();
    4949               },
    50 
     50}}}
    5151printing out request.POST gets me:
     52{{{
    5253<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}}}
    5455(i.e. what I expect)
    5556
    5657but printing request.REQUEST gets me:
    57 
     58{{{
    5859{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}}}
    6061(i.e. tags[] is truncated, as if using get instead of getlist)
Back to Top