below is my code and i cant seem to figure out how i can loop the string and find the location of letter "a" in the string and display it like "1 3 17" ... i cant seem to figure out what i am doing wrong in the loop and keep getting "1 1" ... Thanks before hand!
I have the string in Javascript and now i want to make that string letter case. Means each first letter in caps of the string. for e.g. if following string is passed Is there any ready made function in javascript or can any one provide me reference for the same?
I'm developing a web app and I want to validate a users input on a form. I need a regular expression to validate a string which must begin with a letter (i.e. A-Z or a-z) and must have 5 numbers (0-9) after it....
Ive just started to learn JavaScript, and I have trouble to write JavaScript code which checks a string to contain at minimum one uppercase letter, one lowercase letter one number and one special character with no white space allowed.
I got a paragraph, and i want the letter of A will change to N and the letter of P will change to A when i click the link of the "click me to change the letter".
I got a paragraph, and i want the letter of A will change to N and the letter of P will change to A when i click thethe link of the "click me to change the letter" .My code as following,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head>
How do I create random 15 letter/number piece of text that is composed of letter and numbers jumbled together then automatically place that in a field? This is all of course activated by a link.
I have this hosting application on my website and people just seem oblivious to the fact that right next to the password input it says: "requires one uppercase letter, one lowercase letter, and one number"
I've tried to take the time before to locate a script, but I've never found a good enough tutorial.
I am having no luck with my post form to mysql. It is only posting the first letter of the word/phrase for the text input fields to the mysql database. It is a photo and text post form. The photo and only first letter of text are posting to database. I am using Jqtouch, jquery, and phonegap.
based on selection of radio button, i want to change the text box to enable and disable. And additionally, how to set if i enter a value in textbox1 then calculating something and display the result in textbox2 that to on key up.. not on form submitting.
I'm curious if there is a possibility of being able to search the whole document for a specific string using replace("that", "this") for example to find any reference to "this" and replace it with "that" and then show the modified content.
I'm a real newbie with Javascript, but I'm having fun. I just bought the book, "Simply Javascript" (have only just cracked it so far). I'm reasonably familiar with PHP (I use a lot of it to do simple things). I'm a Web desinger and do custom CSS Websites (I'm fairly new to that too couple of years or more working with CSS and I've never done a table based layout.
[Code]...
But when the button is clicked, nothing will call the showCaption() function again, and I can't figure out how to call that function as the images advance. I have tried a lot of things with a lot of weird results, one being the tne next caption will display in a blank browser window, without the Webpage! I'm not sure why that happens, but I have a clue.
Is there an easier way to do what I want to do? I only want to show a few lines of text that will describe each image. Seems simple enough to me, but I'm just too new to make it work.
I have the following plugin to "deobfuscate" an email:[code] At the moment I have two problems:
1.I want to being able to use other values than AT and DOT. So instead of having:email = email.replace(/ at /gi, "@").replace(/ dot /gi, ".");I would like to have something like:email = email.replace(/ options.At /gi, "@").replace(/ options.Dot /gi, ".");But this is not working. How can I make it work?
2.What the plugin does is replace:<span class="Email">name at domain dot com</a>[code]
I want to be able to control the first three characters of an input string on a login form. If a user types GP15555 or JP15555 I want it to change to GPL5555 or JPL5555 respectively changing the "1" to an "L" on the prefix
heres my code
</script> <script language="JavaScript" type="text/javascript"> //<![CDATA[ function Login(form) {
I am not very familiar with AJax, and for simplicity sake, I am trying a simple code. When I click the text box it should change the text and display "hello there", but it did not change. Is there something wrong with the code? I know this can be done with out using AJAX, but I want to test AJAX.page1.php
PHP Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
I have an input box with a 'did you mean' box that pops up under it, and it pulls it's results from another php page, however when a term with a space in it, such as "I am" vs. "Im" is entered, it stops working. This is the code I'm using to pull the results. So I made a added a simple string replace to change each space into '+'; search = $('#search').val().replace(' ','+'); search.keyup(function() { results.load('results.php?q=' + search); }); But for some reason it is only changing the first space into a '+'; so for example: "Hello how are you" = "Hello+how are you". But I need it to change to "Hello+how+are+you";
I am trying to learn SVG and I have alot of the basics including javascript manipulation. But I am really stuck on trying to manipulate the actual text itself.
I am trying to change the text "OMG" to say something else when you hover over it. For example: It says OMG, I want to hover over the text and have it change to WTF. Like you could do with innerHTML. anybody have any experience with SVG
I have these two functions below and when i try to change the back url string value on the main server to check_out.php like it is on the dev. environment nothing happens. It keeps going back to the myaccount.php. It works fine on the development environment.
function stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")[code]....
<script type=text/javascript> function hide_tooltip(){ var hp = document.getElementById("tooltipper"); hp.style.left=0; hp.style.top=0; hp.style.width=1; hp.style.height=1; hp.style.padding=0; hp.style.border=0; hp.innerHTML=""; } function show_tooltip(event,wid,ht,txt){ var vp=document.getElementById("tooltipper"); vp.style.border="1px solid black"; vp.style.left=event.clientX+25; vp.style.top=event.clientY-1; vp.style.width = wid; vp.style.height = ht; vp.style.padding=10; vp.innerHTML=txt;
}
</script>
</head>
<body> <BR><BR> <form>
<a href=# onmouseover="javascript:show_tooltip(event,400,10,'This is an input text box that you need to fill in.');" onmouseout="javascript:hide_tooltip();" style='color:red'><input type=text name='bob'></a> </form> <div id='tooltipper' style='position:absolute;left:0;top:0;width:1;heig ht:1;border:0;background-color:rgb(250,250,255)'></div> </body></html> ===================================== Question:... Is there any way to insert a NewLine in the text string to control the formatting of the text in the window??