Appending AJAX in teaser dailog cq5 - aem

I have dropped a simple teaser component in the parsys but dialog of teaser is not opening while checking in firebug, i found there is "AJAX" appending in URL of dialog.infinity.json, please find the image for reference:

Thanks for including the image - that provided some missing information. Your network traffic is showing a GET that succeeds quickly. Then there is a JS exception "snippet.xtype" is undefined. Have you registered the xtype for this? Is the registration happening on this page?

Related

Bootstrap Vue invalid feedback on input not computed

I am working on a project that previous developer used Bootstrap Vue, the problem I have is with b-form-invalid-feedback.
Invalid feedback works once page is loaded, the reason for that is the docs provides example does the same
, now if you have a page with 10 input for a user to register and directly after he opens the page immediately the invalid feedback starts and shows errors in all fields for the user before he even starts writing his name.
Bootstrap V4.3 CSS uses sibling selectors to show/hide valid/invalid feedback.
Wrap each input+feebdack components inside a div so that the other inputs/feedback are no longer siblings of the previous input(s).

Kentico and add Form that posts to external source

I want to create a Salesforce Web to Case from on my Kentico Site.
I have a template built and am inheriting the from that.
I create a new page and then add my form code to the Page Tab > Source and Save.
When I load the page on my site, the form is displayed, but when I hit submit, the form does not do the post action.
How do I accomplish this?
TIA, Jason
Since Kentico is built on web forms, each page's content is wrapped inside a form tag.
Adding your markup (including a form tag) in the middle of a Kentico page results in a nested form, which is invalid.
The quickest way to make this work is probably:
Create a basic HTML document with your markup, and put it on a new page in a "Custom Response" web part. https://www.screencast.com/t/PuwwnFTGGpAJ
Then display that new document in an iframe on your current page.
If that won't work, you can put your form markup in a div hidden by CSS. Then use javascript to move the div to a location after the page's main form tag. You can then use CSS to absolutely position the form on the page.
I hope this is helpful, good luck.

Fancybox 2: Any way of opening iframe without showing it?

I am using Fancybox 2 for my web application. I read its online documenation, but failed to find a way of opening iframe without showing it to a user.
The reason for my inquiry is that when a regular page is loaded, I would like to make a Fancybox iframe get loaded too without a user's notice. When the user clicks on a link on the page that will trigger Fancybox to show the iframe, I would like to make it simply visible. I hope this would greatly improve user experience in terms of speed.
Any ideas or links would be really appreciated.
You could, for example, simply create hidden iframe element and display it as any other "inline" element using fancyBox.

jquery popup in salesforce standard detail page

i want to show a jquery popup message after the user creates any record (say Lead ) and lands in the standard lead detail page .... suggestions please ..
also, how to include js files in sidebar component ??
thanks for the responses .
Check out this very helpful post by Tehnrd:
http://www.tehnrd.com/show-and-hide-buttons-on-page-layouts/
He details how to include JavaScript files using the sidebar component in a video.
About your popup, I use ModalPopup : http://www.modalpopups.com/demos/0.2/demo.htm
it's pretty simple to use and there is a lot of example in the doc.

Facebook Open Graph Protocol Lint Debugger Error - You have <meta> tags outside your <head>

i have a facebook tab that i am attempting to place a send button into (standard FB plugin). i want to control the title and description via open graph, so i followed the current FB instructions to do that.
the open graph data just won't show up in the "send" plugin. passing the page through the FB debugger renders this error: "You have meta tags outside your head" and that's why they aren't working, according to it.
the problem is - i have scoured the source of the page and there are no meta tags outside of the head. furthermore, the page passes through the validator with no errors regarding misplaced meta tags (which it would find). the only errors rendered in the validator are regarding FB's use of non-standard meta attributes. no markup errors, no meta tags outside of the head.
so, at a loss. help: appreciated.
I had a similar problem and traced the issue to Debugger not parsing my document properly because I had NOSCRIPT tags in the HEAD. This is valid in HTML5 (which I was using) but not in HTML 4.01. It appears that the Facebook debugger hasn't caught up with HTML5 tag validation yet.