Search Type: Posts; User: pret
Search: Search took 0.02 seconds.
-
4 Nov 2011 7:04 AM
- Replies
- 5
- Views
- 832
Great! That's the way to find the response. I finally access the response in the following way:
record.save({
callback: function(record, operation, success) {
... -
4 Nov 2011 6:07 AM
- Replies
- 5
- Views
- 832
Hi!
Strange, the callbacks defined in "success" and "failure" are called too. Defining "callback" with my callback still receives an Ext.data.Operation object with no "response" object, which is... -
3 Nov 2011 11:31 AM
- Replies
- 5
- Views
- 832
Hi all,
Recently I've posted this question, and I thought I had the answer, but there's a problem. I need to access the response object in the "success" and "failure" callbacks of the "save"... -
3 Nov 2011 10:31 AM
- Replies
- 4
- Views
- 717
Oops, I didn't want to mark as the best answer that one. My PC is too laggy and when I clicked it did it on the wrong post.
Sorry about that. I don't know if there's a way to change this. If there... -
3 Nov 2011 10:29 AM
- Replies
- 4
- Views
- 717
Nevermind, I've found it. I was using v4.0.2 and recently I've updated to v4.0.7. It seems that the operation argument now has a "response" attribute holding the response I was looking for:
... -
3 Nov 2011 10:19 AM
- Replies
- 4
- Views
- 717
Sorry for the delay, I came back today to this part of my app so now I can try your solution.
The problem is that I need to access the hole response. Suppose my response to a save action is:
... -
18 Oct 2011 11:47 AM
- Replies
- 4
- Views
- 717
Hi guys,
Having this:
record.save({
success: function(record, operation) {
// Here I need to access the response
},
failure: ... -
12 Oct 2011 7:31 AM
- Replies
- 1
- Views
- 442
Mmm.. or maybe I could use a Ext.view.View to display the messages? I didn't use it yet, but looking at the examples it looks like a good way to handle this.
What do you think? -
12 Oct 2011 7:27 AM
- Replies
- 1
- Views
- 442
Hi guys,
I'm developing a messenger-like chat system. I have a window with this items:
initComponent: function() { this.items = [{
id: ... -
6 Oct 2011 10:41 AM
- Replies
- 1
- Views
- 498
For now I'm doing it in an ugly way. I've added an event handler for the "beforeload" event, grab the operation from there and use it then on the "load" event handler. Code:
this.store =... -
6 Oct 2011 10:28 AM
- Replies
- 1
- Views
- 498
Hi guys,
I'm implementing an event handler for the load operation of a TreeStore, but I need the Ext.data.Operation object to access to additional data I'm sending on the response, but I see that... -
6 Oct 2011 5:19 AM
- Replies
- 6
- Views
- 1,493
Hi guys,
Using "expandAll" after the store is loaded is having the same effect that using expand: true in all non leaf nodes. It fires a request for each of the non leaf nodes, even if all the... -
5 Oct 2011 5:03 PM
- Replies
- 6
- Views
- 1,493
Sorry for the misunderstanding. Now I understand what you mean. I didn't try that way. I'll give it a try tomorrow at work and keep you posted about how it goes.
Thanks a lot for your help! :) -
5 Oct 2011 5:00 PM
Jump to post Thread: Help with debugging issues by pret
- Replies
- 2
- Views
- 364
Hi guys,
I'm noticing that I'm having a lot of problems at debug time in Javascript. I recognize that I'm not that comfortable developing at the client side as I am at the server side. But I... -
5 Oct 2011 4:38 PM
- Replies
- 6
- Views
- 1,493
First of all, thanks for taking the time to read and try my case. It's nice to see people willing to help like you!
I apologize for my code, I pasted it at work before I went out and it seems I... -
5 Oct 2011 11:51 AM
- Replies
- 6
- Views
- 1,493
Hi all,
I'm trying to create a tree that preloads all its items (nodes) with a single ajax request. I'm actually returning this from the server:
... -
5 Oct 2011 7:19 AM
- Replies
- 4
- Views
- 594
Yes, it worked like a charm! thanks a lot for your help!
BTW: Maybe there should be a method to simplify this process? it's a common need the use case of exporting exactly the same view of the... -
5 Oct 2011 7:07 AM
- Replies
- 4
- Views
- 594
First of all, thanks a lot for replying!
I did try your example, and the URL is generated, but the problem is that it doesn't contain the parameters I need. Not even the sorters are appended to... -
4 Oct 2011 8:11 PM
- Replies
- 4
- Views
- 594
Hi all,
Which would be the best way to obtain the actual URL that a store uses on its load method? the thing is that the URL is being appended with lots of parameters for filters, sorters, etc... -
4 Oct 2011 5:57 AM
- Replies
- 3
- Views
- 863
To clarify what I mean before:
onStoreBeforeLoad: function(store, operation, eventOptions) {
var searchField = this.down('mysearchtextfield');
operation.params = {
... -
4 Oct 2011 5:48 AM
- Replies
- 3
- Views
- 863
Thanks! it works indeed. The only thing I've noticed is that I had to define the property "params" first, because it doesn't exist on the Ext.data.Operation object I receive in the beforeload event....
-
4 Oct 2011 5:04 AM
- Replies
- 3
- Views
- 863
Hi guys,
I need to set parameters on the request on the "beforeload" event of the store. Basically, I need to add to the URL that it uses to request, for example, a parameter "solr", so it could... -
26 Jul 2011 10:57 AM
- Replies
- 0
- Views
- 522
Hi all,
I'm trying out ExtJS 4, and I see that some of its components are coded in very much the same way in Sencha Touch. If I want to reuse code developed with ExtJS 4, which components are... -
28 Jun 2011 3:03 PM
- Replies
- 4
- Views
- 1,444
I've fixed my previous post. I didn't notice that I didn't use the CODE tags to show the directory structures.
About your question, in my opinion, the store should be in its own file if you're... -
28 Jun 2011 12:16 PM
- Replies
- 4
- Views
- 1,444
Same question here. I have a big app which I want to migrate its GUI to use ExtJS 4. I'm reading the MVC guide. I like it, but it seems to be a directory structure for small apps:
/app
...
Results 1 to 25 of 58
