I have an JSF application with a primefaces dataTable. In a column there is a date rendered in german format dd.MM.yyyy HH:mm:dd. Unfortunately in microsofts edge browser this date is shown as a link. When the link is clicked Skype is opened. Can I suppress this? How? Chrome and FF does not show a link. I know this is probably no problem of JSF or primefaces but I think it could be useful to mention which technologies are used.
If you don't need phone number detection at all in your page, you can suppress the feature by adding the tag <meta name="format-detection" content="telephone=no">
For completeness - You can also:
(1) ...disable that detection feature on a per-element basis
<p x-ms-format-detection="none">01.12.2019</p>
(2) ...use javascript to do the disabling
document.querySelectorAll('p').forEach(
function(a) { a.setAttribute('x-ms-format-detection', 'none') }
)
Related
Currently in vb6 project with WebBrowser i am facing a problem. I want to show adsense ad in my app so i create a html page and put the file in server(adsense approved) and I tried to navigate the page from vb6 project with WebBrowser. but everytime its showing some script error. What to do to fix it? please help
The problem is probably because the Browser Control runs in document mode 7, so it's essentially emulating IE 7. You can override that with registry entries, but those need to be made on a per application (appname.exe) basis.
A better solution usually is to include the document mode meta tag in your html: <meta http-equiv="X-UA-Compatible" content="IE=edge">.
SO question with an extensive answer descriptions on that meta tag: What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do?
Point 1: The WebBrowser control in VB (and later Visual Studio) is not a fully functioning browser like we expect from Chrome, IE, Firefox etc. It has severe limitations.
Point 2: I doubt very much that VB6 has any knowledge of AdSense.
You would probably be better off using VB6 to launch the default browser on the user's computer with relevant parameters and let it deal with whatever page you throw at it.
You would probably be better off at least moving to VB 2008 - there are problems with conversion, but they are do-able and from VB 2008 you can easily move on eventually to more modern variants.
I noticed strange behaviour for google chrome.
I have web application based on java spring-mvc framework.
In head tag <meta charset="utf-8">is set.
For each page response headers return Content-Type:text/html;charset=UTF-8
In IE 8,9,10,11 and FF if user changes encoding in browser's settings to KOI8-R and then goes to another page inside domain - browser encoding will be automatically returned to UTF-8.
BUT in google chrome in same case KOI8-R will be present even if we go to other pages inside domain.
Is it expected behaviour for Chrome? Maybe it is some kind of bug?
Chrome doesn't like to use UTF-8 by default so you have to do:
Click the Chrome menu on the browser toolbar.
Select "Tools"
Select "Encoding".
Pick one "Unicode (UTF-8)" from the menu of encodings
To make the client do this by default you would probably have to write some script but I'm afraid I can't help you out there.
I'm developing an iOS app with Phonegap Build and JQM.
Is an app to generate math problems and some times I'm using big numbers that iOS interprets like a "phone numbers" and automatically converts into links. According the PGB documentation if add <preference name="detect-data-types" value="false" /> into the config.xml this stop.
The preference added into the config.xml seems work good until I click a button, and the numbers are converted automatically into links, like if the preference was ignored.
The actions of the buttons are just for copy to clipboard and print, using this clipboard plugin and this printer plugin. This should don't affect the numbers (at least that is what I think).
I've tested in iOS 6, 7 and 8, in all do the same.
Any idea how to stop this? Thanks!
Try adding
<meta name="format-detection" content="telephone=no">
Or set a property in the UIWebView
self.webView.dataDetectorTypes = UIDataDetectorTypeNone;
and have a look on this & this
On a website i am working on, when ever i select a radio-button, Google Chrome asks to translate the page from Norwegian, even though the page is written in English. It does this from time to time and I'm not sure why. i have tried to load the page in fire fox and Internet Explorer but i do not see this problem there. Does chrome have issues when using radio buttons, or could this be a problem in the code?
thanks for your time.
if you want so suppress google translate you can add the tag
<meta name="google" value="notranslate">
Or you can add the class notranslate to whichever item you don't want translated.
<span class="notranslate">
I am using Telerik Rad Editor in my project, i have an issue with the way HTML is rendered in editor.
I have discovered some changes that are not ideal. Try this as an example. switch to HMTL Mode and enter the following code.
<!--*
<img alt="Chillisauce Hen Nights" src="http://www.chillisauce.co.uk/includes/email/email_header_hen.jpg" /> *-->
These "" tags are added by us so that when html is viewed in design mode that part of code is not visible but is actually part of my template.
Now switch to Design Mode and then back to HTML Mode. You will notice that additional code has been added...
<!--* <img alt="Chillisauce Hen Nights" src="http://www.chillisauce.co.uk/includes/email/email_header_hen.jpg" originalAttribute="src" originalPath="http://www.chillisauce.co.uk/includes/email/email_header_hen.jpg" /> *-->
If you switch to Design Mode and then back to HTML Mode again, these additional bits will have been added again.
Is there any way to disable that functionality?
EDIT:
I have installed new version of Telerik Controls but I found that this is problem in IE. In other browsers like Fire Fox this works OK but In IE it adds that extra line of code.I have checked and this issue occurred in IE version (6,8 and 9).
Actually i am loading Rad Editor control in "Web Browser Control" in my windows application.
I have found a similar bug report in Telerik Rad Editor forum.
http://www.telerik.com/community/forums/aspnet-ajax/editor/originalpath-originalattribute-injected-into-content.aspx
The admin said that it was a bug and should fixed in version 5.7.2. you can try upgrade your Telerick Rad Editor to the lastest version.
You can try the code on the online demos on Telerik's site - http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
The problem does not happen there, so it's most probably a bug that has already been fixed. You should get a newer version of the Telerik controls and upgrade your project.