How to Right-to-Left a Spotify Follow Button? - spotify

Can I structure a Spotify follow button so that it is displayed right-to-left? Follow Button Docs
<iframe src="https://open.spotify.com/follow/1/?uri=spotify:artist:6sFIWsNpZYqfjUpaCgueju&size=detail&theme=light" width="300" height="56" scrolling="no" frameborder="0" style="border:none; overflow:hidden;" allowtransparency="true"></iframe>
Thank you

You can't edit the content within an iframe since it is handled by the external site, if you mean if it can be done structurally.
If you mean will it be displayed right to left for certain languages - the Spotify follow button will be displayed in the correct language based on the browser's configured language preferences. Even with Arabic, Hebrew and other RtL written languages set as browser preference, Spotify doesn't have a special right-to-left display for the button, or change the language of the button at all.
E.g. with English in browser language settings:
and with French in browser language settings:

Related

Switch the display language of multi-language SVG (using systemLanguage) for display in browser

An SVG file can contain text in multiple languages (to be shown alternatively), using the systemLanguage attribute inside a <switch> element. See for example:
the explanation on MDN
the Multilingual SVG example.svg on Wikimedia Commons*
What exactly does the `systemLanguage` attribute in multilingual SVG's refer to?
This is very handy for displaying diagrams on a multi-lingual website: I can just include the image using the <img> tag, and the browser will automatically show the text in the right language, based on the language chosen in the browser settings.
However, generally relying on browser settings alone is not good, because the user might want to see the site in a different language, and requiring them to fumble with settings is not practical. So most sites offer a way to switch the display language. For example:
on MDN there is a "Language" button at the top of the page
the Debian website has links in the footer ("This page is also available in the following languages")
If I want to offer this type of language switching, how do I switch the display language of a multi-language SVG file? I found no HTML tag, DOM API or similar that would allow changing the display language chosen by the browser.
Or will I have to do this server-side? This is obviously possible, but rather inelegant.
The problem was also noticed by the Wikimedia project - see T60920 - lang support for SVG images using SystemLanguageAttribute ill-defined and not properly supported in browsers.
tl;dr: When displaying a multi-language SVG (using systemLanguage) in a browser, can I influence the SVG's display language without messing with the SVG file itself?
If you do not want to rely on the browser (as you said) you need to render the image anyway as png (for every language) and embedd it as PNG, as Wikipedia/Wikimedia does it. Expecially multilingual files are not fully supported by browsers and might render differently (between Chrome and Firefox and Internet Explorer ,...)
But if you want to embedd a SVG in a specific language, it does not make any sence to embedd it as multilingual file.

What exactly does the `systemLanguage` attribute in multilingual SVG's refer to?

The SVG specs describe a systemLanguage attribute (http://www.w3.org/TR/SVG/struct.html#SystemLanguageAttribute) that can be used to provide multilingual content (for example when put in a switch that provides cases for different languages).
But what exactly is meant with systemLanguage? Is it the language of the Browser? The language of operating System? The keyboard layout language? The thing that PHP's $_SERVER[’HTTP_ACCEPT_LANGUAGE’] contains? A parameter of the SVG file itself (like foo.svg?en-US)? What "thing" can/should/may I change to actually trigger the element with matching systemLanguage attribute?
Background:
I'm about to design a website that has a language switcher. This website will contain SVG images. And the SVG images will contain text. That's why I wonder about what the systemLanguage attribute evaluates exactly. Can I pass the language that is selected by the user of my website to the SVG file or does it only work if the user actually changes some Browser/OS language?
Edit:
Just found, on Wikimedia Commons there is an example, where one can actually change the language with a drop down box: https://commons.wikimedia.org/wiki/File:SystemLanguage.svg, but I can't figure out how the language is passed to the SVG file.
In Firefox it matches your preferred language or languages set via about:preferences#content then click on the Choose... button
Chrome has a similar mechanism as do other UAs.
Mediawiki are are displaying a png on that page, they display a different png if you select a different language in the dropdown. If you click on the png you go to a page with an actual svg file that you can change by changing your UA language.

How can I make an iframe security error occur in IE?

A user of one of my websites is reporting an alarming-looking frame content error on a page that embeds Google Maps. I have played with the security settings in IE9, IE10 and IE11 but have only been able to either display the embed without issue or display nothing (blank space where iframe should be.) What do I need to do in which version of IE to see this error?
Here is the embed in question (need to redact specific map.)
<iframe id="googlemap" width="640" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps/ms?t=m&msa=0&msid=1234.1234&source=embed&ie=UTF8&ll=37.996163,-96.855469&spn=33.053774,56.25&z=4&output=embed"></iframe>
Here is a screenshot of the error the user is receiving.
Open a new browser window, and pull down the "Tools" menu.
Select "Internet Options".
Click the "Security" tab, select the "Internet" icon, and click the "Custom Level" button.
Scroll down to the "Miscellaneous" section, find the "Launching programs and files in an Iframe" entry and select "Prompt".
Close all open Dialogs by clicking the OK buttons.

Hiding Menu System

I'm looking for some code on how to create a hiding menu. Basically I'd like to have four links in a horizontal menu. When you click on a link I'd like it to hide the others perhaps above or below to provide a text box. This box would also have information in it that we be inputted by the designer only.
I have a link to preview a template for an example below:
http://www.graphicalwonders.com/archives/brian/Homepage.jpg
jQuery UI -
Accordion API -
Viral Patel
Check out these links for examples of Accordion menus. I find the Viral one to be easier to use, however the jQuery UI & API explain more in detail how it works.

IceFaces: panelPopup autoCentre problem with IE

I'm having some problems with panelPopup and IE8. When I set autoCentre="true" and positionOnLoadOnly="true", I expect the popup to appear in the center of the view port and stay put there. This works fine in Safari, Chrome and Firefox, but in IE the popup "follows the scroll", if you see what I mean. I.e if the page where the popup is displayed is longer than the popup the popup is re-centered when I scroll the page. Also, and this is a bigger issue - if the popup is longer than the page I can only scroll part of the way down it, then it's re-centered. This means I can never see the information at the bottom of the popup...
This is the code used to generate the popup:
<ice:panelPopup
id="popup"
positionOnLoadOnly="true"
autoCentre="true"
style="z-index:999; background: #FFFFFF;"
resizable="false"
draggable="false"
modal="true"
clientOnly="true"
visible="#{SomeBean.popupRendered}" >
Any ideas?
Thanks!
According to the documentation, the autoCentre option is supposed to keep it centered through scrolling and window resizing but dragging should disable it. Turning draggable to true might give you reasonable results because the user can drag it to a position they can see the entire popup.

Resources