15,121 Topics
| |
var x = 0; var interval = setInterval(function() { alert("Loop iteration #" + x++); if(x==6) { var x = 0; } }, 500); This code prompts "#NaN" with each message, but I expected it to be going 1, 2, 3, 4, 5 and then back to 1, 2, 3, 4, … | |
I'm working on a site that had to be customized from a templatemonster.com template. It's just about finished except the contact form only seems to work fully in Firefox, which is odd? In FF, IE, and Chrome it LOOKS like it works, and in the first two the submissions come … | |
First drop down menu to auto change the options of a second dropdown, when you select 2nd it changes the 3rd . <select name="types"> <option value="">---- Select job ----</option> <option value="1">Job1</option> <option value="2" >Job2</option> <option value="3">Job3</option> </select> <select name="gender" > <option value="" >---- Select Gender----</option> <option value="male" selected>Male</option> <option value="female">Female</option> … | |
Hello, Can anyone help me find the logic behind this program? input_berita_static.php <?php include('../includes/koneksi.php'); $post_id = isset($_POST['post_id']) ? $_POST['post_id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $news = isset($_POST['news']) ? $_POST['news'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page … | |
Hi all why this code doesn't work correctly but php validate without js work correctly and js without php validate work correctly ?! form.php <html> <head> <title>Registration Form</title> <script language="JavaScript" type="text/javascript"> Function validate () { var str=true; document.getElementById("name").innerHTML=""; document.getElementById("username").innerHTML=""; document.getElementById("pass1").innerHTML=""; document.getElementById("pass2").innerHTML=""; document.getElementById("email1").innerHTML=""; document.getElementById("web").innerHTML=""; if(document.frm.nameTxt.value=='') { document.getElementById("name").innerHTML="Please Enter your name"; str=false; … | |
Hi i have a Div and underneath that there is another div. By default the second div is not visible. Now on mouse over of the first div i am displaying the second div and also on mouse out i am hiding the second div. But the problem is on … | |
I have some basic logic here and im getting crazy how can do this. what I want is to submit my form when the hyperlink is being click. here sample code: <form id="myForm" action="for-filtering.php"> <input type="hidden" name="fname" value="<?php echo $account_fname; ?>"> <input type="submit" id="submit" style="display:none;"/> <a onclick='myFunction()' href='reponse-to-customer.php?id=".$cus_id."'>$firstname_email</a> </form> <script> … | |
I need to create 3-4 buttons that are colored when pressed, but when one button is pressed it turns for example red other ones become grey. But this must happen on the same site like selection for example. I didnt maanage to do anything till now, if someone could just … | |
Hi guys, I'm new to ASP.Net. I'm building a page which consists of a dropdownlist, a gridview and a save button below the gridview. I want to populate the gridview based on the values selected from the dropdownlist. My first problem is that the gridview does not display when the … | |
We are wanting to develop a Mobile App either a hybrid App or web app. Since Usability and performance are the main architectural drivers we are thinking Hybrid App is the best approach. But it is supposed to have these features. Because of development cost for each specific platform, Developing … | |
How to remove Referrer from links? How to use following code to remove Referrer from links? **script** var protected_links = ""; var a_to_va = 0; var a_to_vb = 0; var a_to_vc = ""; function auto_anonymize() { auto_anonyminize(); } function auto_anonyminize() { var a_to_vd = window.location.hostname; if(protected_links != "" && !protected_links.match(a_to_vd)) … | |
My question is can we use the Document.write in a loop? As the following code doesn't works well. Guess what wrong in it! <script type="text/javascript"> var d = 1; var p; while (days <= 4){ p = prompt("value of p?",0); document.write("the value of p" + p); p=p+p; d++; }; </script> | |
Hello all, Am trying to display records from mysql using HIghchart but for some reasons, it is not bringing out any output, please help me look into my codes. :::::::::::::::::::::::::::::::::::::data1.php :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: <?php include('mysql_connect.php'); $dept = $_POST['department']; //include('mysql_connect.php'); $stat = 'paid'; $result = mysql_query ("select category, amount, actual from budget where … | |
I am trying to develop a seach page to search the customer files that in the database. I want to be able to search and the result display on the same page and i can search for another customer without going to another page. <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript"> $(function() … | |
HI all, I am very new to LESS, literally just started today. I had a look at some tutorials, and got my first LESS webpage - or should I say CSS - to work in Firefox, but when I moved to other browsers the CSS doesn't pick up any style. … | |
Hi, I am trying to code a button in iBooks, where the user can touch the button, in order for music to play continuesly throught the book, even when a page is turned. I have used the following so far: <div id="audioButton" class="ibooks-media-audio" data-ibooks-audio-reset-on-play="true" data-ibooks-audio-src="audio/background_audio.m4a"></div> This uses iBooks.js The problem … | |
Hi I was working on wizard registration form i collected the code from web and i gave required in the input tag. But its not working. Can any one please help me to resolve this issue. **Html page** <div class="row wizard-row"> <div class="col-md-12 fuelux"> <div class="block-wizard"> <div id="wizard1" class="wizard wizard-ux"> … | |
Hai friends i want to know how to dispaly same value and different page without enter any value because already some content is there display that content in different page using javascript | |
I am using noUiSlider and I am trying to get the slider value to Post through a form. The form is posting fine, but the value of the slider does not change from the start value, so is always set at 7000. Any ideas how to make the value change … | |
**I genuinely hope this is the right place to post this question.** Anyways, I play video games alot and I really like them (I know playing video games won't help me make them ) But as I play them I keep on getting the urge to create my own video … | |
Hello all! Can someone help with this matrix? it needs to spiral inwards, from bottom right corner, clockwise... I found this code... and it runs nicely but I need to adapt it in some ways: - I should be able to provide number of rows and columns - the grid … | |
I'm new to Javascript but need to write a script to enter some text into a form, hit submit and then copy an image to a word document. I'll post the website I'm trying to do this with and maybe you guys can give me some points. Note: I'm a … | |
` <script type="text/javascript" src="js/jquery.min.js"></script> <link rel="stylesheet" href="js/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" /> <script type="text/javascript" src="js/jquery.fancybox-1.3.4/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <script language="javascript"> $(document).ready(function() { /* Apply fancybox to multiple items */ $("a.grouped_elements").attr('rel', 'gallery').fancybox(); $("a#inline").fancybox({ 'hideOnContentClick': true }); }); </script> <div id="tabs"> <ul> <li><a href="#tab1">Watsons HWB awards</a></li> <li><a href="#tab2">Mardi Gras Event</a></li> <li><a href="#tab3">WD40 Dealers Summit</a></li> <li><a href="#tab4">Chole Fashion … | |
I am facing the problem that in my inventory my Physical quantity not matching to my available quantity.I have color option and If i select 10 products it minus 10 products from all the colors.this is my code <? /*********************************************************************************************\ *********************************************************************************************** ** ** ** My Shop ** ** Version 1.0 … | |
| 1. Exactly what are regex? 2. Do we write them ourselves or are they prdefined expressions? 3. If we can write regex ourselves, how do we write them? 4. How do they check for invadalities? For example the email regex: [-0-9a-zA-Z.+_]+@[-0-9a-zA-Z.+_]+\.[a-zA-Z]{2,4} how does this expression check for valid email addresses? … |
I am trying to fetch an image from database and display in my webpage through pdo, Image is not displaying instead it appears as "lº·“w~ïFVÅà%@ |vmŸú¿E8Ö®?ð²ý>ñNòTML°^¯F®Ìü9ù²÷fÕèÕÙ³îç®^éª@1 ½§~îþlY4º7ñZS,,¾³Ö9ú7“c*Ð5z4v^[éÙý¹Yõú¨Ôè—fkIrÓ·knó~þRmü2¶: %@Ì®Òß ¸t¾•ÈáºG¼Ohý¤øtå’ÿêÙ·/÷G£c*Ж1ñ:;¶¡œý‘º[[mÇ+-·ŸÕµÈàuæžwvÇ=¹Þì»tUÀñäÏòå챃µ8§ÙN¹uòÄx].Mr+Ñœ–<¥©c§•éõ¼“=/‹" - MY Code is., <div class = "controlbox"> <form action = "<?php echo $_SERVER['PHP_SELF']; ?>" method = "get"> <select name = … | |
if i click Brochure i want to display one popup box in that will display one form after submitting the form brochure.php page will show.in that page i need to download some files.problem is while clicking Brochure its showing popup box if i close are submit the form again that … | |
i need two popup box like this. <div class="pro_img"> <img src="web_img/IGN-GRAND.png" alt="Project Image" width="211" height="162" border="0"> <a href="#" onclick="popup('popUpDiv')"><br> DOWNLOAD</a> </div> <div id="popUpDiv" style="display: none;"> <a href="#" onclick="popup('popUpDiv')"><div id="rokbox-close"></div></a> <div id="rt-popup" style="background-color:rgba(230, 224, 224, 0.59);"> <div class="rt-block"> <div class="module-title"> <h3 class="title">Download Brochure</h3> </div> <div id="k2ModuleBox85" class="k2LoginBlock"> <form name="form1" onsubmit="javascript:return Validate();" … | |
input_image.php <p>metode image managementnya masih konstruksi</p><center> <p> <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $image = isset($_POST['image']) ? $_POST['image'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM gallery WHERE id =".$_REQUEST['id']) … | |
i am trying to create custom marker in google map with numbered marker. in which marker image is custom and want to placed number as a label, So can anybody tell me how to do it. here is my code var locations = [ ['Bondi Beach', -33.890542, 151.300856, 4], ['Coogee … |
The End.