I'm trying to select facebook comment form that is under each post using a content script of a chrome extension. Unfortunately after inspecting the DOM I've noticed that they use a lot of divs and I'm unable to find the correct one beacuse of the class names. I think they are using react or angular to generate the dom. Is there any way to achive my scope?
Related
I'm looking to create an app with PHP Desktop (latest version) and for the Contact page I wanted to insert a simple Google form.
My problem is that, if I open this link in an external browser, it works as it should be, but using PHPDesktop, returns me a blank page.
I encounter the same issue in both scenario: using the link shown above or the iframe for embedded HTML.
Googling around, I found only one similar reference here, but as it looks my problem is different.
My error code is:
my code is inserted as hyperlink in the menu of my index.php page with this code:
<a class="button2 button1" href="https://docs.google.com/forms/d/e/1FAIpQLSdm7v9mzLeqENTjimhr1w54J-fvCuNJpWAn9O06JsQsmzp4nA/viewform?usp=sf_link" target="blank" >Contact</a>
Do you have any idea how can I solve this?
I have an Android application that has a WebView in it, it opens an external website that is supposed to be populated by my application. There is no issue populating it using javascript
(document.getElementById('id').value='something')
if it's an ordinary website.
However, the site that I am having trouble with is done in Flutter so it is making use of Dart.js. The form elements are not accessible and will always return null with any selector.
I have tried document.getElementsByTagName, document.querySelector and document.evaluate for xpath but the result is the same.
The goal of the application is to autofill the site with its profile data.
EDIT: I've done some reading and found out that it makes use of Shadow DOM which I am not familiar to, I was able to pull the value but it doesn't accept any changes
(document.firstChild.nextSibling.childNodes[2].childNodes[10].shadowRoot.childNodes[5].value)
I am publishing content on a TYPO3 instance where I have just editor rights. At the moment, that content is generated automatically as HTML; my workflow consists of
Copy HTML code
Log in to TYPO3
Select page
Click Edit on the HTML element of this page
Paste HTML code
Submit
Is there a library or an API that helps automating this process?
Since you are only an normal editor in your TYPO3 instance, I assume you cannot just add a TYPO3 extensions that helps you with the task. If you could alter the TYPO3 instance, there would be numerous ways to automate the process: A Scheduler task that fetches new content and puts it to a page or even fetches content from a mailbox or Dropbox share etc..
The only solution I see is that you do some browser automation to perform this task. You use e.g. use Chromium Browser Automation if you work with Chrome. You can record all form entries (username, password, paste text to RTE) and clicks and you also should be able to define some variables (ID of the page and content element, content itself).
I can create forms via templates with no problem. I found a plugin (create-page) from Adaptavist that allows you to create pages from a template. When a user clicks the create-page macro link it creates/saves the page from the template without allowing the user to change the fields.
I want the create-page macro to allow the user to fill in the form fields before saving the new page.
Is there a way to do this with this macro or perhaps there's another way of doing this?
You can try out ConfiForms plugin for Confluence. Quite easy to use.
The form-mail macro from Adaptavist was the answer. It allows you to create email forms inside your pages. Mail form NG plugin is free to use up to version 3.03 for Confluence up to version 5.3.4
I have a GWT app and Im trying to put fb social plugin comment in side of my page. However I have the folowing problem.
If I put the tag in my .html it works perfect, but If I put id dynamically (like with an HTML widjet), It does not work. It just does not display anything.
Can anyone help me? Im having this problem in general, not only with the fb:comment tag.
Note: If I use the iframe implementation of, for example, "fb:like", it works perfect.
My understanding of facebook's api is that it loads your content, and parses out the tags in the fb namespace, replacing them before the actual content is drawn for the user. In contrast, none of the GWT compiled code (or indeed any Javascript code) gets a chance to make changes to the dom until the page has loaded in the browser fully, after facebook has made the changes it needs to.
My advice: Put the fb namespaced tags on the initial page, but perhaps wrap them in a div and mark them as display:none. Then you can grab them from your GWT code and wrap them up in a widget, only to be displayed when you are ready.