browser

Get browser bookmarks via javascript

僤鯓⒐⒋嵵緔 提交于 2019-12-30 18:47:10
问题 we want to provide an online bookmark service to our customers. Therefor it would be nice to provide also a function to store local bookmarks into our online tool. This shouldn't be done automatically - the user should confirm this action (only in case someone thinks I want to spy users data). I'm looking for a while now, but I found only that there is no solution, because it's a security risk. Is there a way or already a tool for such a functionality in Javascript? Regards 回答1: This is

Padding doesn't work on select tags in Safari [duplicate]

二次信任 提交于 2019-12-30 17:36:27
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: padding is not working in Safari and IE in select list So I have a basic select tag like so: <select> <option>1</option> <option>2</option> <option>2</option> </select> But if I put padding on select tag, it doesn't work on Safari: select { padding: 6px; } On IE7, I understand, but on Safari? Is there a way to get around this? 回答1: Answered previously here: https://stackoverflow.com/a/2967371/181002 Webkit has

Can you access a client's bookmarks using javascript with their permission?

一个人想着一个人 提交于 2019-12-30 14:47:16
问题 I want to make it easier for a user to import bookmarks to my server. Is there anyway to automate this process using javascript to obtain the user's bookmarks? I'm assuming the browser has to have this feature - and I'm not sure if any browser does due to the inherent security risk. 回答1: Nope, that's not possible for security/privacy reasons . The only way is to ask them explicitly through form input to give you but I don't think you want to do that. 回答2: The browser is obviously aware of

Is it possible to disable tooltips for links?

与世无争的帅哥 提交于 2019-12-30 13:23:42
问题 I don't have any title or alt tags set on my links so IE10 uses the href content for tooltips when I hover or click and hold a link. I've been looking around but I can't find any solutions for overriding this functionality. Update: I've figured a solution for another problem I've had. When you touched and held, a weird square would pop up. To fix that I used this line of code. document.addEventListener("MSHoldVisual", function(e) { e.preventDefault(); }, false); I'm still trying to find a

Is it possible to disable tooltips for links?

≯℡__Kan透↙ 提交于 2019-12-30 13:22:12
问题 I don't have any title or alt tags set on my links so IE10 uses the href content for tooltips when I hover or click and hold a link. I've been looking around but I can't find any solutions for overriding this functionality. Update: I've figured a solution for another problem I've had. When you touched and held, a weird square would pop up. To fix that I used this line of code. document.addEventListener("MSHoldVisual", function(e) { e.preventDefault(); }, false); I'm still trying to find a

Why is this microtask executed before macrotask in event loop?

爱⌒轻易说出口 提交于 2019-12-30 11:51:32
问题 My understanding is that the full microtask task queue is processed after each macrotask. If that is the case, why does the setTimeout callback get executed after the Promise microtasks in the following snippet of JavaScript ? console.log('start'); setTimeout(() => { console.log("setTimeout"); }); Promise.resolve().then(function() { console.log('promise'); }); console.log('end'); This outputs the following: > "start" > "end" > "promise" > "setTimeout" Is it because of a ~ 4ms delay imposed by

launching and closing a native browser that points to web app

旧城冷巷雨未停 提交于 2019-12-30 11:38:35
问题 Hello good Stack Overflow people, I do have a business problem and would like to get some answers/pointers/ideas on how to go about solving it. perhaps this has been mentioned in some other topic but so far I searched the internet but not able to find a straight answer.. Business Problem: One of our clients would like to have a Java web based application but launched as a desktop application. i.e. the client would like to double click on an icon some where on their desktop and get a browser

explicitly-allowed-ports not working in latest google chrome v. 72.0.3626.109

放肆的年华 提交于 2019-12-30 10:58:13
问题 We have few local sites with unsafe ports i.e. 100,101,102,103. Those were working fine on google chrome with explicitly-allowed-ports in the shortcut target. Suddenly they have stopped working for new update version of chrome v. 72.0.3626.109. I am not able to find any solution to it. Even if I install the old version of chrome it gets updated to the new one. Can you please guide me what to do. I cant change the mapping of websites as there are limitations. Please guide. 回答1: This bug was

jqGrid - Pager not shown. How to enable it?

无人久伴 提交于 2019-12-30 10:41:09
问题 I dont know why, but im using jqGrid and pager not show properly. I could show the viewrecords , but pager not. The rest of the table works ok. Could anybody give me any idea about where is the problem. My JQGrid is: jQuery('#report_table').jqGrid({ scroll: 'true', url:'getReportTableData.json', datatype: 'json', height: 400, width: 800, colNames:['Futures','Units'], colModel:[ {name:'Futures',index:'Futures', width: 150, sortable: false}, {name:'Units',index:'Units', width: 150, sortable:

How to access android browser's local storage via native code

时光总嘲笑我的痴心妄想 提交于 2019-12-30 09:48:36
问题 I am developing an android application that has to access the default browser local storage. The scenario is : Open the android default browser Load a page (that I have developed) that saves some data in the browser's local storage Close the browser Open my application The application reads the data saved in the browser's local storage and shows it to the user Is there a way to access the local storage of the browser? Also if it is possible, how to access the local storage of the other