473,544 Members | 1,213 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.
3
3,051
thread by: miniaudios | last post May 12 '13 by: acoder
Friends, please help! Visit http://122.160.84.132/ this page asks user name(Auto filled - admin, password(set as blank) I want to bypass this page using an external link on some other website so that user don't see this page and redirected to next page. How to get this implemented.
2
1,269
thread by: Dhanush | last post May 12 '13 by: acoder
how do i delete a file using JS/Ajax. Specs is that no ActiveXObject is to be used.
1
2,418
thread by: wffger | last post May 12 '13 by: acoder
I use the prettyPhoto. I open an External page B(iframe) in the page A. Then I want to click an button and submit a form to a .php page C. How can I close the page B and return to the page A just like I click on the black background around the iframe, after I submit the form in the page B?
5
1,278
thread by: Shepard | last post May 10 '13 by: Rabbit
I want a date field to be validated and this is my code: It has From date & To date: <script>function checkdate(frmdt,todt){ var validformat=/^\d{2}\-\d{2}\-\d{4}$/ var returnval=false if(!validformat.test(frmdt.value)){ alert("Invalid frmdt"); document.form.frmdt.value=""; }
3
2,524
thread by: RamyaMuru | last post May 8 '13 by: Dormilich
Hi, I have application.exe in http://folder/application.exe I used the following java script and html code to insert into my webpage: <SCRIPT Language="JScript"> function runcmd() { File="http://myfolder/application.exe"; WSH=new ActiveXObject("WScript.Shell"); WSH.run(File); }
1
1,444
thread by: AngelaMarie | last post May 6 '13 by: Dormilich
Is there any mac compatible software available to convert JS to PHP? Is this even possible?
3
1,233
colinod
thread by: colinod | last post May 2 '13 by: colinod
i have this page with a opacity change on mouseover that when a picture is half under the top navigation and you mouseover it it brings the faded image over the navigation?? http://www.yaketyyakallmouth.com/newpages2/everyone.asp?id=All any ideas? thanks
1
1,228
thread by: ajithrockz | last post May 2 '13 by: Dormilich
Hi, I am using asp.net. In that i used both master page and aspx page. what is my problem is, I have written the script in master page and in aspx page i have used the onclientclick event. here is my code. MasterPage.Master: <script type="text/javascript"> function LoginValid() { alert("hai"); var...
3
1,422
Claus Mygind
thread by: Claus Mygind | last post Apr 29 '13 by: Claus Mygind
Using FireFox 19.0.2 I have noticed that when I set .scrollTop = 0, the content is indeed loaded showing the top of the content. However the scroll bar, is left at the location where it was when last viewed. How can I make sure that both the content and the scroll bar (slider) are set to 0 (top of container)? The content is contained...
2
2,122
thread by: raamay | last post Apr 27 '13 by: johny10151981
I have multiple check box and when i check one of it, ajax call is triggered to fetch record pertaining to that id of the check box. Now my problem is that i can have multiple check box being checked and in that case i find the ajax returning records of the last box checked. db records pertaining to other check box is lost. Can i have a way to...
1
2,576
thread by: ahmednawazbutt | last post Apr 27 '13 by: johny10151981
I have an .htm page wwhich consits of a frame with 0 border,width and height Now, when I enter a key,i.e onkeyup (keyboard pressing)event occurs, the form is submitted to asp.net page, which retrieves information and stores in a varriable.I use that asp.net varriable and using javascript in my .htm page and it works fine. the Problem is that...
3
3,874
thread by: hrstissiaopai | last post Apr 25 '13 by: hrstissiaopai
One very important part of almost all computer languages are conditional statements, and specifically if/else statements. Here is an example. if(16==16){ window.alert("Yes, 16 does equal 16! Amazing!"); } else { window.alert("Wait a second... 16 is not equal to 16?"); } Here is an explanation. This code states that if 16 is equal to 16,
5
2,933
thread by: jay123 | last post Apr 25 '13 by: jay123
I have a website where user's can upload their images. I am struck at IE10 not bringing file upload folder. I am using Plupload jQuery files with latest version(v1.5.6). It works very well with Firefox, Opera, Chrome and IE9 but not IE10. Clicking on 'Upload' button does nothing. Can someone please guide me in right direction. Thanks
2
2,304
thread by: Mohinee875 | last post Apr 25 '13 by: omerbutt
Hello, I would like to get the Javascript code to check the textbox contains only text(alphabets or characters) values not any number or combination of alphabets and numbers or special characters..
1
2,056
thread by: ahmetsan | last post Apr 25 '13 by: omerbutt
Hi I want to save a canvas locally in IE with execCommand("SaveAs"). Here is my code. var img = canvas.toDataURL("image/png").replace("image/png", "image/octet-stream"); window.win = open (img); setTimeout('win.document.execCommand("SaveAs")', 1000); However when new window opened the page cannot be displayed....
2
1,648
thread by: blackchakra | last post Apr 25 '13 by: omerbutt
this is my code..i cannot find my mistake <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <title>TestPage</title> <script type="text/javascript"> function contactSelect() { var selectedValue = document.getElementById("cd-dropdown").value; document.getElementById("Background").style.visibility = "hidden";...
2
3,318
thread by: notfound | last post Apr 24 '13 by: omerbutt
I want to show spinners when making different Ajax calls.Now, I can show a spinner under a combobox, but I want also to show one more spinner(it can have the same properties with the other spinner) in another part of the html page.For example I have: Stations <select name="selectStation" id="selectStation" onchange="sta_callStation(this);"> ...
4
3,508
thread by: gowthamavel | last post Apr 24 '13 by: gowthamavel
i just got the code from the following link Getting Started with IndexedDB While running the delete function it doesn't throw an error..but still delete Function didn't work btnDelete.addEventListener("click", function () { var id = document.getElementById('txtID');
1
1,815
thread by: JaiPatel | last post Apr 23 '13 by: Rabbit
i want key code(Ex . backspace==8) for left and right click for Leptop in JavaScript
1
1,347
thread by: shaydaz | last post Apr 20 '13 by: Dormilich
When my form is submitted, the information from my radio button textbox does not show up? I received the code from Bytes.com: http://bytes.com/topic/javascript/answers/627544-add-textbox-when-radio-button-clicked I just need what is typed in the textbox to show up on the submitted form. Code: <label> <input type="radio" name="Coupon"...
1
22,135
thread by: satishch | last post Apr 20 '13 by: Dormilich
I would like to call spring mvc method when ever onUnload. So i write the code in <body onUnload="bye()"></body> In javascript ------------- <script type="text/javascript"> function bye(){ alert("Before Ajax..!"); $.ajax({
9
6,753
omerbutt
thread by: omerbutt | last post Apr 20 '13 by: Dormilich
Hi i am working on a module and my code is working fine on all browser except when using IE10 my ajax requests does not post data inthe $_POST array here is my javascript code var objXMLHttp; function GetXmlHttpObject(){ objXMLHttp=null; try{ // Firefox, Opera 8.0+, Safari objXMLHttp=new XMLHttpRequest(); }catch (e){
3
2,206
thread by: SSG001 | last post Apr 20 '13 by: Rabbit
x=0.4; y=0.200; z=parseFloat(x)+parseFloat(y); alert(z); //z value is shown as 2.400000002 but it works with 0.5+0.200 i gives correct answer
2
2,166
computerfox
thread by: computerfox | last post Apr 20 '13 by: computerfox
Hello everyone, I have a small question. Here's my code: <html> <head> <title>Test</title> <script>
10
1,431
thread by: notfound | last post Apr 14 '13 by: Rabbit
I am getting id of the passengers from a php file,using Ajax code.The number of icons defined by the data coming from php, and the icons(same with appearance) must be shown in the html page.The icons must be callable because I am using bootstrap popover ,when the user come to some icon the information about passsenger must be shown in popup.How...

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.