since ‎11-11-2020
‎10-04-2021
ShagunMalik
Level 1
How to use onready function?
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
I have a serach bar of type submit and then a search button. I'm using button to call a function say fun() to invoke jQuery and use the json data to display on screen. Now whenever I click on submit button the whole page gets refreshed and my data of jQuery gets lost. To resolve it I'm using ready function and using the function fun() of submit button inside it but still the page gets refreshed and my Jquery is not getting executed. How can it be resolved?

Views

100

Likes

0

Replies

3
Re: How to change specific data of dialog box using js.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
Thank You very much @asutosh_jena.

Views

64

Likes

0

Replies

0
Re: How to change specific data of dialog box using js.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
Hi @asutosh_jena, can we doo it using id?

Views

79

Likes

0

Replies

0
How to change specific data of dialog box using js.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
In my dialog I want to change specific content like in my dialog I have written "Search result for {{currentPage}}". Now I want to change only content of {{currentPage}} using js. How can that be done?

Views

93

Likes

0

Replies

4
Getting error "Cannot set property 'innerHTML' of undefined"
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
Whenever i'm trying to access data of tag using getElementById in js, then the data is getting accessed but when i try to change the content of tag in js using .innerHTML, I'm getting error UnCaught TypeError:Cannot set property 'innerHTML' of undefined.How can it be resolved.

Views

64

Likes

0

Replies

1
How to access dialog box value of text format in javascript.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
How to access dialog box value of text format in javascript.Can I use $properties.title?

Views

90

Likes

0

Replies

3
Re: Not able to convert Content fragment into JSON format.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
referred it only but still the error.

Views

87

Likes

0

Replies

0
Not able to convert Content fragment into JSON format.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
I'm working on Content as a Service. I created a simple Content Fragment but when i tried to access it in JSON format using Model.json, It is not getting converted into JSON format. No error is being shown and my Content Fragment is working just fine.

Views

135

Likes

0

Replies

3
Re: Getting error in using POJO class with HTL code.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
Where or how do we check sling model package defined in POM? Guide please.

Views

207

Likes

0

Replies

0
Re: Getting error in using POJO class with HTL code.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
package com.community.aem.core; import com.adobe.cq.sightly.WCMUsePojo; import com.day.cq.search.PredicateGroup; import com.day.cq.search.Query; import com.day.cq.search.QueryBuilder; import com.day.cq.search.result.SearchResult; import com.day.cq.tagging.Tag; import com.day.cq.tagging.TagManager; import com.community.aem.core.HeroTextBean; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import javax.jcr.Node; import javax.jcr.Session; import org.apache.sling.a...

Views

203

Likes

0

Replies

0
Re: Getting error in using POJO class with HTL code.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
package com.community.aem.core; /** * The Class HeroTextBean. */ public class HeroTextBean { /** The heading text. */ private String headingText; /** The description. */ private String description; /** * @Return the headingText */ public String getHeadingText() { return headingText; } /** * @Param headingText the headingText to set */ public void setHeadingText(String headingText) { this.headingText = headingText; } /** * @Return the description */ public String getDescription() { return descrip...

Views

206

Likes

0

Replies

0
Re: Getting error in using POJO class with HTL code.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
this is HTL code i used

Views

237

Likes

0

Replies

0
Re: Getting error in using POJO class with HTL code.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager

Views

238

Likes

0

Replies

0
Getting error in using POJO class with HTL code.
Avatar

ShagunMalik

ShagunMalik
- Adobe Experience Manager
I was trying to take dialog values from AEM component and then map it to POJO class to retrieve data from POJO class but getting error:org.apache.sling.api.slingexception: Cannot get DefaultSlingScript: No use provider could resolve identifier ....... Please help.

Views

344

Likes

0

Replies

9