browser

In Javascript, preferably JQuery, how do I add something to the URL when the user clicks “back” button in the browser?

ぐ巨炮叔叔 提交于 2019-12-23 18:14:39
问题 When the browser clicks "back" button, I want to append "&page=3" to the URL. How do I bind it, and then do this? Edit: I want this very simple. BIND the event{ window.location(that-url + "&page=3") } Can it be done that simply? 回答1: It sounds like you're trying to create a history plugin. Have you tried using using the mikage history plugin? I wouldn't recommend changing the URL when they navigate away from the current page (which is what the back button does), because you immediately erase

Tapestry 4: Asset Cache Control?

我的未来我决定 提交于 2019-12-23 17:43:23
问题 I use Tapestry 4, and whenever we push a release that changes any assets (image, style sheet, JS library), we get problems because users still have the old version of the asset in their browser cache. I'd like to set up some easy way to allow caching, but force a new asset download when we update the application. Simply disallowing caching entirely for assets is not an acceptable solution. I couldn't see any existing mechanism for doing this, but I was figuring that there might be some way to

Can Java's Desktop.browse provide an HTML Target in order to reuse a browser window?

故事扮演 提交于 2019-12-23 17:25:07
问题 I'm moving an application from using javax.help's browser to the user's desktop web browser, but I'm wondering how to prevent the user from winding up with many windows/tabs open as they click to different parts of the document. I don't see any way to specify an HTML Target in a java URI or a call to Desktop.browse. Is there any way to do this in Java within (or outside) Desktop.browse? 回答1: There is currently no support for this. Instead, you can open a unique HTML document which display

Catch security alert events

让人想犯罪 __ 提交于 2019-12-23 16:59:38
问题 How do I catch the event related to the following webbrower1 security messages: I've try using Navigated , Navigating , DocumentTitleChanged , FileDownload , EncryptionLevelChanged and NewWindow , but without success. 回答1: I've finally find the way to catch these security events by using the following code : Public Class Form1 Dim WebBrowserReady = False Dim securityAlertEvent_1 = False Dim securityAlertEvent_2 = False Private Sub bRunReportID_Click(sender As Object, e As EventArgs) Handles

How to create Firefox plugin with single button (same like Echofon)?

泪湿孤枕 提交于 2019-12-23 16:01:38
问题 I want to how to create Firefox plugin with custom compact menu same like Firefox window . Just now I saw in Echofon. Here is the image, and it looks awesome! So, Please tell me, how we can create like that in plugin window. 回答1: I don't think that there is a simple solution. One has to remove the default window title bar (via chromemargin attribute) and replace it by his own (using <xul:titlebar>). And then it has to be styled to look right with all the operating systems and themes (Windows

Why do browser vendors make their own css properties?

元气小坏坏 提交于 2019-12-23 15:45:05
问题 Why do browser vendors make their own css properties, even they know these properties will not pass the w3c validation before approved and added by w3c? What is the purpose? Is for their own testing, or for web developers, or to demonstrate browser capabilities to the world and to the W3C organizations and to CSS development team of W3C? is it like a beta version of demonstration? if i use any browser specific for now can they remove that property's support from future versions.will i have to

Can't make my button look the same in different browsers

限于喜欢 提交于 2019-12-23 15:39:22
问题 I am not very good at web design, I created a button using CSS but I don't know how to make it look the same in different browsers. This is the button I use: <input type="submit" class="randombutton" value="click here!"/> This is the css I created: .randombutton { border-top: 1px solid #d1d425; background: #e6eb4c; background: -webkit-gradient(linear, left top, left bottom, from(#92b019), to(#e6eb4c)); background: -webkit-linear-gradient(top, #92b019, #e6eb4c); background: -moz-linear

How can I tell if a DOM element is visible in the current viewport?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 15:31:57
问题 Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport )? (The question refers to Firefox.) 回答1: Update: Time marches on and so have our browsers. This technique is no longer recommended and you should use @Dan's solution below (https://stackoverflow.com/a/7557433/5628) if you do not need to support IE<7. Original solution (now outdated): This will check if the element is entirely visible in the current viewport: function

Eclipse Juno Internal Web Browser unavailable (Ubuntu)

喜欢而已 提交于 2019-12-23 15:23:03
问题 I've installed Eclipse (Juno) on Ubuntu Precise and am unable to use Eclipse's internal web browser. I'm getting this error: SWT Browser control is not available I've searched around and haven't found a solution that works. Thanks for your help! Mike 回答1: I did find a solution which worked: sudo apt-get install libwebkitgtk-1.0-0 I'm not sure why, though. Mike 回答2: Under Linux, the SWT browser widget can either use Mozilla XULRunner or Webkit 1. I have had version conflicts between the web

SpeechSynthesisUtterance not working in mobile broswer

时光毁灭记忆、已成空白 提交于 2019-12-23 15:12:24
问题 I am using SpeechSynthesisUtterance in my mobile website. This code is okay when I use it in my desktop version website. But I found that the function is not working in mobile browser in document.ready as below: $(document).ready(function(){ var text_tts="say something"; speakText(text_tts); }); function speakText(text_tts){ var u = new SpeechSynthesisUtterance(); u.text = text_tts; u.lang = 'en-US'; u.rate = 1; u.onend = function(event) { console.log('Finished in ' + event.elapsedTime + '