Google Sites HTML removes ID attribute - jquery-ui

I am trying to use JQuery's accordion on a Google Sites page.
When trying to assign an ID or class to, say, a element, Google Site's HTML editor removes those attributes.
So, for instance, I type and then click Update. Upon returning to the HTML editor, that line of code reads simply .

You can add Jquery on Google Sites via App Script ( HTML Services )
https://developers.google.com/apps-script/guides/html/restrictions#jquery_and_jquery_ui

Related

Rails Turbo Removes Hubspot Injected HTML on page redirect

I'm using a Hubspot chat bot in a rails app that's setup with Hotwire & turbo. When the page is initially loaded a Hubspot script will inject some html into the body of the page which contains the chatbot. Once any redirect happens the body is replaced & the injected code is removed.
How can I keep the injected code present in the body. I tried wrapping the script & area where the inject code goes in a data-turbo="false", that did not work.
Turbo works by replacing part or all of the HTML body with new content. This can wipe out any modifications made to the HTML body (such as the chat widget).
Possible solutions:
Direct Hubspot to modify an HTML element that isn't being replaced by Turbo. Hubspot supports inlineEmbedSelector option that allows you to identify an HTML element ID for the hubspot widget to use. Turbo supports data-turbo-permanent which lets you tell Turbo to retain an element on the page.
Re-initialize the chat plugin after it gets wiped out. This is what would normally happen as you click around the page. Here's their documentation on refreshing the bot. EDIT: This doesn't work as the widget doesn't re-create the html elements and doens't allow subsequent calls to load()

Webapp in iOS opens popup when outside scope

Since Apple iOS 13.1+ all webapps without the proper manifest and/or scope directive will be left with a popup IN the webapp when changing URL's. When the manifest is OK and holds the right scope (e.g. "/") all navigates like before. The problem is when my clients want to pay on my website and they are redirected to my payment provider. This URL change (also domain change) is again opened IN this popup instead in a flow from my shop.
Does anyone know how to solve this?
After long search i found the way of loading the manifest was the problem. We added this in correct (and checked) syntax in the head segment of the HTML. However we used the JSON type inclusion. We found that when using inline link tag, using rel="manifest", we should not put the JSON within the tags but in the href attribute like so: href="data:application/manifest+json,{}"/>. The same JSON output goes between the acculade brackets and then the scope and starturl are processed by the browsers.

How to add an external link under a page in Kentico?

We’re using Kentico 11.0.26 with MVC.
I need to add an external link under a page.
In content tree it should look something like this:
Page A
Page A1
Page A2
https://www.www.google.com/
The problem is that when I click the + button in Pages application, I only see page types, and there is no option to add a link.
Why not use value of page field to store the link and load the value inside of MVC app? Content tree alone does not have capability for this. All nodes have to be pages in one way or the other and plain old link to external domain can not be placed instead of page. To be honest I do not see benefit of having a link inside of content tree even for menu since you have to create menu using document path and not only its name anyway so accessing additional property should not be that much of a problem.
You could create a new content type to represent an external link and put that into your content tree. This would then also give you options to set additional properties of the link such as target and title rather than just a URL.

Orbeon Forms - link button

I'm new to this Orbeon forms development.
I want to know how to load or open a PDF on web browser when a link button is clicked.
I have already created a web service to load the PDF, I want to call that web service and open the PDF in a new tab of the web browser when the link button is clicked.
The Link Button in Form Builder is more like a Button than a Link: it is intended to be used to run an HTTP or database service, for instance sending the value of some fields to that service, and using the result to populate other fields, or populate a dropdown. In your case, it looks like you just need a plain link. You can create such a link with the Explanatory Text control:

User control in Umbraco

Hey frenz I am new to Umbraco cms. And I am building site using it.Here I need to include the
.net user control with some textboxs and submit button. But when I include the macro containing the .net user control in my templete and Run the site I got the error
Server Error in '/' Application.
Control 'ContentPlaceHolderDefault_News_2_Button1' of type 'Button' must be placed inside a form tag with runat=server.
I also watch the video tutorials about the Usercontrol in Umbraco. And followed the same process but i am still getting the error.
But it works fine if i used Html textbox and buttons
So, it there any solution for it.............
This is because the control 'ContentPlaceHolderDefault_News_2_Button1' of type 'Button' is not placed inside a form tag with runat=server.
Every ASP>NET control that have attribute runat="server" must be placed inside a form tag with runat=server.
The solution is easy:
Put the form into your user control
or
Make template that contains server form and acts as master page. Put your user control inside that template

Resources