473,544 Members | 1,508 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.
6
5,090
thread by: rakesh2k78 | last post Mar 21 '13 by: sai163
Hi All, I have a requirement where I need to fire an ajax call(dojo xhrPost)on click of an anchor, but as soon as I click the anchor link browser starts to redirect but ajax call is not finished yet, so I always got bad http return code 0 from the server. I can see in the firebug/developer tool. Is there any way to stop browser redirect until...
0
1,435
thread by: ravishankarsm | last post Mar 21 '13 by: ravishankarsm
I have used jquery-1.8.3.js package for appending a table to body. It works good in Mozilla Firefox and Google Chrome >> But Not in IE 6.0 and above >> API used is body.append({table content}). Following is my jquery script which gets executed on window scroll. Please put some light on this $(window).scroll(function () { var...
5
2,786
thread by: Monomita Har | last post Mar 20 '13 by: acoder
little background: currently putting together a website that is selling products, many of which come in various sizes, with respectively different prices. I have the database set up to handle all of this. However, my issue is thus - how can I go about dynamically changing the product type from dropdown on the product's page, based on the user...
6
1,294
thread by: ekeskini | last post Mar 20 '13 by: ekeskini
I want to check if somebody who has open my page in a browser ,opens other applications at the same time. Does anybody knows how can I check it in javascript. I have thought about lostfocus but I dont know how can I use it.
6
1,555
thread by: hrstissiaopai | last post Mar 18 '13 by: jmrker
I am making a game with JavaScript and it is just prompt after prompt asking you questions to make decisions, such as: var turn=prompt("Will you turn left or right?"); if (turn="left") { document.write("You chose to turn left!"); window.location="nextchoice.html"; } if (turn="right") { document.write("You chose to turn right!");...
1
1,397
thread by: aperez74 | last post Mar 17 '13 by: Dormilich
I'm using this coding to have someone enter text; if they have not entered anything when the click the button they get an alert box asking for some input. What I want is to send them to a New web page once they have actually entered something. I have tried <a href....but it appears on the page; I don't want that. I just want an automatic...
1
1,832
thread by: hrstissiaopai | last post Mar 17 '13 by: Dormilich
I know that they are completely different languages, but where does the similarity in the name come from?
1
1,289
thread by: hrstissiaopai | last post Mar 16 '13 by: divideby0
I have previously said that I am making a game that is text based with javascript, and I got a bunch of helpful replies, which told me to use a loop, but I do not know what loop exactly to use and how. Here is the context that I am using it in: var turn=prompt("Where do you want to turn? Left or right?"); if (turn=="left"){ window.alert("You...
3
2,342
thread by: notfound | last post Mar 13 '13 by: acoder
I have this ajax code for getting json from Jobs.json file. $(document).ready(function(){ $('#btn2').click( callJobs ); }); function callJobs() { alert("getting results...");
3
1,622
thread by: notfound | last post Mar 13 '13 by: acoder
I wrote XMLhttpRequest function for making a ajax POST.When I add new job this function is called and added job is also shown in HTML.The code is below. function req_add() { var hr = new XMLHttpRequest(); var url = "To-Do.php"; var content = document.getElementById("content").value; ...
1
1,765
thread by: anjanagol | last post Mar 13 '13 by: Rabbit
How to autoclick a button in one page while clicking a link on another page of php Help me tackle this problem........
7
2,214
thread by: Unkno | last post Mar 13 '13 by: acoder
I have done this code in shrepoint 2013 script editor it does not support in mozilla ,chrome etc but it worka fine in IE.. PLEASE GIVE ME SOLUTION FOR THIS IMMEDIATELY <html> <head> <SCRIPT type="text/JavaScript"> var scroller_msg='Hello guys!!!!!!!' var dismissafter=0 var initialvisible=0
5
1,427
thread by: simum | last post Mar 13 '13 by: acoder
This code works very fine in i.e but not in firefox and chrome <html> <head> <script type="text/javascript1.2"> var message="Welcome to my Page!"; var neonbasecolor="gray"; var neontextcolor="#F6EE0A"; var flashspeed=100 ;
1
10,741
thread by: Najim72 | last post Mar 13 '13 by: acoder
i created a simple form with dynamic table , this table rows increments by the user input values , so i want to collect this table columns data whatever it's rows number and ALSO i need to increment the combo box or the select(option) every time a new row created so it should be like default combo box values . Here is the code: <html> ...
1
3,024
thread by: Seven | last post Mar 13 '13 by: acoder
Hi.. I'am encountering a problem with this code. <form method="post" action="http://bytes.com/jf.php"> <select name="category" onchange="this.form.submit()"> <option value="" selected>Select a category</option> <?php mysql_connect("localhost","root",""); mysql_select_db("test"); $category = "SELECT * FROM...
1
1,077
thread by: Trisha8 | last post Mar 13 '13 by: acoder
i have a string variable which contain value. now i want to access text to which this value belongs. Any idea?? <select> <option value="v">Volvo</option> <option value="s">Saab</option> <option value="m">Mercedes</option> <option value="a">Audi</option> </select> suppose variable=v then i should be able to alert 'Volvo'.
2
1,575
thread by: satishpatil14 | last post Mar 11 '13 by: james2012smith
how to store server fetched data in array using JavaScript and HTML? please give reply to this.Thanks in Advance
2
1,702
thread by: ashnee28 | last post Mar 10 '13 by: afroz ahmad
how do you get the value of textfield1 to appear on textfield2? for example.. during registration/when filling up a form: firstname: //input type.... name="fname"// john lastname: //input type.... name="lname"// smith
3
2,391
thread by: HTIDIRECT | last post Mar 9 '13 by: jmrker
I am currently creating a form that requires me to have multiple comboboxes which have various options with different values. What I am having a problem with is finding a javascript snippet that will allow me to add the total value of all the comboboxes based on the selections. I have an editbox at the bottom of the form where I would like...
10
2,054
thread by: carlymr75 | last post Mar 9 '13 by: jmrker
I will have three text fields; all numbers. 1st A 2nd 4*B 3rd C I need to divide the above by 6. The results show display in a separate results text field
3
7,561
thread by: mahesh18k | last post Mar 8 '13 by: acoder
string url = string.Format("window.open('PSAContractSelection.aspx?appTitle=(0)&appName={1}', '_blank','toolbar = 0,menubar = no,scrollbar = no,mainmenu = no,height = 800,width = 920')",ddlList.SelectedItem.Text.Trim(),ddlList.SelectedItem.Value.Trim()); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "newWindow",url ,...
1
1,880
thread by: AnujGuleria | last post Mar 8 '13 by: acoder
how to toggle jqplot legend with cross sign on click event?
1
1,732
thread by: Quantomswag | last post Mar 7 '13 by: acoder
im making a fun website and what i want to do is to close a browser with out a close button after the java script alert with out a confirmation pls help?
2
1,735
colinod
thread by: colinod | last post Mar 7 '13 by: colinod
I am trying to build a JQuery menu using a list element. I can get the elements to appear when my mouse hovers over the top button but they dissapear before i can get to the sub menu buttons JQuery is as follows $(document).ready(function(){ // Hide all unordered lists that are descended from the navigation $("#artistnav...
1
2,513
thread by: Manjjujan | last post Mar 7 '13 by: gits
HI.. I have an iframe inside the DIV element. EX:: <div id="UPGRADE_LICENSE" style="display:none;width:575px;"> <iframe id="UPGRADE_LICENSE_SRC" scrolling="no" width="100%" height="550" src="/html/blank.html" frameborder="0" align="center" ></iframe> </div> Inside the Iframe i have a div and onmousedown function on it. that function not...

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.