Refused to display 'https://cse.google.com/cse?cx=...' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN' - google-custom-search

I have a Google Custom Search result page with iframe fro showing results.
I decide to create new one profile, and use this new in the same context.
So I create profile and all I did on my site - just change search ID.
As a result I got
"Refused to display 'https://cse.google.com/cse?cx=...' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'."
Then I change my ID back to the old one and it's start to work correctly.

Google stop to support iframes for the custom search result. So your old ID's are support iframes, as legacy support but the newly created profiles does not.

Related

B2C Hide the Social Intro

I updated our version of self asserted to 2.1.2 to address the new password reset flow. Doing this has added the social_intro to our custom log in page.
I have added the local_intro_generic to the page and it works fine, However the social_intro still show up. We are not allowing for any social login and I don't want it displayed. I can edit it... but I don't see a way to hide it either in the documents or any other search.
You can edit the html file that is getting referenced for that page. Hide the divs that you don't need after checking the class names of the divs using inspect element.

Chart in Dynamics 365 Portal page is not filtering based on current logged in user

I am running Dynamics 365 Customer Self-Service Portal (v8.3.3.153) for CRM Online, and I'm having trouble getting a chart to display the correct data based on the currently logged-in user. I set up a pie chart for cases and added that to the Support Home page which also has an entity list control to display cases based on different view selections. So for example, if I am viewing open cases in the entity list, that is filtered by my currently logged in user so I have 5 cases, but the chart shows all open cases for all contacts (300+) when using the same view for the chart as for the entity list. In my support home page I added Liquid code like this:
{% chart id:"F1F23F44-4C37-E811-811F-E0071B6AA291" viewid:"9F9AA5DC-A537-E511-947E-00155D038C01" %}
I tried the suggested view filter configuration based on the article here, but that just resulted in my seeing no data in the chart, it seems that the portal page didn't automatically switch out the contact guid.
Is there any way to configure a chart to reflect the same filtering based on contact and/or parent account as can be done with the entity lists?
I am also integrating charts on the Portal and noticed this behavior, but as I want to display this only to the Admin was not an issue.
It also happened to me to have filters not applied same way on the CRM and Portal. for example using a Lookup field value, seems more like a bug to me.
Give it a try to use the View on a Entitylist and see what kind of results you get there, otherwise I'll suggest you to raise a Ticket to Microsoft.

How to search category and fill site parameters automatically

I have seen some sites where you search (in Google) for a particular item category and when you click the link found in Google it automatically goes to the site clicked with the search criteria filled in displaying the categorised products.
Hypothetical Example
Go into Google type in Sony TV , click to search.
Results are displayed.
Clicking one of the links takes me to a website which shows all the Sony TV models beginning with AA.
Looking at the search options on the page some fields have been automatically filled in (in other words if you did this search manually the site would prompt you to enter some search criteria) - Not sure if this is relevant but thought to mention.
How is this done? Do i need to setup something in our Google account to get the same results?
It's fairly simple. You pass parameters in your URLs that identify the product, and then you just read the URL parameters when pre-populating the search form on the page. When building your site / sitemap / internal & external links you use those page URLs and Google will naturally pick them up.
In your example, you search for Sony TV. One of the results may be
example.com/index.php?product=sony-tv
The website has the variable sony-tv, which it gets from the URL and pre-populates on the search form.
The important part to note is that the site will have built its URL structure in this method typically and the page you're presented with just happens to look like the site dynamically searched based on your query (it hasn't).

Modifying photosphere on website thing

What i am trying to do is to use a photosphere on my website so that it shows up on full screen as a website cover page. The problem is the the code to embed a photosphere in a webpage given here by google
https://developers.google.com/photo-sphere/web/
lets only the photosphere size to be hardcoded as
displaysize="600,400"
what ever the values but its still hardcoded. What i want is that it gets adjusted to the screen of the user and gets displayed in the whole browser window. Any one got an idea how to pull it off? I didn't find any stuff about 'photosphere on web' other than the google link i gave above.
Indeed the API is currently designed to take static values. I think it's a good point that users might want to set the dimensions to 100% and let it resize dynamically.
I put it on the TODO list and will try to get to it shortly.
In the meantime, one work around is the following: After the viewer loads you will find an iframe on the page which contains it. You can change it's dimensions dynamically to your liking and the viewer should adapt.
The API provided by Google wraps the whole photosphere in layers of iFrames.
You can use the API to request a certain photosphere but only use the response to parse it for the values you need. Then you create your own request and the result can be shown fullscreen.
An example link is this
I created this link dynamically from the JSON response from the elements
media$group media$content 0 url
Hope it helps.
Can't you take the raw image and just use webgl to project it on the inside of a sphere?

How do I get a Captcha off a website and display it in a picturebox using VB.NET?

In Visual Basic .NET is there a way to access a website/signup page and then get the Captcha and load it into a picturebox? How would I do it?
From your question, I can't tell if you are looking for a captcha plug-in or use a plug-in from another site. If you're looking for a plugin, try Recaptcha.
UPDATE
Trying to pull a the captcha image off of a site could be done in two ways, but it the captcha rotation were done correctly, it would no do you any good to be able to pull it off.
One way would be to just right-click on the image and reference that URL in your code. However, as stated previously, this would not be that reliable. The service that generates the image would rotate, and the image URL would be different on every refresh. In other words, the copied URL would only be good for the one time you copied/captured it via right-click or whatever. If the URL did not rotate, then that would be a security issue for the site which is why the image source is different on each refresh.
Another way would be to make a direct request to the page, scrape the content for the captcha image's source, and pull the source from the parsed content. The code for this would be fairly specific per page, and, with my limited knowledge, I can't think of a way to make a generic application to do so.
I don't know why you would want to do what you are wanting to do, unless this is a homework assignment, or you are up to no good.
Depends on the captcha service the website uses.
If the site uses reCAPTCHA, you would probably need to look for the image tag that has id "recaptcha_challenge_image" and display that image tag in a web browser control.
Here is the demo page I found: http://www.google.com/recaptcha/demo/. If the captcha itself is in a frame (or iframe), you will need to check the code in the frame itself.