Google Chrome Extension get DOM from another page of the site - google-chrome-extension

I am dveloping my first extension and I am currently getting data from the page but the page is for example: "example.com/my-data" and I need to display this data from "example.com/" to not need go to that page. How can I get the data from the home page?

Related

How to read web page parameters in Flutter

In my scenario there is a HTML web form that user fills it and after pressing submit button it redirects to another custom page, I want to instead of redirecting to another page redirect to my Flutter app and read some page parameters. Is it possible?

Pass a query string from the parent URL to a page viewer web part

This may be a simple question for SP2010, I am trying to get the query string from a page url and pass it to the url of a page viewer web part.
https://mysite.com/subsite/default.aspx?TeamID=X
The content in the page viewer webpart comes from a different site, but needs the TeamID.
https://othersite.com/page.htm?TeamID=X
I can set the query string manually in the page viewer url, but this is something that will be replicated many times, and I really want to find a way to set up the page viewer and not have to edit it each time I replicate the page.
Thanks in advance,
KB
You can do it by JS. There are some libraries for URL parsing to get value from URL. Then you can append that value to IFRAME's SRC attribute in your page. IFRAME is generated by page view webpart.

Configuring Page Viewer To Refresh Sharepoint Page after clicking it

I have a set of items displayed in page viewer web parts that are from an external site. In order for them to display login credentials for external site are needed. I put the login page as the first web part (page viewer) on the sharepoint library. how do I make it so that after login is completed the page refreshes automatically to now display the other web parts?
it is bit tricky, since here cross domain comes into picture, but probably what you can do is, have a button where in you show that page viewer for login, and once clicked you have some kind of timer, which then refreshes the other page viewer urls. To refresh url is easy just reset the "src" attributes of iframes.

chrome extension css on localhost

I'm working on a chrome extension. The content has a stylesheet content.css. When I run the extension on an external site, it applies the style sheet. When I open a page on my "hello world" page on localhost, it applies the content.css styles initially but the styles go away if I refresh the page and I cannot get them back unless I refresh the extenstion.
Can't figure out why this is but I need to get this resolved.
Thanks,
Ken

chrome extension options change default popup.html

I have a chrome extension where the popup.html simply has an iframe that loads a page.
I want to allow users to select their language, and as I'm helping a charity do this each language page is very different as they need very different content based on the country!
Therefore, I can't just replace some of the fields like the google developer page example does; I need to change the page that is loaded in the iframe.
e.g. In my directory where the pages are stored I have english.html, german.html, spanish.html all of which are completely different pages.
By default the english.html page loads in the iframe, but the user should be able to go into the options file and select german so when they click on the extension the german.html loads by default every time.
Here is the jsfiddle showing what I currently have in the popup.html, and the popup.js:
http://jsfiddle.net/hemang2/EDV82/
You'll see the flickr API being called, but that's only there because I wasn't sure how to get rid of it!
So essentially my question is how to link the options file to change the default url loaded in the iframe.
Use the setPopup method: http://developer.chrome.com/extensions/browserAction.html#method-setPopup
It allows you to set any html file as your popup.

Resources