Bavithra Rajendran Vor 14 Jahren Thank You . Looking forward for Plugins Post Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Jonas Yuan Vor 14 Jahren Cool! Thank you, Nate. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Julio Camarero Vor 14 Jahren Really nice Nate! I do like these posts, I find them very useful. Can't wait for the next one! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Sandeep Nair Vor 13 Jahren Hi Nate,Was wondering if its possible to wait till the request comes from the server and then process the next block of code. For example i have something like followingvar msg="some mesg";if(true){ msg = msg+someother_msg;}else{ var test= doAjaxcallhere; if(test = true){ msg = msg+new message; }else{ msg = msg + else message }}if(someother condition){ msg= msg+some other condition;}Is it possible that i can wait for ajax call response and then move on to further blocks Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Andrey Filippov Vor 12 Jahren Hi Nate and thanks for the post. Got a question.. Not long ago I ran into the problem with ajax call. I have a popup dialog with a form that is being submitted in ajax manner. After it I have something like this:complete: function(id, resp, args) { console.log('complete'); var templatePanel = A.one('#portlet:namespace/>prefsPanel'); templatePanel.plug(A.Plugin.IO, { uri: '<%= refreshURL%>', method: 'GET' }); dialog.close();},And my div block is being refreshed only once - after it silence. It is cached somewhere. Although I added cache:false property it would not help... Do you happen to know the way to improve it?Thanks in advance. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Rohit Salecha Andrey Filippov Vor 12 Jahren Hi to Learn More on Liferay Check out this blog ,http://liferaydemystified.blogspot.com/ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Rohit Salecha Andrey Filippov Vor 12 Jahren Hi to Learn More on Liferay Check out this blog ,http://liferaydemystified.blogspot.com/ Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Muhammad Asif Vor 12 Jahren This is good that we have got the client side of ajax calls. If it is easy still its not clear to me how to handle the ajax request on the server side. I am using MVCPortlet with plain jsp. I would like to know how can I handle ajax request in this architecture on the server side. Thanks. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Muhammad Asif Vor 12 Jahren Ok I have got it. You need to use serveResource method of MVCPortlet. You need to put your business logic in it and then you can return any data type and write out any data in your response. Perhaps there are more things to add. Exploring. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Nayan ambali Muhammad Asif Vor 12 Jahren how should I use AJAX call in EXT, for example I am modifieng community portlet, whare I need to put serveResource method Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Nayan ambali Muhammad Asif Vor 12 Jahren how should I use AJAX call in EXT, for example I am modifieng community portlet, whare I need to put serveResource method Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Brent Jensen Vor 12 Jahren I'm not even sure I'm in the right place here: My superior is having me learn Liferay for web development. I'm only just now sort getting the hang of themes & designing them. However we have run into a "mystery @ symbol" located above the wrench in the tool icons, where the @ actually takes on the attributes of portet body text but I for the life of me cannot seem to get rid of it or find it within the code. I have a screen shot of the mystery symbol, not sure where/how I can attach it for all to see - at the very least I need some assistance as my superior is breathing down my neck. And if I'm in the wrong place could someone direct me to where I should be. Thanks, Brent Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Nate Cavanaugh Brent Jensen Vor 12 Jahren Hi Brent, that certainly is odd. I'd try the forums with perhaps your version info and browser that you're seeing it in (you can link to the forum thread on my wall if you like). For the screenshot, I'd recommend something like Skitch (if you're on a mac) or Dropbox or even one of the the veritable array of options with free image hosts.I hope that helps Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Rubén García Tamayo Nate Cavanaugh Vor 12 Jahren Hi Nate, thank you very much this is a good post to start with aui-ajax!! very good work!! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen kiran kumar Rubén García Tamayo Vor 11 Jahren Thanku for providing cool approach to start with ajax. I am working with struts2 portlet in liferay 6 .My portlet class in portlet.xml is Jsr168Dispatcher. i tried using ajax ,request was going fine to my action class but iam unable to retrive proper responseData . I am getting some redundant javascript as my response data . Can u plz guide me where iam going wrong.. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Nate Cavanaugh Brent Jensen Vor 12 Jahren Hi Brent, that certainly is odd. I'd try the forums with perhaps your version info and browser that you're seeing it in (you can link to the forum thread on my wall if you like). For the screenshot, I'd recommend something like Skitch (if you're on a mac) or Dropbox or even one of the the veritable array of options with free image hosts.I hope that helps Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Rubén García Tamayo Nate Cavanaugh Vor 12 Jahren Hi Nate, thank you very much this is a good post to start with aui-ajax!! very good work!! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen kiran kumar Rubén García Tamayo Vor 11 Jahren Thanku for providing cool approach to start with ajax. I am working with struts2 portlet in liferay 6 .My portlet class in portlet.xml is Jsr168Dispatcher. i tried using ajax ,request was going fine to my action class but iam unable to retrive proper responseData . I am getting some redundant javascript as my response data . Can u plz guide me where iam going wrong.. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Rubén García Tamayo Nate Cavanaugh Vor 12 Jahren Hi Nate, thank you very much this is a good post to start with aui-ajax!! very good work!! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen kiran kumar Rubén García Tamayo Vor 11 Jahren Thanku for providing cool approach to start with ajax. I am working with struts2 portlet in liferay 6 .My portlet class in portlet.xml is Jsr168Dispatcher. i tried using ajax ,request was going fine to my action class but iam unable to retrive proper responseData . I am getting some redundant javascript as my response data . Can u plz guide me where iam going wrong.. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
kiran kumar Rubén García Tamayo Vor 11 Jahren Thanku for providing cool approach to start with ajax. I am working with struts2 portlet in liferay 6 .My portlet class in portlet.xml is Jsr168Dispatcher. i tried using ajax ,request was going fine to my action class but iam unable to retrive proper responseData . I am getting some redundant javascript as my response data . Can u plz guide me where iam going wrong.. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
k venkatesh Vor 11 Jahren But this calls is it working for Guest users? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari k venkatesh Vor 11 Jahren Hi everybodyI have a data for example <data><x> .. </x><y> <z> .... </z> </y></data>and I want to fetch <x> data. what should I do? and I want to fetch <y> data with its inner tag (I want to fetch <z>..</z>). what should I do?Thanks a lot Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Nate Cavanaugh Mahdi Lashkari Vor 11 Jahren Hi Mahdi, this one is pretty simple. You can pass in a config option called "selector" that will give you a NodeList of the items you want to work with.So you could do:A.io.request('path/to/file.xml', { selector: 'data', dataType: 'xml', on: { success: function(){ var data = this.get('responseData'); var x = data.one('x'); var z = data.one('y z'); console.log(x.text(), z.text()); // prints out values of x and z } }}); Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Nate Cavanaugh Vor 11 Jahren Thanks nate! but as I said, I want to fetch all things in <y> tag. I mean I want to fetch "<z>..</z>".My problem is that I pass html data in xml tags and I want to fetch html data with all of their tags. for example<data><y><body> <div="align=center"> Liferay Is the Best </p> </body> </y> </data>I want to fetch <body> "<div="align=center"> Liferay Is the Best </p> </body>". what should I do? Thanks a lot! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Hi nate,another thing is that " var x = data.one('x');" return null and doesn't fetch data My code :AUI().use('aui-io-request','datatype-xml',function(A) { A.io.request("<%=ajaxActionUrl%>", { data : {'rId' : A.one('#<portlet:namespace />rd').get('value') }, selector: 'data', dataType : 'xml', on : { success : function() { if(this.get('responseData')==null) { goToStartUrl() } else { var data = this.get('responseData'); alert(data.one('z)); } } } }); });it alerts null. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Any Idea? I really need to solve this problem Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Mahdi Lashkari k venkatesh Vor 11 Jahren Hi everybodyI have a data for example <data><x> .. </x><y> <z> .... </z> </y></data>and I want to fetch <x> data. what should I do? and I want to fetch <y> data with its inner tag (I want to fetch <z>..</z>). what should I do?Thanks a lot Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Nate Cavanaugh Mahdi Lashkari Vor 11 Jahren Hi Mahdi, this one is pretty simple. You can pass in a config option called "selector" that will give you a NodeList of the items you want to work with.So you could do:A.io.request('path/to/file.xml', { selector: 'data', dataType: 'xml', on: { success: function(){ var data = this.get('responseData'); var x = data.one('x'); var z = data.one('y z'); console.log(x.text(), z.text()); // prints out values of x and z } }}); Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Nate Cavanaugh Vor 11 Jahren Thanks nate! but as I said, I want to fetch all things in <y> tag. I mean I want to fetch "<z>..</z>".My problem is that I pass html data in xml tags and I want to fetch html data with all of their tags. for example<data><y><body> <div="align=center"> Liferay Is the Best </p> </body> </y> </data>I want to fetch <body> "<div="align=center"> Liferay Is the Best </p> </body>". what should I do? Thanks a lot! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Hi nate,another thing is that " var x = data.one('x');" return null and doesn't fetch data My code :AUI().use('aui-io-request','datatype-xml',function(A) { A.io.request("<%=ajaxActionUrl%>", { data : {'rId' : A.one('#<portlet:namespace />rd').get('value') }, selector: 'data', dataType : 'xml', on : { success : function() { if(this.get('responseData')==null) { goToStartUrl() } else { var data = this.get('responseData'); alert(data.one('z)); } } } }); });it alerts null. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Any Idea? I really need to solve this problem Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Nate Cavanaugh Mahdi Lashkari Vor 11 Jahren Hi Mahdi, this one is pretty simple. You can pass in a config option called "selector" that will give you a NodeList of the items you want to work with.So you could do:A.io.request('path/to/file.xml', { selector: 'data', dataType: 'xml', on: { success: function(){ var data = this.get('responseData'); var x = data.one('x'); var z = data.one('y z'); console.log(x.text(), z.text()); // prints out values of x and z } }}); Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Nate Cavanaugh Vor 11 Jahren Thanks nate! but as I said, I want to fetch all things in <y> tag. I mean I want to fetch "<z>..</z>".My problem is that I pass html data in xml tags and I want to fetch html data with all of their tags. for example<data><y><body> <div="align=center"> Liferay Is the Best </p> </body> </y> </data>I want to fetch <body> "<div="align=center"> Liferay Is the Best </p> </body>". what should I do? Thanks a lot! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Hi nate,another thing is that " var x = data.one('x');" return null and doesn't fetch data My code :AUI().use('aui-io-request','datatype-xml',function(A) { A.io.request("<%=ajaxActionUrl%>", { data : {'rId' : A.one('#<portlet:namespace />rd').get('value') }, selector: 'data', dataType : 'xml', on : { success : function() { if(this.get('responseData')==null) { goToStartUrl() } else { var data = this.get('responseData'); alert(data.one('z)); } } } }); });it alerts null. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Any Idea? I really need to solve this problem Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Mahdi Lashkari Nate Cavanaugh Vor 11 Jahren Thanks nate! but as I said, I want to fetch all things in <y> tag. I mean I want to fetch "<z>..</z>".My problem is that I pass html data in xml tags and I want to fetch html data with all of their tags. for example<data><y><body> <div="align=center"> Liferay Is the Best </p> </body> </y> </data>I want to fetch <body> "<div="align=center"> Liferay Is the Best </p> </body>". what should I do? Thanks a lot! Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Hi nate,another thing is that " var x = data.one('x');" return null and doesn't fetch data My code :AUI().use('aui-io-request','datatype-xml',function(A) { A.io.request("<%=ajaxActionUrl%>", { data : {'rId' : A.one('#<portlet:namespace />rd').get('value') }, selector: 'data', dataType : 'xml', on : { success : function() { if(this.get('responseData')==null) { goToStartUrl() } else { var data = this.get('responseData'); alert(data.one('z)); } } } }); });it alerts null. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Any Idea? I really need to solve this problem Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Hi nate,another thing is that " var x = data.one('x');" return null and doesn't fetch data My code :AUI().use('aui-io-request','datatype-xml',function(A) { A.io.request("<%=ajaxActionUrl%>", { data : {'rId' : A.one('#<portlet:namespace />rd').get('value') }, selector: 'data', dataType : 'xml', on : { success : function() { if(this.get('responseData')==null) { goToStartUrl() } else { var data = this.get('responseData'); alert(data.one('z)); } } } }); });it alerts null. Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Any Idea? I really need to solve this problem Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Mahdi Lashkari Mahdi Lashkari Vor 11 Jahren Any Idea? I really need to solve this problem Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Shantaram Tupe Vor 9 Jahren Hi sir, I want to store 'json data' from ' this.get('responseData') ' for later use in my aui datatable. How can I store it to a variable .and use it to Datatable . ? Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen
Felipe Augusto Nunes da Silva Vor 8 Jahren Cool Melden Sie sich an, um auf diesen Beitrag zu antworten. Antworten als... Abbrechen