15,121 Topics
| |
Hello. I need help with my javascript code.. In the screenshot I just uploaded here, When I input a non-numerical character on the 1st box, it should make the 2nd text box output 0 instead of NaN. <form method="POST"> <!-- my html form... for clarity sake --> <p><span id="errMsg" class="errMsg"></span></p> … | |
I'm trying to addrow onclick button, and I need that new row would have the diffrent ids for "keyword" and "chapter" so I can pass the values of these two field in CLO(key, chap) I can only call the CLO() function in orginal row I need to be able to … | |
<table class="filetable" id="filetable"> <thead> <tr> <th width="25%">名称</th> <th width="6%">大小</th> <th width="10%">类型</th> <th width="19%">修改日期</th> <th width="40%"></th> </tr> </thead> <tbody id="FileList" runat="server"> <tr> <td><img src="images/f01.png" />Adobe Dreamweaver CS5简体中文绿色</td> <td>2013/10/14 17:38</td> <td>文件夹</td> <td class="tdlast">0 KB</td> <td></td> </tr> </tbody> </table> this is a table, I want to get the value of each FileName when … | |
Actually, I am having problem with the wordpress lightbox plugin: Fancybox where it don't work. Therefore, I tried to change to jquery pirobox instead. But I having problem of add the custom rel and class to the link image. I refered [URL="http://wordpress.org/support/topic/add-relxyz-to-gallery-link"]http://wordpress.org/support/topic/add-relxyz-to-gallery-link[/URL] and tried without success moreover I want to … | |
I have this code to add row to my table function addRow(tableID){ var table=document.getElementById(tableID); var rowCount=table.rows.length; var row=table.insertRow(rowCount); var colCount=table.rows[0].cells.length; var cell1=row.insertCell(0); cell1.innerHTML= rowCount+1; for(var i=0;i<colCount;i++){ var newcell=row.insertCell(i+1); newcell.innerHTML=table.rows[0].cells[i+1].innerHTML; }} and this for AJAX function function CLO() { var a=document.getElementById("keyword").value; var b=document.getElementById("chapter").value; if (a == ""&& b == "") { … | |
I am loading images from folder but problem is first loading div after storing images. Because of this problem i have to increase loading time div. <script type="text/javascript"> $(function() { $("#snap").click(function() { $("#myweb").load("webcamsnap.php") }) }) </script> | |
I am getting result 3 div's but i want to get result for checking. my ajax page <div> <!-- This is empty div and please don't remove this --> <div id="inner_1"> <?php echo $val; ?> </div> <div id="inner_2"> <?php echo $val; ?> </div> </div> my html page <div id="div_1"></div> <a … | |
Help. I can't get javascript to work on my computer at all. I've tried both Internet Explorer and Firefox but I either get messages saying that I need to enable it or install it, or the page just doesn't load. And I know that it isn't just the site I'm … | |
Hello. This is probably something very simple that I am missing (Or something that I have done wrong), but upon filling in and validating all fields of the form and pressing the "Register" button nothing happens; Usually the page would reload as if the form had been submitted. The code … | |
Is there anyway i can change this code to a ajax format? $(document).ready(function(){ $("td[contenteditable=true]").blur(function(){ var msg = $(".alert"); var newvalue = $(this).text(); var field = $(this).attr("id"); $.post("update.php",field+"="+newvalue,function(d){ var data = jQuery.parseJSON(d); msg.removeClass("hide"); if(data.status == 200){ msg.addClass("alert-success").removeClass("alert-danger"); }else{ msg.addClass("alert-danger").removeClass("alert-success"); } msg.text(data.response); setTimeout(function(){msg.addClass("hide");},1000);//It will add hide class after 3 seconds }); }); … | |
Hello. I am rebuilding a registration page and the accompanying form. I am at a point of implementing jQuery for password validation. It will not validate nor does it give error messages. I have researched this on other sites but nothing so far seems to work at all. Please see … | |
# Determine if a namespace/variable-name exists # ## Check for namespace existence in your environment variables and objects before writing to them. ## **Guess if "Book1.chapter22.paragraph37" exists without provoking errors and retrieve/send data if it exists with simplest JS expressions.** Call syntax: isNS( [string], [num] ); Example: var nsresult = … | |
I´m still new to javascript.For training purpose I have inserted part of a javascript(lines 23 to 31) code into my html file and it works the windows.alert and number 12 shows But when i uncomment parts of it (lines 26 to 28) that javascript code doesnt work well again,the windows.alert … | |
Is it possible to implement Google maps like website in PHP using Google maps Api v3?? Please help me | |
Viewing source im getting _gaq.push statement like this **_gaq.push(['_trackEvent', 'Tutor_account', 'Worksheet_assigned', '2307', '1']);** I have included js and setaccount details. | |
Hi, I have been trying to save the state of a sortable list. I have been able to save the sort order to localStorage and get the sort order so that I can display it on the console but I cannot get it to be the order it was last … | |
i am creating a program that will help user when they are doing survey during the survey they enter for example from 1 to 25 value in text box1 the text box 2 should show 1st Grad if user enter value from 25 to 50 in same text box should … | |
I'm trying to create a webpage to help teacher determine CLO and PLO for exam questions First user will type the keyword in text box and select the chapter CLO() function will start the AJAX the result should be a CLO Number in CLO column and PLO options in PLO … | |
Following is the javascript that will change the images in a specific time function startTime() { var timerid = 0; var images = new Array("CSS/Images/shy-baby.jpeg", "CSS/Images/yao-ming.png", "CSS/Images/success.jpg"); var countimages = 0; if (timerid) { timerid = 0; } var tDate = new Date(); if (countimages == images.length) { countimages = … | |
Hello, I am experimenting with implementing jQuery to validate my form (I hired a programmer one year ago to do this but it seems she made a mess of it so I am attempting to rebuild it.) I have multiple fields in my form and I wish many of them … | |
Sir I using Gallery Slider from this link http://www.a2zwebhelp.com/jquery-auto-image-rotator It works fine but after sometime Google Chrome displays this error message Either Chrome ran out of memory of or the process for the webpage was terminated for some other reason. How to overcome this error message message. I have these … | |
Excuse me, I want to ask how to make javascript countdown doesn't reset when page refresh?? thank you in advance | |
I need your suggestion on something. I want to display a 'message notification' on my menu bar. I want it to be like the Facebook message notification. When I have a new message, '1' should show close to the message menu e.g. 'Message 1' (I can use CSS to style … | |
I have saved a javascript in notepad with an .htm extension. When I go to file then open and type in the file name, it just opens up a it as an address in the address bar. I want to run the program in internet explorer, how do I do … | |
hi guys, i just want to ask, how could i get the value of the textbox using the onchange() function. i know that using the form action and method get is one possible solution but what i want is that the value of the textbox in page1 should be passed … | |
<html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.2.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <!-- directorySlider Javascript file --> <script src="js/directorySlider.js"></script> <script src="js/directorySlider.min.js"></script> <script> $('#slider-main').directorySlider({ animation: 'fade', filebase: 'img_', directory: 'images/', extension: 'jpg', numslides: 2, height: 200, width: 483, timeout: 100 }) </script> </head> <body> <div class="directorySlider" id="slider-main"></div> </body> </html> <meta http-equiv="Content-Type" … | |
Hi all. This is somewhat the equivalent of .NET String.Format(String, Args); Usages: 'Hello {0}'.format('DaniWeb!'); String.format('{0} {1} {2}', 'Hi', 'Again', 'Good Fella'); String.format('Hello {prefix} {name}', { prefix: 'Sr.', name: 'HeyHeyHey'}); I know there's lots of String.formats out there(some simpler and some more complex), but this is the one i've been using … | |
Hi When I try this if in IE 9 with my variabels like: maxGrootte = 12 and minGrooote = 5 it enters into the if condition if(maxGrootte < minGrootte){ bericht += "\t -Het minimum aantal deelnemer kan nooit groter zijn dan \n"; bericht +="\t het maximum aantal deelnemers\n"; status= false; … | |
--Create an array to contain the path to the image’s source. Don’t hardcode the path into the array. Use a loop to retrieve the name of the file from the source of the image (ie. <img src="img/house.jpg"/>.-- this is my jQuery $(function(){ var slideShowContainer = $('.slideShow'), slideShowItem = '.slides li', … | |
I have a jQuery post problem. I am sending information from a form with a jQuery click function. [code] $("#donateButton").click(function (){ $.post("creditCardAuthorize.php", { amount: $('#amount').val(), description: $('#donation').val() }); $('#rightContent').html(ajax_load).load('content/creditCardAuthorize.php'); }); [/code] The problem is that on some browser it goes to the correct page, but on others it goes to … |
The End.