Disable Selection On Opera

Nov 26, 2004

I'm writing some cross-broswer drag'n'drop functionality. When I drag a div, text is selected in Opera. How can I disable text selection in Opera for the entire document or at least for some <div>?

View 6 Replies


ADVERTISEMENT

How To Disable The Right Mouse Button On Images (Opera)

Jul 20, 2005

Hey, I am able to disable the right mouse button on images for netscape
and IE but it won't work for Opera.

Here is the code:

View 4 Replies View Related

Cross-browser (IE, FF, Opera) Disable Text Select

Oct 16, 2007

I am trying to make a webpage where I wish to disable text selection on entire body without affecting text input in a form by user. Though I found a couple of javascripts on the net, they don't seem to work with all three browsers (IE, FF, Opera). Code:

View 5 Replies View Related

Disable Double-click Selection

Jul 20, 2005

i have a page with a table, and when the user doubleclicks a row in
it, a window is opened. The problem is, if he doubleclicked a text in
the row, it's becoming selected.

what i want is to disable the selection upon doubleclicking, but no
the selection at all (so that the user can still just use the mouse to
select some text in the table).

is there a javascript command that can disable the selection currently
highlighted?

View 1 Replies View Related

Disable Text Selection And Print Key In IE7

Feb 21, 2007

I'm trying to disable the text selection and print-key functions on a couple page of my web site using the code below:

View 4 Replies View Related

JQuery :: Disable Copy Button When No Selection / More Than One?

Jun 15, 2011

I have the page which is listed the filenames and checkbox next to these filename, the copy button on top of this page.

selections I would like to disable the copy button to prevent the user from making copy. The copy button is only enable if the user selects one file and only one. Can I use the JQuery to do so.

View 1 Replies View Related

Disable Certain Radio Buttons After Initial Selection?

Feb 3, 2010

I'm trying to get the following code to work. It's fine if there are only 2 sets, but once you add a 3rd or 4th it breaks. making a choice of either regular non-member or student member & then changing to another choice fails to disable the last button and also fails to clear selections.note that it is not a requirement that i use radio buttons for the disabled/enabled choices; they could be checkboxes instead.

Code:

<script language="JavaScript">
function Disab (val) {
if(val=="0")

[code]....

View 7 Replies View Related

Disable Options In One Menu Based On Selection In Another

Feb 22, 2011

I am new to javascript stuff but am looking to develop a form which includes 2 drop down menus but I would like to grey out some options in the second one based on the selection in the first. Basically this is a simplification of what I have:

<select name="orientation" id="orientation">
<option value="OR1">South</option>
<option value="OR2">East</option>
<option value="OR3">North</option>
<option value="OR4">West</option>
</select>

<select name="location" id="location">
<option value="L1">Front Left</option>
<option value="L2">Front Right</option>
<option value="L3">Rear Left</option>
<option value="L4">Rear Right</option>
</select>

What I would like is that if south or east are selected for orientation then I can only select front left or front right but if north or west are selected then only rear left or rear right are available.

View 3 Replies View Related

Disable All The Other Checkbox Based On The Selection Of First Check Box

Dec 11, 2007

disable all the other checkbox based on the selection of first check box

View 3 Replies View Related

JQuery :: Disable Field Form After Selection From <select>?

Jul 15, 2011

I'm using jquery validation plugin but i don't know how to do a thing:I'd like to enable a text field after selected a value from a selection list.The select field is this:

<select name="examples" id="examples">
<option value="N">Normal</option>
<option value="A">Abnormal</option>

[code]....

View 2 Replies View Related

Disable/Enable Checkboxes Based On Dropdown Selection?

Jan 14, 2011

I have searched and found lots on enabling/disabling form inputs, but nothing that matches my needs.

I have a form with a dropdown with values 0-4. If value 0 is selected I want the checkboxes to be disabled. If value 1-4 is selected I want the checkboxes to be enabled.

Code:
<html>
<head><title>Disable with Dropdown Test</title>
<script>
function num_check(sel,cb) {

[Code]....

View 11 Replies View Related

Disable Text Field Based On Dropdown Menu Selection

Feb 18, 2009

I have a simple form - I want to disable the text field if Choice 2 from the dropdown menu is selected. I have this working with the code below, but for some reason if I go back and select choice 1 after selecting choice 2 the text field remains disabled. I only want it to be disabled if choice 2 is selected.

View 5 Replies View Related

JQuery :: Used Further Click Function Is Disabled Or Better Only Works To Disable Selection To Gain Again A Skillpoint?

May 25, 2009

[URL]Example on this site u can test what i mean. I want that when all skillpoints are used further click function is disabled or better only works to disable selection to gain again a skillpoint. On current state u can see that when skill counter is at 0, 2 clicks messes up the selection and u can select further on. my code for each icon looks so far like this:

$("#2").toggle(
function () {
if (counter > 0) {
$("#3").attr("disabled", false).fadeTo("fast", 0.50);

[Code].....

View 1 Replies View Related

Way To Prevent Tab Text Highlight / Disable Tab Text Selection

Apr 21, 2011

Here's a sample form:

Code:
<form action="#" method="post">
Name:<br />

[code]...

View 3 Replies View Related

Prevent Tab Text Highlight / Disable Tab Text Selection?

Apr 21, 2011

Here's a sample form:

Code:
<form action="#" method="post">
Name:<br />
<input type="text" name="name" value="your name" /><br />

[Code].....

When you tab to a text input, the value gets highlighted. How can it be disabled?

View 7 Replies View Related

Possible To Prevent Tab Text Highlight / Disable Tab Text Selection?

Apr 21, 2011

Here's a sample form:

<form action="#" method="post">
Name:<br />
<input type="text" name="name" value="your name" /><br />

[code]....

View 1 Replies View Related

Disable A Dropdown List Based On Selection In Another Dropdown List?

Apr 20, 2011

I have two dropdown lists with the second one being dependent on the selection in the first.

Options in list 1: 1,3 or 4

List two should be enabled when 3 or 4 is selected in list 1.

So far so good, managed to get it to work with only one set of lists, but I actually have 18 of those sets in this form:

<select name="fw[$i]" id="fw[$i]">
<option value="1">FWH</option>
<option value="3">links</option>
<option value="4">rechts</option>

[Code]....

I'm not that adept in javascript programming, more like a trial and error guy, how has hit the wall with this problem.

View 20 Replies View Related

Problems With Opera

Jul 23, 2005

<script language="JavaScript1.2" style="text/javascript">
<!--
function checkLocation() {
if (navigator.userAgent.indexOf("Opera")!=-1) type="OP"
else if (document.all) type="IE" // ie 4 & up
else type="XX"
if (type=="IE")
moveNav.style.pixelTop=document.documentElement.sc rollTop
setTimeout("checkLocation()",5);
}
//-->
</script>

This is suppose to keep the Nav bar at the top of an IE browser. (Yes, it
wobbles a little bit, but what can I do?)

With most other browsers, the Nav Bar stays nice and stationary at the top,
thanks to a nice CSS solution. However, with Opera (at least Opera 7.54 that
I have) the nav bar wobbles a bit like I would expect it to in IE, but still
it gets hidden under most scrolling situations. What's the cure for Opera?

View 4 Replies View Related

AJAX And OPERA 8.50

Mar 30, 2006

I have strange situation, in my webb apps i use a lot of AJAX.
in my developer computer i use opera and naked apllication (it's using
Python Application Server cherrypy www.cherrypy.org), in production I
covered my application be Apache server which serves static files. The
problem is that AJAX working in Opera but only on production server
(cherrypy behind Apache), on developer machine it's not working. Others
browser (IE, FF 1.5.0.1) working without any problem. Does anyone know
solution for this? Or is is a way to lookup what is happen under Opera
engine? any plugin or something what shows AJAX status call?

View 1 Replies View Related

Debugging In Opera

Jun 28, 2006

I really want to make my scripts work in Opera. I really, really do.
But it seems like an uphill struggle. First of all, I can't get ANY
kind of debug output. No error messages in the "javascript console" -
but then, I have never seen ANYTHING in Opera's javascript console. Is
there some kind of voodoo I need to perform in order to make that work?

Then, when Opera doesn't like something about a script (even if it works
fine in Spidermonkey), it will sometimes refuse to load it entirely,
which means I can't even do alert() based debugging. What the hell?

Can anyone give me some insight as to how they go about making their
scripts run properly in Opera? I make a point of sticking to ECMAScript
standards (and then making per-browser exceptions where needed *COUGH
IE*), but Opera just doesn't want to cooperate.

This is in Opera 8, by the way. I haven't upgraded yet, since I don't
use it, and I think more people still use 8 than 9 so that's what I want
to target.

View 6 Replies View Related

Opera 9 Problem

Jul 18, 2006

i have such a problem:

document.forms[formName]['image'+orderID+'_'+lineID].click();

this code works only in IE! how can i make something same in Opera 9?

View 1 Replies View Related

Opera 7.11 Reloads *.js

Jul 20, 2005

Has any user of Opera 7.11 noticed that it does not reload all files
when the reload button is clicked? I can click on my html file to cause
Opera to load and start and it's OK. But if I then correct an error in
a *.js file and click reload I often get a javascript console with the
same error that I just corrected and line numbers that refer to the old
file. This has got to be something that I am doing wrong, but I can't
see it.

View 1 Replies View Related

OnKeyPress In Opera 7.11

Jul 20, 2005

I have included a file below that tests onKeyPress in Opera 7.11. I am
getting peculiar behavior. When the file is first loaded, pressing the
keypad + causes the textarea to get physically larger on the screen, and
pressing the keypad - causes the textarea to get physically smaller. I
click on the scrollbar then this behaviour stops and subsequent
keystrokes are displayed appropriately. Is this some kind of bug in
Opera 7.11? Code:

View 5 Replies View Related

SetAttribute() In Opera 7.54 Win

Mar 27, 2005

I'm in the process of migrating a script to use DOM core methods but I've hit a roadblock in the aforementioned browser. The following code snippet illustrates what I'm basically trying to do, it really is incredibly basic!

var newimg = document.createElement('img');
newimg.setAttribute('id', 'placeholder');
newimg.setAttribute('src', 'images/large/courtyard.jpg');

I'm then positioning the element on the page using appendChild(). Everything works perfectly on Firefox 1, IE5+, Opera 8, Konqueror 3.3.1 (Linux) but not in Opera 7.54. I suspect the element is being created as associated styling on #placeholder is being applied (just some padding and borders) but the image itself is not being displayed. I assume therefore that the problems lies with setAttribute()?

This seems like the sort of problem that others would have encountered, but I haven't been able to find mention of it anywhere.

View 7 Replies View Related

FF And Opera JS Problem

Nov 6, 2005

I am using this code:

document.getElementById("p").setAttribute("disabled","true");
to disable a button after user clicks it (this is to make sure user clicks it only once). It is needed to prevent multiple clicks on a button since each click calls a servlet.

This code works in IE but does not in FF and Opera.

View 2 Replies View Related

Js Works Only In Opera?

Jun 24, 2011

I have this code

[URL]

If you'll use Opera browser, it will display lightbox style animation after clicking on marker on the map. Other browsers are not so kind

Chrome give an error Uncaught TypeError: Object [URL] has no method 'click'

To display animation in bumpbox(lightbox alternative) I use this html code

Code:

<div id="neco" style="display: none">
<a href="clouds.swf" class="bump">clouds</a>
</div>

and this javascript

Code:

google.maps.event.addListener(markerName, 'click', function mojafunkcia() {
document.getElementById("neco").getElementsByTagName("a")[0].click();
})

I assume that html element cannot access that javascript function because it ist nested within other function (please see source code on turie.eu), but I'm not very skilled with javascript, so I'm not sure.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved