0

I want to load a page retrieved using a servlet call into a div.

Unfortunately, I want to pass huge data as a parameter for my servlet call and I cannot do this using the $.load function.

Can anybody suggest me a way to call my servlet through Post (I guess, I can send more data through Post) and still use $.load() to load it into my #div.

0

1 Answer 1

1

load defaults to GET, but if you supply parameters as a data object, then it will do a POST instead of a GET. E.g.:

$("selector for target element").load('/path/to/your/page', {param1 : 'parameter'});
// Object as parameters ------------------------------------^
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.