browser

How to launch the android browser?

I have the following code: Intent myIntent = new Intent(Intent.ACTION_VIEW, ContentURI.create(arAdapter.getItem(position).getUrl())); startActivity(myIntent); But I get the compile time error: ContentURI cannot be resolved. How can I fix this? or is there a different way to launch the android browser? ...

Ruby plugin for web browser?

Am I correct that if someone wrote a Ruby plugin for a web browser and a user installed that plugin then it would be possible to replace javascript with ruby on the frontend? Aren't there any plugins for this? Or even for using other languages than javascript on the browser side? ...

Crossbrowser technique for adding HTML content to the user's clipboard

Suppose Stackoverflow wanted to make an easy "Copy link to this question" link. When you clicked this link on http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke, it would add this HTML to your clipboard: <a href="http://stackoverflow.com/questions/234075"&gt;What is your best programmer joke?</a> So when you p...

Would a browser ever ignore case sensitivity of the location header when responding to a redirect?

If a browser requests http://site.com/?q=abc and gets a 301 redirect response to location http://site.com/?q=ABC (note case of querystring) Is it possible for the browser to ignore the difference in case and re-request http://site.com/?q=abc, thus causing an infinite redirect loop? That's the scenario that appears to be happening acco...

Managing browser window focus

Parent window opens a child window. User toggles to Parent window. Can a button/link in the Parent window bring the child window into focus? (I tried a quick and dirty test and it worked in Safari in OSX...and it works) Will this work across Grade A browsers? If the parent window is closed... Can another window target the child and ...

The javascript "resizeTo" function not working in Chrome and Opera

Hi everybody, The resizeTo (that allows setting a new height/width value) function works great on Firefox and Internet Explorer and doesn't work at all on Chrome and Opera. Is there another function that does the same and works on all the browsers? Thank you, Regards ...

How do I copy some text from within conkeror into my clipboard?

conkeror i'v started using it and its great! i cant find however how do i copy some text from within the browser into my clipboard? ...

Div wider than browser without browser scrolling.

I'm working on a layout where the main content div will have a with of 970px. Behind this div, I want a div with dimensions 1200x600px (it will contain a flash object) positioned like so: width:1200px; height:600px; position:absolute; left:50%; margin-left:-600px; The problem is when the browser is sized to a width smaller than 1200px...

PHP Native OS 'Remember Me'

Sorry if the title was misleading. I want to know how to trigger the default OS password keeper when a user successfully logs in. Example: I use Chrome in OSX, whenever I login somewhere I get the option for Chrome to save my login info, which stores the info in my keychain. This is not a question about a 'remember me' checkbox for the...

Detecting page refresh and solution for removing data from session info from the db...

I've tried reading the existing posts on this subject, but haven't found a solution that works for me. I'm sure this is a common problem and someone probably has implemented a solution...if so, and you could help me out I would really appreciate it. I have a webapp that needs to execute a logout script when the user either closes the b...

IE and Chrome jquery and css support problem

I developed little site that use: -webkit-box-shadow: 0px 0px 20px #000; -moz-box-shadow: 0px 0px 20px #000; box-shadow: 0px 0px 20px #000; -webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; for making shadow and radius on boxes. And $(".mainpage").show() Jquery function to show new content qhen user clic...

Links disabled in html

I've been working on a revamp of the charity site I'm the webmaster for, heroinitiative.org. It is located here: http://www.heroinitiative.org/revamp/default.html (and no it's not live code, it sits alongside the live site just so I can show progress to my boss, it's not really important to keep it under wraps, which is why I can post it...

Form submition with jQuery is not working correctly with IE8

jQuery $.ajax() does not seem to work correctly with IE8 but it is working with Firefox, Chrome and Safari. I am submittin the form and response back in JSON format. Here is my code: test.php: <script type="text/javascript" src="jquery-1.4.2.js"></script> <script type="text/javascript" src="jsFile.js"></script> <form action='_test.ph...

How to invoke phone dialer in browser? or is it impossible ?

I build a website for phones like android and iphone,when users are visiting my site,is it possible for me to invoke some system build in activities like Dialer or SMS)? I want to implement this cause I hope when user click the link with phone number,I can start to call directly. ***Edit******** I think it is possible cause in android...

Can't keep custom attributes in DOM?

A very simple asp.net webform page. <asp:DronDownList id="ddl" runat="server"> <asp:Button id="btn" runat="server" Text="Do nothing but post back" /> In Page_Load: if (!IsPostBack) { ListItem item = new ListItem("text1","value1"); item.Attributes["custom"] = "CustomValue"; ddl.Items.Add(item); } The html it renders:(which ...

How to block if JS download is not completed

I am downloading the JS file asynchronously by appending the JS file to HTML head. Now in html body, before using the JS file, I want to check if JS file has downloaded and is present in the cache. If the JS file is NOT present in the cache(e.g: in case of slow internet connnections), I want to block until it is downloaded. In other word...

How to rewrite location in nginx depending on the client-browser's language?

Hello all. How to rewrite location in nginx depending on the client-browser's language? For example: My browser accept-language is 'uk,ru,en'. When I request location mysite.org nginx must forward to mysite.org/uk How to do it? Thanks. ...

How to get content currently being displayed in browser viewport

How can I get an indication of what part of a long document is currently being displayed? E.g. if my html contains 1,000 lines 1 2 3 ... 999 1000 and the user is near the middle showing the 500th line then I would like to get "500\n501\n502" or something like that. Obviously most scenarios would be more complex than t...

CSS-only tooltips - problem w/z-index?

My goal is to use CSS ONLY for some tooltips. I like the solution here: http://sixrevisions.com/css/css-only-tooltips/ The problem I'm having is when hovering over the first "qwer" (the second TD of the first TR), you can see the second "qwer" (second TD of the SECOND TR) over the tooltip. I've been playing with the z-index propertie...

Jquery .val() browser differences.

The Statement With jquery if you have a button element defined as follows: <button value="123">456</button> Browsers will give you different values if you use either .attr('value'); or .val(); The reason? A <button> element is simply <input type="button"> in a shorthand. The way you would set the value of <input type="button"> is ...