15,120 Topics
| |
I'm using following latest files, jquery.min.js jquery-ui.js When I create javascript functions based on above both files, that works well on localhost, but as I upload them to server for become online it goes slower 'n slower 'n slower. Why scripts goes slow on effects? I have tried multiple hosting … | |
Hi does anyone know how i can change the following code so that if theres no checkboxes selected the error message will show. function checkAllArtists() { var checkedValue=document.gridForm.checkAll.checked; for (var i=0; i<document.gridForm.elements.length; i++) if (document.gridForm.elements[i].type=="checkbox") document.gridForm.elements[i].checked=checkedValue; } function countChecked() { if (document.gridForm.checkAll.checked <=0) alert("Please select an artist"); return true; } … | |
Hi, I have attached a .html document and a text file, which is used as a input. This is a very basic website and its working fine in mozilla and chrome but not working on IE. Whenever a refresh button is clicked it loads data in debug area and Generate … | |
basically i am checking if i am in the same url as the page and i want to refresh the page only once,but whenever i try it keep refreshing infinitively place='/development/petersburg'; var pathname=window.location.pathname; if((pathname==place)){ window.location.reload();//reload the page } help!! how can i limit this page to refresh only once if … | |
Hi all my name is codingcon and i just joined daniweb :), i am new to the the javascript language and only have the basics down. Ihave this idea that i want to make and i just dont know how to do this one thing. basically i wanna know how … | |
hi, I have a problem with my javascript function.. this the code <?php include("include/connection.php"); if(isset($_GET['id'])){ if(isset($_COOKIE["users_resolution"])){ $resWidth = $_COOKIE["users_resolution"]-17; }else{ echo "<script language='javascript'>"; echo "writeCookie();"; echo "function writeCookie()"; echo "{"; echo "var today = new Date();"; echo "var the_date = new Date('December 31, 2023');"; echo "var the_cookie_date = the_date.toGMTString();"; echo … | |
I have an iframe that opens within another page. On the iframe there is a button that when clicked opens a region with a number of fields for the user to input. What is meant to happen is that the region opens and the whole resizes so that the data … | |
<script type="text/javascript"> function validate(evt) { var theEvent = evt || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode(key); var regex = /[0-9]|\./; if (!regex.test(key)) { theEvent.returnValue = false; alert("Only Numeric is Allowed"); if (theEvent.preventDefault) theEvent.preventDefault(); } } </script> > Hello, > > I'm using the above script for … | |
$query =("SELECT * FROM products"); $result = mysql_query($query); while ($row = mysql_fetch_assoc($result)) { $id=$row['id']; $title=$row['ProductTitle']; echo"$title<br>"; } This gives list of products. How to create and display new div with `width:250px;height:250px;overflow:scroll;` when clicked on product title to show product details. How to check second product details without closing previously open … | |
I have a php foreach loop that displays a span element with a name in it, and an associated input field for each item in the array being iterated through. There is an onclick so that the value is passed to the associated input field: <span onclick="setAuthor(this)">name</span> Here is the … | |
Hello people, I am future web designer and want to learn PHP and javascript, i already know a little javasctipt but i have never touched PHP. I need 2 books: one for PHP and one for javascript, money is not a problem... I saw some books "PRO JS for web … | |
<!DOCTYPE html> <html> <head> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.4.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ var ele = $('#scroll'); var speed = 25, scroll = 5, scrolling; $('#scroll-up').mouseenter(function() { // Scroll the element up scrolling = window.setInterval(function() { ele.scrollTop( ele.scrollTop() - scroll ); }, speed); }); $('#scroll-down').mouseenter(function() { // Scroll the element down scrolling = … | |
Hello, Here is my Project i need to show the Model Popup (Gridview) ... I found My code is Correct , But i don't Understand That why is not showing while run time.. here is the Desgin Code... Please Let Me tel What the mistake i've committed over here .. … | |
Hello, I am trying to parse a string using regular expressions. This string can potentially have any number of non-alphanumeric characters acting as delimiters. These delimiters can also be grouped together. Here are some examples of the data: 00923:5342:123 --> I want to extract 00923, 5342 and 123 into an … | |
Hi all, I am new to web development. So please be easy on me and try and explain somethings in detail. I am building a edit page for something else I am building. It is all PHP driven with a MySQL database. Well anyway my boss want a inline on … | |
var arr = new Array(); arr = document.getElementsByClassName("repestyl2"); var index = 0; while(index !== arr.length){ if(arr[index].innerHTML.indexOf("Eck") >= 0){ arr[index].removeNode(true); arr[index].parentNode.removeChild(arr[index]); index++; } Is this code ok? Because I can't get it to work :) Simple question :P Thanks :) Maybe I should use for-each o.O | |
I am using jQuery and Ajax to add items to a shopping cart and in all areas of the site apart from one it works fine and I cannot for the life of me work out why this one area isn't working. The form code (which is the same as … | |
I need to retrieve a valeu from a select in html like on this [Link Anchor Text](http://www.saxoprint.co.uk/shop/folded-leaflets.aspx/) and calculate the price can anyone help me? | |
I want to make a checkbox to control two textfield The checkbox default checked and two textfield default disabled When user uncheck the checkbox , These two textfield do not disabled. How can I write the script? | |
Hi, I have a icon which on mouseover action i'm changing to another icon little bigger and with a tooltip. This icon is placed inside a table row before the text data. When mouseover happens it moves the text data to right and new icon is displayed. Instead of that … | |
Ok, so I have a bunch of scripts that I created, and by themselves they work perfectly, but I am trying to use a load more script, basically like I have below. Now the problem is I have put all of my "scripts" into a load more div, because if … | |
I have created the following code. I want people to drag the objects that are recycleable in the bin and a message to pop up that says "yes, you can recycle this". The others would have a remark that says something like "no, you cannot recycle this". At the end. … | |
Hi there, I would like to make kind of a menu/content like it is on this site: [homebroker.pl/oferty_pracy/wyslij_cv/1](https://homebroker.pl/oferty_pracy/wyslij_cv/1) When you click "zobacz" it expand smooth. Do I have to use some jQuery code to do this? | |
Maybe I'm doing this wrong, but here's what I'm trying to do. Ok, so how do I send the URL to a new page? Right now I understand the writing ajax to a div, replacing the contents of the div, appending it etc. But what about if I am using … | |
I need to use a handler that will get from my select option in html a value but not the valeu orm the option I will show my code now ...<form action="" method="POST" class="submit"> <label for="select"> Print copy</label> <select class="select" name="select"> <option>1 copy</option> <option selected="selected">2 copies</option> <option>3 copies</option> <option>4 copies</option> … | |
Hello everyone! I would like of uses a popup Ajax to open a site. For example: The user access the site, open a popup ajax with a warning: "The site is on maintenance. Close the window to use the page index of the site". How to ? Thanks you! | |
Hi guys, I am doing a validation form (3 inputs: number of apple, orange and banana). for example i type: 'a' as input in the form that required only number (apple), it will prompt me error then i type the next input orange: 2 and it will accept it, however … | |
I am having an issue with an external javascript. I've included the code from the web page and the javascript code I have. Instead of opening a website when the selection changes in any of the menus, I get a pop-up message box with the address of the web page. … | |
hey I'm just having some trdouble with an onclick call. its being called before it iss. not really sure whats wrong with it. im also passing it in a function with arg so that the value i is assigned to it for the loop. i tried it without it and … | |
help! I'm trying to figure out how to verify looped form fields by name. This seems like it should work, but it's just skipping right past this verification step. Here's the code: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript'> function myForm(){ // … |
The End.