PDA

View Full Version : ExtJs Ajax



arunns
10 Jun 2010, 7:50 PM
I open a Ext window on click of a submit button after filling some information in a JSP(say JSP1).
1. In the Ext window opened, I have to get some input from the user and process it and on clicking submit in the window, it should take accordingly.
2. The user should not be allowed to access the JSP1 until and unless he gives inputs in the Ext window. I have also made the CloseAction false.

Help needed in making a AJAX call to do the same.

CrazyEnigma
10 Jun 2010, 8:27 PM
Wow! Looks like someone is lazy. Maybe you need to read this (http://www.extjs.com/learn/Ext_Forum_Help) if you didn't adhere to the Read Me First (http://www.extjs.com/forum/showthread.php?66423-****-READ-ME-FIRST-****-Guidelines-FAQs-Resources-etc)

Sounds like validation.

If you haven't read up on the manual (http://www.extjs.com/deploy/dev/docs/?class=Ext.Ajax), you might want to.

If you designed it, you need to write it.

FlaminPhoenix
10 Jun 2010, 10:04 PM
with 1 post, I can only guess youre new to Ext.. no matter, heres the code youd probably like to add in your click event handler:

new Ext.Ajax({
params:...
other configs:....
});

look at some examples before you start coding tho, and the extjs docs (http://www.extjs.com/deploy/dev/docs/) are probably your best friend

steffenk
11 Jun 2010, 1:52 AM
you definitive meant
Ext.Ajax.request

ReSpawNnL
11 Jun 2010, 2:09 AM
I think you could use http://www.extjs.com/products/core/manual/ as well.

arunns
11 Jun 2010, 10:18 AM
I am new to ExtJs.
Scenario:
I have a panel created (and including that in a Ext.window )and calling the function that has this panel creation on click of a button in a JSP. The created Ext.window has two buttons to be handled.
Query:
I have to make an AJAX call in the original JSP that triggers the Panel/window creation and have to write some code for both buttons in the Ext.window.

I am seeing lot of forums discussing about Ext.get().load, Ext.Ajax, data source, etc....and are very confusing.

IS there a clear/definitive or effective approach to do this?

tryanDLS
11 Jun 2010, 10:32 AM
You have made the same post 3 times in multiple places - please refrain from cross/double posting.

Have you looked at the examples in your dowload or any of the tutorials? There are plenty of examples for how to do this. I suggest you start small and understand one concept e.g. AJAX before you try to combine a bunch of them.

mschwartz
11 Jun 2010, 11:00 AM
http://www.asp.net/ajax?tabid

AJAX is the name of M$ .net ajax enabled toolkit.