15,688 Topics
![]() | |
I have scoured the google searches and haven't run across an answer to this question. I have a Select field that gets values from a database. That part works fine. The database contains four fields: specialistid, name, cell, email I would like for the user to select from a dropdown … | |
hi, i have a asp page in which iam using iframe to load a aspx page,but it is taking long time to load a page,so we r using div tag to load a page.is this possible to load a page using div.whats the javascript to load a page using div … | |
I'm getting the form is not defined error when is use`form.parentNode.appendChild(iframe);`inside a javascript function, I don't know why. Any suggestions? | |
I have been working on a new website that scrolls 100% height/width panels one at a time. The panels are under a fixed header, and are wrapped with `<div id="container></div>` I am, however, having some trouble implementing the javascript. Once setup, the page should issue allerts with each mouse scroll … | |
Hello, I have textboxes and I want to add the inputted values, however, some of the textbox(es) have null values and it gives me a "NaN". what should i do? thank you :) this is my code. sep = parseFloat(document.getElementById('txtSep').value); oct = parseFloat(document.getElementById('txtOct').value); nov = parseFloat(document.getElementById('txtNov').value); dec = parseFloat(document.getElementById('txtDec').value); amt … | |
is there a way that I can do this? I want to, call a java function from an HTML page and set a varaible, (function 1) then switch to a new web page and read the same varaible that was set, (function 2) I would like to do this in … | |
Please help me, I want to enable ajax extensions in my tool box. This is my first time I want to use ajax extensions. When I click show all on the toolbox, it show the ajax extension panel but the control can't be drag to the form, please kindly help … | |
I'm new to javascript. Lets say I need to create a new `<p>` everytime the user clicks on a button. So I create a button in the html body and assign a function as the event handler of `onclick`. This function is in a separate file called "file.js" which I … | |
never programmed in JavaScript before, so I ask your assistance to display the expiry date when user chooses start and end date from the calendar. After selecting the end date from the calendar, the expiry date should display added two months to the end date. For example: The user chooses … | |
Hi , In my website , using jquery I animated my banner . I downloaded bumpbox 2.0 from http://www.artviper.net/website-tools/bumpbox-lightbox.php and integrated in website to generate pdf file lightbox . Light box is working but my banner jquery is not working . I mean banner is not animating.Banner animation jquery is … | |
Hi guys i got a problem, I have a page requesting rows from the other page via ajax the data that will be return includes a field for date, then use datepicker, my problem is the return data doest read datepicker from jquery cause it is retrieved via ajax heres … | |
Hey guys, I'm a noob in javascript and want to know what I'm doing wrong. What I'm trying to do basically is hava a select menu determine where my strings are to be stored. Here is what I'm doing: The code: <form id="form1" name="form1" method="post" action="push.php"> <select name="ga" id="ga" onchange="gameApp(this);"> … | |
I need some help getting the included ajax script's xmlhttp.open() to target a php code within the same page --something like $_SERVER[PHP_SELF] here is the script: [code] <script type="text/javascript"> function showResult3(strss) { if (strss.length==0) { document.getElementById("livesearch3").innerHTML=""; document.getElementById("livesearch3").style.border="0px"; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new … | |
hi there, I just have a few questions about HTML5 and one of its features that is geolocation. My group members and I are thinking to develop a social-networking IOS application that lets you check-in only if you're using a mobile phone. The core idea is that if you're at … | |
Hi, Just looking for a quick hand in a question. I am using jquery validator for a form and some dynamic fields I am trying to have some fields required only if 2 conditions have been might, a select box selected and a radio button checked... Here is the code … | |
So I'm having some problems with my code here. and I'm not sure whats wrong. Im following a textbook on how to do it and this is basically the same format that they have for a random number function. Any feedback is appreciated. <html> <head> <title> Grades </title> <script type="text/javscript"> … | |
I want to working with login system jQuery ajax and json. I'm facing no problem with success function. I dn't know how to through custom errors like "incorrect login". Here is my code, Please help me. <script> $(document).ready(function(){ $("#login").click(function(){ if($("#defaultEmail").val() == ""){ $("#defaultEmail").addClass("field-err"); $("#defaultEmail").focus(); }else if($("#defaultPassword").val() == ""){ $("#defaultEmail").removeClass("field-err"); $("#defaultPassword").addClass("field-err"); … | |
I am using jquery tabs in master page to open the aspx files once user clicks on a tab heading. But if I use my page as link it will repeat the "header" part(similar to this:http://stackoverflow.com/questions/9459991/jquery-tabs-and-asp-net-master-pages-issue). Already tried the solution but cannot get my head around it. Can someone please … | |
Hello Guys how are you all? I have a text box for searching, when i write L all the data that starts from the L should display in a list aplabetically. My data is stored in multidimension array. Now tell me how i can perfrom the above task. i use … | |
hey..can someone help me?? i have a html/php file with a command button and when i clicked it, it will run the exe file of a vb6 application. how can i do this?can i have sample code?? thanks in advance. | |
I want to make a like this example. Cliking at any question it shows the whole, and clicking for the second time it hides. I want this effect. http://mentor.templates.pixelentity.com/faq.html Is there any code snippets for that. I need the code. WHAT IS THE NAME OF THIS EFFECT? Help! Jahur | |
I want to make a button in my page "click here" when i click the page should fade and show some text.then u can close the text box. thanks please keep it simple i am 14 years old <URL SNIPPED> | |
How to upload file and form data using jQuery? <input type="text" name="Name" id="name" /> <input type="text" name="Email" id="email" /> <input type="file" name="attachment" id="attachment" accept="application/msword/pdf" /> $target = "uploads/"; $target = $target . basename( $_FILES['attachment']['name']) ; move_uploaded_file($_FILES['attachment']['tmp_name'], $target); | |
Hi all! I have a problem - surprise. I want to swap the content of my <div> (with the ID "content"), when the user press a bottom. I have tried using these, but with no result: document.getElementById("content").innerHTML = "<script src=\"js/demo.js\" language=\"javascript\" type=\"text/javascript\"></script>"; $("<script src=\"js/demo.js\" language=\"javascript\" type=\"text/javascript\"></script>").appendTo('#content'); I can insert <p> … | |
I'm trying to get random images to display onto four different cells with their corresponding links in place. All that's happenning is one random image is chosen and displayed throughout. Is there a way to pull 4 images from the given list and display them randomly instead? **Thanks a bunch … | |
Use document.forms[0].submit(); (0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on). | |
Hai everybody. what is the problem onclick javascript function not working anybody plz help me. function getColor(block) { var s_url=block.href; var pColor=s_url.substr(s_url.indexOf("#")); document.getElementById("colorText").style.backgroundColor=pColor; document.getElementById("colorText").innerHTML=pColor; } <img src="/images/palette.gif" usemap="#color_palette" /> <map name="color_pallete" id="color_pallete" > <area shape="rect" coords="7,7,31,30" href="#003300" onclick="getcolor(this);return false" /> <area shape="rect" coords="35,7,59,30" href="#003366" onclick="getColor(this);" /> <area shape="rect" coords="63,7,87,31" href="#000080" … | |
Hi all, I have a problem with the date in javascript.I have a date which is in string format Like this: 10/5/2012 6:00 PM and what i need to do is at 5:00 PM on date 10/5/2012, i need to add a class to the td. <table width="100%" border="0" id="datetime"> … | |
I have a simple form that uses a bit of jquery, <form action="" method="post" enctype="multipart/form-data"> <label for="file">Upload File:</label> <input type="file" name="userfile" id="userfile" /> <input type="button" value="Submit" onclick="uploadfile()"/> </form> the uploadfile() in my .js file looks like this: function uploadfile(){ var userfile = document.getElementById('userfile').value; var username = document.getElementById('username').value; $.post("php/upload.php", {userfile: userfile,username: … | |
Hi i'm having problem to display image using easeljs. Can someone help? the code below is not displaying anything. <!DOCTYPE html> <html> <head> <script type="text/javascript" src="lib/easeljs-0.5.0.min.js"></script> <script> var stage; var canvas; var img; function init() { canvas = document.getElementById("canvas"); stage = new createjs.Stage(canvas); img = new Image(); img.src="images/test.png"; stage.addChild(img); stage.update(); … |
The End.