59 Topics

Member Avatar for
Member Avatar for Jon_7

I'm not extremely great at coding, but I'd like to have players in my basketball program be able to copy and paste some code (on their phones) from a textarea. The catch is I also want the button to turn green and say the words "Copied! Now open the app …

Member Avatar for pdsubbu
0
380
Member Avatar for munchlaxxx

This is what I was trying to do: The user enters an address, which is autocompleted by Google. Then when they press the submit button, an alert box pops up, telling them whether the address entered is within 5 miles of (42.352487, -71.079290). Then a confirm box pops up asking …

Member Avatar for AleMonteiro
0
1K
Member Avatar for wfray

This code works perfectly in IE 7 and above. The PHP/HTML code has a button to delete/undelete some data. When the icon/button is clicked it enters the javascript function "setdelete". The following HTML code sets up the button for entry into the javascript function. <button id="$delete_icon" value="Delete" onclick="setdelete($key)"><img id="$m_d_img_name" src="images/x_undelete.ico"/></button> …

Member Avatar for wfray
0
306
Member Avatar for garyjohnson

I have a link that once clicked is suppose to make a div visible. So far it does but it only makes the div visible for a second then it returns to being invisible. I gave the div the value `display:none;` in Css and the javascript gives it the value …

Member Avatar for hericles
0
987
Member Avatar for ankit.baphna

Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add …

Member Avatar for patk570
0
198
Member Avatar for ankit.baphna

Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add …

Member Avatar for ankit.baphna
0
415
Member Avatar for nadiam

hey guys so i have these drop down menu using ul and anchor and when i click on one an image should be displayed. the problem is when i click it the image appears but then disappears right after, like a second. html: <ul> <li><a href="" onclick="document.getElementById('banquetsix').style.visibility='visible';">6 Seater</a></li> <li><a href="">8 …

Member Avatar for patk570
0
846
Member Avatar for Ricky_2

I'm try to make javascript onclick function in php file.the result is make an alert window in my page. but nothing happen.please help me. this is my code: <script type="text/javascript" charset="utf-8"> $('#printdata').click(function() { datastring = {customer :'val', person :'val', address :'val', phone :'val'}; $.ajax({ type:'POST', url:'print.php', data:datastring, cache:false, success:function(){ alert('?????'); …

Member Avatar for diafol
0
235
Member Avatar for Julia25

i have two product categories which customer can preview when click, and wish to show a message on each item. Ive found a nice script but need help to make this in 2 sets. need help. Happy new year! <!DOCTYPE html> <html lang="en"> <title>Untitled Document</title> <script type="text/javascript"> var current = …

Member Avatar for Airshow
0
469
Member Avatar for Eagle.Avik

hi, i want to change the image class on click on the image, i am also using radio input, here is my fiddle, check out and tell me what is wrong? [http://jsfiddle.net/Avik/7aKY3/1/](http://jsfiddle.net/Avik/7aKY3/1/)

Member Avatar for Eagle.Avik
0
335
Member Avatar for corestaples

Hello, How would I be able to do an onClick to take a value from a link and put that into a form field in another form located in a different browser window with a different url? For example: window 1 /browser A <a href="#" onClick="takeThisValue();">thisIsTheValueIwantToUse</a> window 2 /browser B …

Member Avatar for JorgeM
0
274
Member Avatar for Steviebone

I am using a simple ajax routine to notify a server of click thrus. This routine passes information about each link on a page when it is clicked to the server which logs information about the click thru. The code works fine unless the CTL key is pressed as someone …

Member Avatar for Steviebone
0
277
Member Avatar for jelly46

I have built a large from and I have just discoverd my <button></buttom> does not work as a link I am using <button onclick="window.location.href='myurl'">Next</button> , but it is not working Help.

Member Avatar for IIM
0
238
Member Avatar for xpertj007

how can i change my background image by clicking on another image use as a button with jQuery... please help

Member Avatar for pritaeas
0
180
Member Avatar for scholarwithfire

Im new to Javascript stuff especially on JSON and Jquery. I have successfully implement the monthly view of FullCalendar but is there anyway to show or pop up the dayview based on the date when user clicked on monthly view? Any help would be much appreciated.

Member Avatar for LastMitch
0
130
Member Avatar for abby.delacruz.927

Guys help me with this code. I don't know what to do. I have 2 div the 1st is in the left and it has a button and on the other div is to show/display when I click the button on the 1st div. <html>// this is my index.html <head><title> …

Member Avatar for JorgeM
0
308
Member Avatar for tibormarias

Dear Sirs, I have been playing around with this so far, and couldn't get a good solution. Well I have my simple code : <html> <body> <a href="#" onClick="document.write('P');>P</a> <div id="a">a</div> </body> </html> Well, normally, this onClick event directs us to a new empty page showing a 'P'. I want …

Member Avatar for JorgeM
0
1K
Member Avatar for fheppell

I have created a CSS solar system. Along the bottom is a list of planets. When you click on a planet name it goes to '#[planetname]speed' this is not set with JS. When you click on a planet's name I want a separate hyperlink (which would be 'info')to add an …

Member Avatar for Dragennd
0
152
Member Avatar for jckb188

I have resorted to everything I can think of and I can't get a PHP variable to go into a form that is onclicked with a Javascript Function... Here is my attempts thus far: 1. Give the div that contains the onclick function the php variable as an id, and …

Member Avatar for Airshow
0
313
Member Avatar for jckb188

Hello, I have found lots of examples on how to display a form field onclick, but none if I want to display an entire form onclick of a button. I am having difficulty figuring out where to put the form along with all of its form fields, in the head …

Member Avatar for aspirina
0
2K
Member Avatar for Kniggles

Hi , I have a gif of a moving ball (ball.gif) that plays once on loading, and when clicked it playsthe sound file (ping.mp3),but duz not move the ball. 1.How duz one get the ball.gif not to play on page loading ? and 2.How can you make ball.gif play with …

Member Avatar for Kniggles
0
197
Member Avatar for spivey

I have a php foreach loop that displays a span element with a name in it, and an associated input field for each item in the array being iterated through. There is an onclick so that the value is passed to the associated input field: <span onclick="setAuthor(this)">name</span> Here is the …

Member Avatar for CoursesWeb
0
169
Member Avatar for Que336

Hi guys, please help me out with this. I'm seriously considering suicide. I have three buttons that load numbers into divs. The problem I'm having is that the buttons only seem to work once. Any idea as to why this is happening? You help will go a long way. [CODE] …

Member Avatar for Que336
0
4K
Member Avatar for Cornwell

I've searched Google and although there are several hits in this general area, none matches my issue. The problem is on [URL="http://stmarytheboltons.org.uk/hall/index.html"]this page of a church web site[/URL] where they are hiring out the hall. It's supposed to cycle through four pictures and that works in Firefox and Chrome and …

Member Avatar for Cornwell
0
1K
Member Avatar for Que336

hi I'm having serious problems with this code. It all started when I tried to use functions. The function easy() works fine when the page loads but the button has stopped calling the check() function. could it be because I have that stored inside another function? I tried placing outside …

Member Avatar for Troy III
0
1K
Member Avatar for Ksrinivas92

I am trying to create a webpage which does the following: 1)Has an image,which has an onclick javascript function f1() and an image map with a link pointing to a javascript function f2(); 2)updateAnim() is an "animation" it changes the image sources some 30 times 3)f2() is any function(trying with …

Member Avatar for Ksrinivas92
0
202
Member Avatar for freakybeavis

Admittedly I am only a beginner at playing with java but I'm pulling my hair out trying to understand something I thought would be easy, and it probably is. Trying to write code that randomly selects from 3 preloaded arrays and spits out the results. Mechanically the code seems to …

Member Avatar for javaAddict
0
156
Member Avatar for DevNet

Hi guys, I'm new here so please help me. I wanted to create a memory game where in the user clicks on two images and matches them. However, in the middle of creating it I encountered a weird problem - whenever I set the "Visible" property of the PictureBox on …

Member Avatar for Mike Askew
0
1K
Member Avatar for ben_dajao

[CODE]<td id="table-cell"><label> Travelers: </label></td> <td id="table-cell"><input type="button" onClick="" name="" value="Add Traveler" /></td> [/CODE] I need an ajax/js function that will generate an input form to be filled up when the Add Traveler button is clicked. (not open a new window but generate it on the [COLOR="Green"]same page[/COLOR]) So, I want …

0
114
Member Avatar for Virangya

why isn't this working? [CODE] $('body').find(".overcolor").click(function(){ alert("hi"); }); [/CODE]

Member Avatar for stbuchok
0
142

The End.