Tridion CMS custom page - Window.close not working in FF - tridion

we created a custom page which trigered by the component as Custom URL,
we have a close button on the page which calles a js function of window.close ,
it works for I.e and Chrome but not in FF.
we tried also to use local var that receive the window.open("","_self") and close it but didn't succeeded.

This is a browser issue and isn't specific to Tridion. Have a look at this thread which answers a similar question: How can I close a window with Javascript on Mozilla Firefox 3?

Related

Can't Unmute YouTube Videos with Revolution Slider on Mobile

I'm using Revolution Slider in WordPress and I'm running into an issue where on mobile devices, I cannot unmute YouTube videos. I have videos in the slider to be muted on load in and to autoplay. I have interaction and controls both allowed. However, when I try to click the unmute button on the screen, it simply pauses/plays the video. I'm not sure if the pause/play button that appears somehow overlaps and the YT controls are underneath or something. It actually doesn't look like the controls generated from YouTube but instead the RS native controls. I tried turning controls and interaction both off but unsurprisingly, this causes absolutely zero action to happen when you click/press on the video, not even pause/play it.
You can view the issue in action at http://www.hagentertainment.com. The slide in issue is slide #2 out of 3.
Being an issue related to mobile and iframes makes it relatively difficult to diagnose with 100% efficacy. I used Browerstack to open a connection on a Galaxy S20 and noticed the issue as you described.
Using the Dev Tools, I was able to get it to allow the mute button to be clicked by changing the &enablejsapi=1 to &enablejsapi=0. You can see in this screenshot below that after doing that, it allowed it to be clicked. You also have a JavaScript parse error showing in the console - that could potentially be preventing a JS API controller (built into Revolution Slider?) from functioning correctly.
So it looks like your options (for the moment) are to fix that JS error and see if it works, or disable the JS API in the url of the videos

Link opens 2 new windows

For some odd reason, my ad at the top (Sign up & win) opens 2 new windows upon clicking. It works fine on Chrome but on FF and Safari, the issue persists.
Website: View here
Any help would be great. The plugin is Advanced Ad
You need to remove or modify the attribute "target='_blank'" from your anchor tag around the ad. Having target assigned to _blank tells the browser to start a new window session. Depending on the action you desire you may try removing this attribute all together or using '_self' or '_parent' instead.
More information about this can be found here: http://www.w3schools.com/tags/att_a_target.asp

Close other tabs chrome using asp.net

I am developing an intranet web application and the requirement is such that only one url should be opened at a time in chrome.
Currently the url is opened by a third party windows application on which we don't have any control!
Is there any way I can achieve that?
Summary is when the third party windows application opens the url (specified by me) all the other chrome tabs should close expect the current one.
Asuming all tabs are sharing the same domain, you can use JS localStorage with events on page load:
function storageChange(event) {
if(event.key == 'open') {
window.close();
//todo: except current window
}
}
window.addEventListener('storage', storageChange, false);
window.localStorage.setItem('open', true);
This will close all tabs with the same page loaded.
You should just detect the current one and keep it open
Finally I got my answer which was answered in another post in Chrome Extension to Loop to Close Non-Selected Tabs.
This solved my problem. All I had to do was close any window other than the current window. So at any point of time I will have only one chrome tab active.This solved my problem. Thanks for all your suggestions and comments. I am really sorry if I had said something wrong! Special thanks to #Harpyon ..

FB like button Joomla

I am using FB like button in Joomla. This is the address of my website http://www.kaefiggefluester.de.
For fb-like button, I am using custom html module with fb social plugin code and then loading it in user4 position which i defined in the template myself.
Now there are three different problems that I am facing.
In IE 9, before the fb-like button loads, it displays a white line. It disappears after the button is loaded. I am not facing this problem in Firefox.
Also, when loading the page in IE, it sometimes distorts the page. I know that one posts said that I should look for any script that distorts tag, however i face this problem only if I have facebook plugin enabled. IF I remove the fb-like code from Custom Joomla module, it works fine.
I have a component from Videoflow. I dont know exactly how it works but fb-like button doesnt work on the sampe page as this component. However it is working in IE but with wrong language. That is, my defined language for the button is DE (German) and so in rest of the pages it displays "Gefaellt mir." However, In KG TV it shows "Like." ... So this suggest that there is something wrong with loading of the script. However, this is happening in IE only. In firefox it is not loading at all.
If you think i should share some code, please let me know because there are so many files and I dont know which to share.
Regards
I suggest installing firebug for Firefox or using the Chrome equivalent to help you during the development of your website. You can then use the console to view if there are any problems. For example currently your website has these problems which might be the reason you are having the issues you mentioned:

css fix for chrome, and other web browsers

I am looking for a fix for styling a webpage that so that a webpage on google chrome, will look the same as it does on firefox, meaning, is there some syntax in css to make all of the web browsers look the same. does this exist (I would also like one for I.E., and any other web browser if it exists if it exists)
Google Chrome uses a different rendering engine than Internet Explorer/Firefox, so may display web pages differently. Apple Safari uses the same rendering engine as Google Chrome (WebKit) and should display pages the same way.
If your site isn't rendering properly in any browser, make sure your HTML and CSS are valid by testing them at http://validator.w3.org/.
If your site doesn't render properly in Google Chrome or Apple Safari, file a bug at webkit.org as described at http://webkit.org/quality/reporting.html.
If your site renders properly in Apple Safari but not in Google Chrome, please file a bug against Google Chrome at http://code.google.com/p/chromium/issues/list.
How can I test my website in Google Chrome?
There are several tools to help you test your website in Google Chrome:
Web Inspector
Right-click on any component on a web page to launch the web inspector. You'll be able to see the elements and resources associated with the component on which you clicked, including a hierarchy view of the DOM and a JavaScript console.
Task Manager
Select the Page menu icon, then Developer > Task Manager (or press Shift+Esc). The task manager shows all running Google Chrome processes, and the resources that they're using (memory, CPU, and network).
JavaScript Debugger
Select the Page menu icon, then Developer > Debug JavaScript. This launches a JavaScript debugger that can be used to attach to existing processes.
I found the Answer. Being that I am using drupal, there is a built in IE fix for the theme that I am using (fusion) that creates separate css files (ie7.css, ie8.css, etc). using these, I can adjust what I need for IE specifically.
Most layout problems with decent browsers are cause by invalid HTML, invalid CSS, or misunderstanding what a particular piece of CSS is actually supposed to do.
In general, when I see a difference between FF and Chrome, it is because Chrome is doing the proper thing and FF just happens to be rendering some invalid CSS fine. 99% of the time, I can fix the CSS and get FF and Chrome to render the same.
The remaining times, I typically browser sniff and use jQuery to fix the problem.

Resources