473,543 Members | 3,135 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.
8
5,843
thread by: yateesh | last post Feb 1 '13 by: yateesh
I have list of Areas . <ul> <li><a class="my-button" id="a1" href="#">Area1</a></li> <li><a class="my-button" id="a2" href="#">Area2</a></li> <li><a class="my-button" id="a3" href="#">Area3</a></li> <li><a class="my-button" id="a4" href="#">Area4</a></li> <li><a class="my-button" id="a5" href="#">Area5</a></li> </ul>
1
9,041
thread by: ahmetsan | last post Feb 1 '13 by: gits
I am trying to measure download speed with ajax call. Here is the my code var start = new Date(); $.ajax ({ url: 'https://www.example.com/perftest/dummyFile1024', cache: false, success : function() { var total = (new Date() - start) alert(total) }, error : function(jqxhr, status, ex) {}
4
1,454
thread by: azegurb | last post Jan 28 '13 by: azegurb
hi All, I have question around Douglas Crockford "method" method. Function.prototype.method = function (name, func) { this.prototype = func; return this; }; function azerizor(value) { this.value=value; }
2
2,176
thread by: sunhouch | last post Jan 25 '13 by: Frinavale
hi, i want to know how to pass selected value from dropdownlist of child page to a multiline textbox on the parent page. in my code it is giving me the "id" of the selected dropdown value in the text box.
2
2,040
thread by: inusm | last post Jan 25 '13 by: Dormilich
I'm pretty new to JS but I want to make a very basic RPG item generator that is controlled by probability. This is what I have come up with. I have a problem with the itemtype part. After the probability roll is done for itemtype, I want to randomly generate a group of elements under weapons, accessories, and armors. It should be something...
3
1,777
thread by: fourroses | last post Jan 22 '13 by: fourroses
I have a topnavigation with some links and I have some hidden contentfields. When I click on a link it animates the selected contentfield from bottom:-600 to bottom:0. When I click on a other link, an other contentfield shows, **but I need it to hide the other..** This is my site http://tiny.cc/3zppqw where the contentfields do pop up...
8
4,339
thread by: ahmetsan | last post Jan 21 '13 by: ahmetsan
Hi I am trying to measure download speed from server with ajax call and xmlwebrequest, I download a 1 mb file and check the total time. However it shows just response time from server and doesn't wait until all file loaded for 2 methods I showed below. What am I doing wrong? Any other ways are welcome. Thanks... First method I am tring is ...
4
2,426
thread by: spv2 | last post Jan 20 '13 by: Dormilich
Hi, This is my code $("#<%=imgBtDone.ClientID %>").click(function(e) { var button = document.getElementById('imgBtDone'); button.addEventListener('click', function () { alert('test'); }, false); }); here addEventListener not executing.
1
1,708
thread by: khosrojerdi | last post Jan 20 '13 by: Anas Mosaad
please help me I send parameters to another page by window.location="private1.asp?userid=" + document.getElementById('userid').value&"name="+username; but i don't know how can i use parameters in private.asp
2
1,700
thread by: kato3080 | last post Jan 19 '13 by: Anas Mosaad
I need help determining if a entered date in a text field is 30 days from a date in another text field, and less than 45 days from the other date. Any one have any ideas?
2
1,708
thread by: vbhavesht | last post Jan 19 '13 by: Anas Mosaad
i want to checked whether user entered data is only in character form.. means user not allowed to enter numerical data into textfield. if user enter numerical data then give alert message.
6
22,320
thread by: tonySAN | last post Jan 19 '13 by: kul1010
Hi, I have the following code which works fine in IE but does not in Firefox: <html> <head> <title>space-plus</title> <script type="text/javascript"> <!-- function alpha(e) { if(e.keyCode==32) {return (e.keyCode=43);} } // -->
2
1,861
thread by: sindhureddy | last post Jan 17 '13 by: Rabbit
I need to pass parameters from child window to parent window.But they are in two different domains
4
2,121
thread by: dawsoad | last post Jan 17 '13 by: dawsoad
I am having an issue where if a user hits backspace in a readonly input field, then page goes back in the browser history. Essentially, we navigated away from the curent page to the page that preceded it. Doing a little research online I found that this was a bug found when using IE (7 or 8); which my users may or may not be using, but I am...
1
2,540
thread by: reem313331 | last post Jan 17 '13 by: Anas Mosaad
i saw this code in this website and it worked but i want to make a fading effect !! plzz help :) <html> <head> <script language="JavaScript1.1"> <!--
1
2,474
thread by: Aetos | last post Jan 16 '13 by: acoder
I have a php form with several text fields which retrieve the data from a selected record in my database. I would like that if the user edits the data in the fields in some way, and tries to leave the page by clicking a link, clicking the back button or refreshing the page, they would be prompted that they have made changes to form and that they...
3
1,533
thread by: pcmarket | last post Jan 15 '13 by: pcmarket
How can I check validation before submitting the form. </script> </head> <body dir="rtl"> <form name="form1" action="pay.php" method="post"> <table align="center" cellpadding="0" cellspacing="0" width="100%"> <tbody>
4
2,832
thread by: nidhidagar | last post Jan 11 '13 by: nidhidagar
I am trying to implement the hide/show functionality in one of the sharepoint page. example: there are few block of data in a page..i want to have a two links say link1 and link2. when i click on link1 the block1 data should display and block2 data should hide..similarly when i click on link2 block2 data should display and block1 data should...
4
8,280
omerbutt
thread by: omerbutt | last post Jan 11 '13 by: omerbutt
hi i have a problem i was using version 1.3 for jquery and i upgraded it to 1.8 and suddenly my code became buggy , i had 2 radio inputs with the name representative_select <input name="representative_select" type="radio" /> and i need to check that if any one of these radio buttons is selected or not my previous working code was ...
2
1,364
clain
thread by: clain | last post Jan 10 '13 by: clain
Guys , Here is the situation, My client want to show guided tour on his web page. The tour is a set of instructions "A Dialogue balloon" that moves from one position to another. What I am trying to do is find the position of an element with respect to the document and set its position to the dialogue box , so that the dialogue box appear...
5
2,850
thread by: Susmita swasti | last post Jan 8 '13 by: Anas Mosaad
i just want to refresh a select list on button click .Dont want to reload the page.
6
2,972
thread by: StoneCold | last post Jan 8 '13 by: StoneCold
Hey guys, I need to make a calculator I have buttons for 0-9, digits = button, . button and have +, -, *, /, modules and square root operators and CE, M+, M- and backspace. I have made the interface. Now all I want is make the javascript code. It will be simple, I need a function for each and every operator. and also a switch case. can you...
2
4,524
thread by: arundhatirao | last post Jan 6 '13 by: Anas Mosaad
i have a normal text field in 1.jsp and a hyperlink to 2.jsp. i need to send the value inserted in the text field from 1.jsp to 2.jsp through the href written in 1.jsp. plz guide me how.
2
1,796
thread by: murali0721 | last post Jan 5 '13 by: Anas Mosaad
var str = document.forms.elements.value; // alert("Str length"+str.length); var str1 =str.replace(//g,'');; // alert("Str1 length "+str1.length); document.forms.elements.value = str1; // alert("b4 submit "+document.forms.elements.value); document.forms.elements.value ="insertWhiteBoard"; ...
1
1,968
thread by: AC Patel | last post Jan 4 '13 by: Dormilich
I have made mant types of fields in a form and can reset it with no problems but the select field will not reset Acutally it does reset but it will not return to the default value can anyone tell me where i am going wrong here is the code <html> <head> <meta charset="utf-8"> <title>Starter Page</title>

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.