473,568 Members | 2,882 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript Forum

JavaScript web scripting language - Ask questions about JavaScript development, jQuery, Vue, React, the DOM, cross-browser scripting, event handling, OOP, cookies, client-side form validation, built-in objects like Date, String, Array and Object, performance and more.
1
1,366
thread by: Steviebone | last post Sep 12 '13 by: 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 might do in order to open the link in a new window/tab. Firerfox handles this...
6
1,795
thread by: Steviebone | last post Sep 11 '13 by: Dormilich
I am using XMLHttpRequest as a simple one way ajax logging function. No server response is needed. The request does not cross domains. This code works as expected in IE and in Firefox var client2 = new XMLHttpRequest(); client2.open("GET", "program?url=c",true); client2.send(); alert('sent'); return true;
0
1,374
thread by: astewes | last post Sep 9 '13 by: astewes
My bxSlider horizontally spans 100% of the browser width - multiple (image) slides display across the viewport, with "moveSlides: 1" set in the options. A total of 8 slides are being rotated. As I click the "next" arrow to progress through them, something odd is happening at the end. As the 8th slide initially enters the viewport from the right...
0
1,315
thread by: Jmaes Wang | last post Sep 7 '13 by: Jmaes Wang
I need to detect mobile browser screen orientation change. It's interesting that the following javascript can detect the orientation change from portrait to landscape but not the opposite. Why? <script type='text/javascript'> detectOrientation(); window.onorientationchange = detectOrientation; function detectOrientation() { ...
2
2,033
thread by: abitex23 | last post Sep 7 '13 by: pandu13
How to add 2 numbers together in textbox and automatically display the answer inside the 3rd texbox without click on any button
1
1,268
thread by: hayasamreen | last post Sep 5 '13 by: Dormilich
Request to server in one frame and during requesting grey out this frame and response is painted in another frame. after getting response restore the screen from shading.
3
1,432
thread by: starlight849 | last post Sep 4 '13 by: starlight849
I'm having some trouble with the site I'm developing. Here is the link: http://www.r2maker.com/r2maker/index2.html As you can see the fourth image is really buggy and I'm unsure of how to fix it. Here is the code for that one area only. Here is my css
3
1,936
thread by: shashikala | last post Aug 30 '13 by: Dormilich
hey all, I am working on a project in advanced java using netbeans in which i need to calculate the latitude and longitude of an airport into cartesian coordinates. i have no idea to that, well math scares me. any idea how to do the conversion? can that conversion code be converted into a javascript function? further i need an advise too. how...
8
2,467
thread by: shashikala | last post Aug 30 '13 by: shashikala
Hi all, I need to display a table column values using rs.next in jsp. Now i want to use these entries as links to show the hide box that contains other information corresponding to that column value. Is there any way to do this? The method which i am using displays hide box corresponding to each column value. Bur i want that it only displays...
2
1,481
colinod
thread by: colinod | last post Aug 30 '13 by: colinod
I have a CSS menu that works fine until i use images for the main buttons when the sub menu does not stay open any longer. html is <ul id="nav"> <li class="dropdown"><a href="javascript:void(0)"><img src="http://bytes.com/submit/images/artistnav/Accents.png" id="accents"></a> <ul class="dropdown-menu"> <li><a...
2
1,711
thread by: deepaknegi | last post Aug 30 '13 by: Exequiel
Guys. I have a jquery dialog box for forgot password which is opened on click of a link. As i submit the form the message is printed saying "your password has successfully been changed" and the dialog is closed. it is set by using --------------------------------------- document.getElementById("<div id>").innerHTML =xmlhttp.responseText;...
3
3,372
thread by: salsan | last post Aug 28 '13 by: salsan
As from the IE11 onwards they removed msie from the useragent string, how can we detect we are on the internet explorer from the JavaScript? Reference: http://msdn.microsoft.com/en-us/library/ie/bg182625(v=vs.85).aspx http://mildcoder.com/detect-browser-in-javascript/ Any help would be highly appreciated.
2
1,376
thread by: navyajain | last post Aug 28 '13 by: hosting charges
adding the 4 textbox values which is multiple of 2 values and display the total in another textbox. please if u know the code send to me..
5
1,166
Blue1244
thread by: Blue1244 | last post Aug 24 '13 by: Blue1244
It doesn't want to give the "correct" alert box. It always gives me the confirm("Incorrect");. <!DOCTYPE hmtl> <html> <head> <style> #button2 { display: none;
7
1,635
Blue1244
thread by: Blue1244 | last post Aug 24 '13 by: shadowstrike
How do I redirect from one html/js document to another within a function? I am trying to reduce the amount of code within one function so I don't get confused. Need help. If you need my code ask and I will post. <!DOCTYPE html> <html> <head> <title> Math Game </title> <style> </style>
23
1,513
Blue1244
thread by: Blue1244 | last post Aug 22 '13 by: Dormilich
Hello, I'm 13 trying my luck with js. I am trying to make an in browser game. It is a simple math game, just basic stuff.I am trying to have a list of buttons on the webpage, but you need to go down in order without being able to pick question two instead of question one. How do i make the other buttons inactive until completion of the first...
1
1,312
thread by: darrylw99 | last post Aug 22 '13 by: Dormilich
Ive been handed a diagram with circles surrounding an inner circle with arrows pointing away or inwards or both way. On two of the outer circles is it possible for the user to draw a line between these two circles showing directionality? and for my ASP code to store wether they drew a line from Circle A to Circle B (or vice versa)
7
1,632
thread by: azegurb | last post Aug 19 '13 by: Rabbit
Hi All, I have taken from net dropdown menu script understood it but not completely. below is html file but there i dont know the isContained function role. Can anyone help me undertand this function. files are attached in zip format I will your responses. Thanks in advance
0
1,566
Mike Kypriotis
thread by: Mike Kypriotis | last post Aug 18 '13 by: Mike Kypriotis
So i found this script which does exactly what i want http://cssglobe.com/lab/tooltip/02/ (downloaded from its homepage at http://cssglobe.com/easiest-tooltip-and-image-preview-using-jquery/) only problem is that the bigger image is not entirely shown in browser (aka viewport as i found here) if image too big or thumbnail near browser edges. After...
3
2,046
pgrDaniel
thread by: pgrDaniel | last post Aug 18 '13 by: Dormilich
Here is the HTML doc: <!DOCTYPE html> <html> <head> <title>Testing a webpage</title> <link rel="stylesheet" type="text/css" href="myStyle.css"> <script src="converter.js"></script> </head>
0
1,331
Exequiel
thread by: Exequiel | last post Aug 15 '13 by: Exequiel
My problem here is that the scroll bar is not staying in bottom, after loading the data using ajax the scroll bar still on top. but when i place the code for positioning the scroll bar at the bottom before doing the function see_message_toreply(deskid); it works, but after doing this function its not working. . can any body help me my problem?:) ...
3
1,348
Exequiel
thread by: Exequiel | last post Aug 14 '13 by: Dormilich
Hello friends, i want to know how to detect the enter key in my keyboard, if i pressed the enter key it must alert("You pressed enter key"); any reply are gratefully appreciated. . :) thanks. . :)
1
1,240
thread by: deeceew | last post Aug 11 '13 by: Rabbit
I'm new to programming and I am using a restrict function to help validate user names and email addresses on my signup page. But when I enter text in the form fields, the ajax never finishes checking to tell me whether or not a potential username is okay to have. Filling out the form and submitting it does not get the page to change, load or...
1
1,526
thread by: bhaveshace | last post Aug 8 '13 by: Dormilich
Hello Please help me When I click on browser close at that time open pop up on that page
7
1,500
thread by: LugNut29 | last post Aug 8 '13 by: Dormilich
Hello, I have to validate that there is information and radio buttons have been selected. Also, I need to be able to reset the text boxes. When I click the submit button, it does not do the validation and when I click the reset button, it does nothing. Here's what I have, but it doesn't seem to work? Please help me with this. Thanks, Tom ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.