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'm using a text field to insert images into a table cell. I have 360 images. the text field uses the onkeyup to change the image. when I type the number 1, the appropriate image appears. But when I type another number, giving me say 17 nothing happens.
The function uses parseInt to access the value int the text field. I'm fairly sure the onkeyup function is not retricted the the first character typed. Why would the onkeyup not execute after the second character is typed?
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
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 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 have this function that doesn't work. I pass it the td element and an id, and it makes an input field inside the td. That part workds. What doesn't work is that I want to add an "onkeyup" on the input field. Any help? Please??? I don't get any error on my javascript console in firefox, and I am not seeing any errors in IE.
// makes an input field that submits itself using setCalendarValue() when it's blurred (it will be blurred if [enter] is pressed) function makeCalendarInputField(el,hoursId,which){ var id=el.id; ......
I have a field that use the 'remote' option to call a server sidescript to check the field value.If the field value is wrong, after each new key pressed, the remoteserver side is called.This could be very ennoying and increase the load on our server.There is a way to disable the "onkeyup" event only for a specificfield ?I have tried :
I have a site for property bookings with 2 calendars to enter start and end date. The calendar im using doesnt have any obvious facility to copy yhe date to 2 fields so each one has to be done, months in advance this can be a real pain.
Does anyone have any ideas how i can take the data inserted into one field and copy it to the second?
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'm trying to access a value from an input form. I know this works without the onkeyup event but with it it says the that document.formname.elementid.value is undefined! Its extremely frustrating. As the user types into the input, I am using AJAX to generate some more options which works but I need to be able to access the input type=text value.
I have a text field (field1) already displayed on the HTML page. However, there's a link where you can add additional text fields to the page as well. When the link is clicked, the second text field is added successfully (field2), and when the link is clicked again, the third text field (field3) is added successfully. However, the third field does not add itself to the page, and the text for anything greater than a third field also isn't displayed after. This obviously means that my "fields" variable is not working right
I currently have some buttons representing letters and a textbox. When a button is clicked, its value is copied into the text box. I have an onkeyup event which means that every time a button is clicked, a function is called which searches some arrays using the current text box value.
However, the problem I am currently having is that the onkeyup event which calls the function works if I type the value in using my computer keyboard, but not when using the buttons (even though the buttons enter values into the textbox).
How I can make it so that when I press a button, the onkeyup event triggers and the function is called?
I need when a user pick a checkbox the content in one field is copied to another field in the same form.I want when user marks or picks the checkbox the content from User1_Name is copied to User2_Name and so on.
i use a from in wordpress (tdo miniform) and in this form i copy the content of a field into another but when i remove the »check box is clicked«-thing it won't.i have manually trigger an event - can i do it automaticly?
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.
all i need to do is create a procedure that will copy the text from a text box, which i have created using the input tag, to the clipboard by clicking a button next to the text box. i know this is very basic, obviously my HTML and Java is gone so rusty as to be worse than a beginner
I have the user entering into a text area box but as they are typing into the text area I want it to replicate the first 250 charactors into an input (text) box.
Hello everyone... I've got a question about an onKeyUp event. I'm using a text box that HAS to be a negative number therefore it has to have a - sign in front of the number. Can someone point me in the right direction as to how to write a function to do this? Thanks so much...
I'ld like to create a web page, from which no one can select the text simply, copy frm there n paste at another location. In simple means, i'ld like to stop copy process from my web page.
I want to be able to copy certain text in a div class and copy it to another div. The div in question gets automatically generated by a wordpress plugin, and its called either .rating inactive or .voting. The text that gets generated is called, Rating: 4.5 / 5, I only want to be able to pick up the rating given by the user, in this example 4.5 then copy it to another div. It needs to do it automatically, with no onclick etc. Attachments rating.JPG Size : 20.93 KB Download : 287