15,694 Topics
![]() | |
![]() | Why is it that, the only way this will work is if I pass the entire: add(document.getElementById('num1').value) to the function, as opposed to simply adding: add(num1) <script> function add(num1){ total=num1*1+3; alert(total); } </script> </head> <body> <input type="text" id="num1" size="4"> <input type="button" onClick="add(document.getElementById('num1').value)"; </body> </html> |
hey guys, so im trying to do the image slider with js but its not working. only the first pic: pic1, displays then it doesnt slide. code: <script type="text/javascript"> <!--> var img1=new Image() img1.src="image/pic1.jpg" var img2=new Image() img2.src="image/pic2.jpg" var img3=new Image() img3.src="image/pic4.jpg" var img4=new Image() img4.src="image/pic5.jpg" var img5=new Image() img5.src="image/pic3.jpg" … | |
Hi, I'm using a shopping cart js plugin called simplecart. Im having trouble getting a tumb of the product image to appear with the product info in the cart. This line gets the full sized image to appear in the cart <img src='$file' class='item_thumb' alt='{$row['name']}' /> Does anyone know how … | |
Hi, I am using jQuery function to calculate total of item price (label) multiply by quantity (textbox), this is working fine so far. Also, I added additional label for shipping which getting the data from rbl object, also working fine. The calculation I'm trying to get is sum of total+shipping, … ![]() | |
Hello, I am using counter to count characters in text area. Now the problem, if the number of characters calculated = 160 characters, then when I send the paragraph to my mobile phone, I get 162 characters, I got the reason, but can't find solution yet. Example: write normal paragraph … | |
How can I see the data that I passed through the following script? $('#btn_update').click(function(){ $.post("../inc/set_session.php", { key: "phone_mode", value: "update" }); var data = $('addform').serializeArray(); $.post('phones_post.php', data); }); | |
![]() | I found a script online to have a div stick to the top of the window once you scroll to it, and I got it working fine in Firefox and Opera but in Chrome and Safari the sticky div stops before it gets to the bottom of the page. It's … ![]() |
Dear Sir, I have following codes <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><title>My Contacts</title> <style type="text/css"> body{ margin-top:200px; font-family:Georgia, "Times New Roman", Times, serif; } </style> </head> <body> <center> <img src="Photo96.png"><br/> <a href="">Get Photo</a> </center> </body> </html> It shows this image [IMG]http://i40.tinypic.com/141saa0.jpg[/IMG] I want to upload … ![]() | |
I would like to replace ".city1{background:red;}" with ".city1 with http://city1.example.com" so that when user selects a city1 the page goes to the city1 url page. Since I don't need the color box with a message, can I remove the code: var cityChosen = getCookie('citychosen'); if(cityChosen!=null && cityChosen!=''){ var chosen = … ![]() | |
The cookie is not holding and the domain example.com cannot redirect to a.example.com when I type on the address bar. Anyone good at cookies? Any help will be very much appreciated. $(function(){ var city = getCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ … ![]() | |
Hi everyone, Again, i am here for the second time. My current problem is kinda complecated for me. I am developing a project using Codeigniter framework for php. I am using SSE to display notification from a table in the database without user refreshing the page. From a view (view1), … | |
Hi I am a beginner programmer and I am really interested about learning new skills. So I need your help. I have a question regarding designing. I want to design a website where the user will be first shown couple of example page designs/template and then the user chooses one … ![]() | |
ello ello, I'm currently calling a file using JQuery but every so often (very randomly) Google Chrome would crash (Just the tab, not the browser). Soooo I began investigating and discovered that browsers cache AJAX calls? This would mean that the tab would be using a stupid amount of memory … | |
I was reading through http://calebjacob.com/tooltipster to achive a cool tooltip, but seems not working for me :( any one please write me the code to achive this tooltip effect -> https://dl.dropboxusercontent.com/s/g2y9zrn9deljxhq/tooltip.jpg Will be great helpful. Please help. ![]() | |
Hi, I have a simple problem here but i have no idea how i can do it with javascript. I have a php script which will grab data from database from time to time (Server Sent Events) and i use ajax to display those data without refreshing the page. I … | |
I am new to web development, now i want to learn javascript for web development and plugins development, please tell me good sites for learn javascript, "GOOD SITE MEANS REAL TIME EXAMPLES FOR EVERY LESSONS AND TUTORIALS" | |
Hi, I am trying to add a new set of filters to one large set of data on this page: http://vigstage.pearsonhighered.com/etextbooks/titles-available/index.html I modified code that I took from a different site- I am calling a data.js file that filters by discipline. I want to add a second set of filters … | |
I am breaking my head for last 2 weeks trying to create an app that will be iOS and Android using HTML5 and jQuery Mobile. I need my app to contact a server to get data. I was trying Ajax but it can not be done because of cross domain … | |
here i am store the dynamic row values into mysql. i am using jquery and javascript for dynamic rows and auto calculation and then stored to mysql using php coding. that works perfectly. i already added dynamic row value into mysql perfectly. But, now i want to edit the table … | |
Hey. I am trying to make a small Google Adwords keyword planner tool which incorporates clicking the download button. ( http://i.imgur.com/M3Ksotz.png ) However, it's a bit difficult to figure out how can I programmatically click that button because it's not a usual <input> HTML button, but it's code looks like … | |
I have this ajax request. $.ajax({ type: 'Post', dataType: 'json', contentType: "application/json; charset=utf-8", url: 'https://********/***/*******.asmx/Login', data: "{ userID: '" + userName + "', pwd: '" + password + "' }", success: successCallBack, error: failureCallBack }); Problems is this works fine in older chrome browser. Eg. 20.XX.XX But it does not … | |
I am new to Pyramid, Python, Jinja2 , jQuery AJAX, MongoDB and mongoengine. I was told to delvelop a system using these technologies. I am at a point where I do not know how to go futher. I have searched the web for answers, but found nothing that is helpful. … | |
I am new to Pyramid, Python, Jinja2 , jQuery AJAX, MongoDB and mongoengine. I was told to delvelop a system using these technologies. I am at a point where I do not know how to go futher. I have searched the web for answers, but found nothing that is helpful. … | |
<?php $con=mysqli_connect('localhost','root','password','swati'); $sql1="SELECT * FROM `country`"; ?> <html> <head> <script> function val() { var name=document.getElementById("name").value; var add=document.getElementById("add").value; var email=document.getElementById("email").value; var chk1=document.getElementById("c1").checked; //var chk2=document.getElementById("c").checked; //var chk3=document.getElementById("c3").checked; //var gen=document.getElementById("gender").checked; var gen1=document.getElementById("gender1").checked; if(name=="" || name==null) { alert("name can not be blank"); return false; } if(add=="" || add==null) { alert("address can not be blank"); … | |
Hi, I have a hidden field and a text field called hdStrField, txtStrField . Now I assign the value for hdStrField field like this. document.forms[0]. hdStrField.value=’ txtStrField'; Now I want to change assigned hdStrField field value as read only. Give some suggestions for getting this functionality. | |
edit.php coding... <?php $uid = (int)$_GET['id']; ?> <form action="update.php" name="myform" method="post" onsubmit="return(validateform());"> <input type="hidden" name="edited" value="<?=$uid;?>"> <?php $tariff_query = mysql_query("SELECT * FROM ebvouchertariffs WHERE VoucherID_Fk = $uid"); if(mysql_num_rows($tariff_query)>=1) { echo "<table width=960 align=center cellspacing=0 cellpadding=0> <tr> <td width=68 height=50 class=tabtext>SL.NO</td> <td width=106 class=tabtext>DATE</td> <td width=204 class=tabtext>PARTICULARS</td> <td width=117 class=tabtext>NO OF … | |
Hi, I have a text field it should allow only Number, only one time 'Q' and 'C'. I created below mentioned code. <input type="text" name="vcno" onkeypress="return blockChars([^0-9-Qq-Cc])"> function blockChars(Chars){ var status = false; if(Chars.indexOf('\') != -1) status=true; varKeyCode = getKeyCode() ; if(KeyCode != undefined && isEmptyValue(Chars) ){ var g = … | |
hello, i have to download this slider link given below www.ekle.it can any body help me to downlaod this slider??? | |
I have 5 select tags in a page (user can select number max 10 only). I want to fill this select boxes with dynamic data. I wrote a function for this. This function called on a radio button clicked. Data send to a PHP page and return back result to … |
The End.