Welcome Guest, Not a member yet? Register   Sign In
Concerns Regarding Ajax form submission and URL character limits
#1

[eluser]lanzd[/eluser]
I am in the process of writing a CMS and would like to use some AJAX to take care of some form submissions in the back end.

I have some concerns with the URL character limit because some of these forms contain a wysiwyg editor (CKFinder).

I have a few questions, some may be irrelevant after others are answered, but here we go.

Is it common practice to generate Ajax Requests to controllers with the URL structure
Code:
/controller/method/parameter1/parameter2/parameter3

The character limit on URL's imposed by each browser, does that only apply to when you type/paste/click an address into the address bar? or is it any request made with the browser?

When sending a get request via AJAX does the URL character limit apply?

Post doesn't seem to have a character limit (Not one that I have run into atleast with exception to size/timeout periods), So if sending a request in the form of
Code:
/controller/method/parameter1/parameter2/parameter3

I should generally be okay?

How would all this play with file uploads (This is a little broad, but I haven't written an AJAX file Uploader myself yet, only plugins)? If there is no form submission, the file doesn't actually get sent to the servers temp folder allowing me to start processing.

- Would I essentially have to have a separate form just for my file uploads which I would then trigger a submit/pass the temp folder name/process the file as normal in an AJAX called file? And finally return the resulting filename to the "Main" form with my text based data?
- How is it normally handled when/if the user closes the window before they hit submit on the "Main" form. (If it can/normally be/is handled this way)



Messages In This Thread
Concerns Regarding Ajax form submission and URL character limits - by El Forum - 06-26-2013, 12:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB