albatrossx / jquery-load-json

Automatically exported from code.google.com/p/jquery-load-json
0 stars 0 forks source link

JSON Array response for multiple input elements causes incorrect GET #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create multiple HTML text inputs such as <input type="text" 
name="element[0][0]"> where element has multiple dimensions (element[3][4])

2. Get a JSON response with a multidimension array such as:
Object {…}
elements: Array[7]
0: Array[6]
  0: "apple"
  1: ""

3. What is the expected output? What do you see instead?
I expect to see the input elements populated with the data from the array (e.g. 
element[0][0] = 'apple').

Instead a GET request is performed which results in a 403 response. The request 
is not to a page but just the current directory and is suffixed with some HTML 
(e.g. 
http://domain/myDir//<!DOCTYPE%20html><!--[if%20lt%20IE%207]>%20%20%20%20%20%20.
..

What version of the product are you using? 1.0.0
On what operating system? Linux Webserver

Please provide any additional information below.
Sorry I don't have a solution.

Original issue reported on code.google.com by rich.haw...@gmail.com on 25 Dec 2013 at 1:09

GoogleCodeExporter commented 9 years ago
Sorry..... please change "elements" in the JSON response to "element".  My typo.

Original comment by rich.haw...@gmail.com on 25 Dec 2013 at 1:11