I have a password text field, where copy paste from anywhere must be disabled. I have a textarea where the user must be limited to enter only 250 characters.
<textarea name="description" id="description" maxlength="250" rows="4" dojoType="dijit.form.SimpleTextarea" style="width:200px;overflow:auto;word-wrap:break-word;">${fn:trim(status.value)}
I have a form and I have a filed named password and its id= password and the other one is verify password. I want to make a function so that the user cant make (copy / paste ) or (ctrl+c , ctrl+x / ctrl+v) because many users on password field can try to copy the password and in the verify password filed they paste it again. I want to disable copy and paste in these 2 fields only.
I have a web form with several fields. If I copy & paste from a RTF document into a field, the javascript validation and field length are bypassed and cause the form to fail.
I have a form with 10 input text fields. In those fields the user has to put some values by typing them, but the user has those values in a excel file. Is any possibility to implement a copy/paste in order to help user complete all those fields automatically? What other choices do I have?
From any page, I want to be able to call a JS function that will do the equivelant of select all, and copy. This data will then be posted to a page that will log it.
This would be easy using copy/paste functionality but I don't want to screw-up users copy/paste buffer. Anyone have an example of how to retrieve all text with similar formatting of copying page to notepad without using copy/paste functionality?
In forms, we have all seen where people have numerous options to choose from in a SELECT field, or they can select Other, and type something in a different text field.
I would like to be able to disable this Other text field if the SELECT isn't on Other.
I know how to disable the submit button, but I don't know how, or even if, you can disable/enable a specific text field.
i want to display text in the password field like enter your password. i used
two text field one is for showing password and other one is password ,if user click the password text it get focus on password field it works fine in all browser but iphone it doesnt show the keyboard on focus how to resolve it .
Not 100% sure why or how to make this work.I have 5 options in a select drop-down. Only two of them are to disable a text field. I have written it successfully to disable on one option. How would I add the second option? I have tried many different ways, and i know its something small that i am missing.Below is the code that does not work but shows the 2 options that disable my text field.
<script type="text/javascript"> function type_disable() { var qr_type = document.getElementById('qr_type');
Is it possible to do this: when clicking a button, info is selected and copied to computers "cache" (don't know exact name) ready for pasting in other application like Word?
I am looking to take the information submitted into field A and add it to the end of the value of field B
Text Field A = Zip Hidden Field B - redirect = http://mydomain.com?&=<<<ZIP>>> <form method="post" > <input type="hidden" name="redirect" value="http://mydomain?l=<<<ZIP>>> "/> <input type="text" name="Zip" value='' "> </form>
When they put in their zip code, I need the script to add that information at the end of the redirect URL
How to make a form that automatic tab when we paste something into the box and sort it out automatically. Like cd-key box. When we copy n paste cd-key into the box it automatic inert everything into correct places.
I have two text fields, 1) Page Title and 2) URI. As and when the user types in the Page Title, I want the text to be copied straight into the URI text field, but after having made all letters small and replacing ' ' (space) with '-' minus sign.
This is what I have so far: <script type = "text/javascript"> function transfer(which) { reg = /s+/;
[code]....
case lowering works fine, but with space replacement, it only replaced the first space with '-', and leaves the rest of the spaces as they are.Hence, this is how it looks:
Page Title: This is my Pompous Page Title URI: this-is my pompous page title
How can I get it to continue replacing all spaces and not just the first one?
I am trying to copy a form that is in one frame, using a button on another frame. The form has a couple of tables inside it. I can get it working when the button is in the same frame, but not in different ones. I get an "invalid argument" error on the controlRange.addElement(x) line.
What I have so far is:
<script language='javascript'> function CopyForm() { if (document.body.createControlRange) { var x = window.parent.fraRight.document.getElementById('Fo rm1'); x.contentEditable = 'true' var controlRange; controlRange = document.body.createControlRange(); controlRange.addElement(x); controlRange.execCommand("Copy"); x.contentEditable = 'false' alert('The table is now copied to memory. Start Excel, and Paste the table into a new worksheet.'); } </Script>
where fraRight is the name of the frame the form is in, and Form1 is the name of the form I want to copy. The only thing I have changed from when it was working in the one frame, is:
var x = window.parent.fraRight.document.getElementById('Fo rm1'); used to be var x = document.getElementById('Form1');
I can do things like alert(x.name) and get the right name of the form, so I think I have got the object properly. Is there any other way to make sure?
I have implemented alpha & alphanumeric plugin in my code.I am doing this validation in few text boxes.my problem is, the text box don't allow copy paste in FireFox.. but its is allowing in IE.. What might be the problem with firefox..?
I have busy forum site where some of the spammers copy/paste the forum topics from other sites! I would like to disable copy/paste using Javascript! Its possible? How to do it!
I have a website that uses AJAX to generate data in an html table. I want to copy/paste the entire page into MS word and have the conents of the page be displayed exactly like how it is in the browser.
When I do, I get script errors in each cell of the table. I believe it is some compatibiliy issue with AJAX and word. If I remove all the ajax functions from the website's code, the copy/paste would work.
Anyone know how to make ajax be compatible with MS word for copy/pasting?
Unfortunately I can not post any links to this website because it is an internal website at my work. I do not have a personal webserver so I can not link any screen shots. I will in the near future if this gets too complicated.
This may seem an odd question, but is it possible to write a script in JavaScript or even Java to copy an image from one browser window and paste it somehow in another window? Or is it impossible for security reasons?
I need to limit the chars typed in a textarea to 160 (size of an SMS ) It works fine - as long as no one is copy-pasting text to it. Then my lil JS fails *boohoo*. So, could anyone help me out? Should I nail this to some other event than OnKeyPress or what?
[vbs] function LimitText(fieldObj,maxChars) { var result = true; if (fieldObj.value.length > maxChars) { result = false; }
if (window.event) { window.event.returnValue = result; }
i have developed a RichtextEditor using div tags as the container element. When this editor is directly used in a html page..the keyboard controls like 'Delete', 'Ctrl+X', 'Ctrl+C' are working..:thumbsup:. But when i used an iframe to load the editor then these keyboard controls are not working...
I used the copy/paste dropdown panel from this site, and I'm having trouble with it. Whenever I click the very top panel it drops down, but it moves behind all my other content. Heres my page currently [URL].
I have a popup window, and in that window i have some links
my question its:
then i click one of the link its have to copy in a form in a text field to anothersite. its the site there i get the popup..
1. have a site whit a form there are some text field and one of the field have a link to popup.
2. then i get popup and in the popup there are some links. so then i click on link, its have to copy this linie / Text then i click on it, its have to copy into the field in site"not popup site" the site there i have the form.
I'm having users fill out a form where there are multiple rows of data.
Some of the rows can have duplicate data for some fields.
So say on line 1) i have first name, last name as an input fields and some other fields as well, c, d, e, etc.
When the user gets to line 2) if they want to have the same first name and last name as line 2, can I have them check a box and it will automatically populate these fields with the info they just typed in line 1? I can't figure out how to do this.
I am creating a html table in JSP file . I need code for 'Cut,Copy,Paste' functions ie. if someone wants to copy data from my table to excel file or from excel file to html table he shud be able to do that.
Can someone give me code for 'Cut,Copy and Paste' i.e. some javascript functions which can do cut, copy and paste which i can put in my jsp file
Im trying to get a mouseover dropdown menu to work when I copy and paste the code all I get is the code where the buttons should be.When it does work I go to preview I get script errors.I am new to this html thing I am using frontpage 2002.This is the code I am trying to use and putting it in the body.