15,127 Topics
| |
Hi, please help me with my code. Javascript function if (document.myform.Available.checked == false) { document.myform.Save.disabled = true; <?php $query = mysql_query("UPDATE rewarditems SET Available = 'Yes' WHERE RewardItemID = '{$_GET['item']}'",$link1) or die(mysql_error()); ?> } else if (document.myform.Available.checked == true) { document.myform.Save.disabled = false; <?php $query = mysql_query("UPDATE rewarditems SET Available … | |
I've made a "more" button and whenever i click it, another upload input will be displayed. Problem is, once I add the <div>, then it stops working. Is there any way around this? [CODE] <html> <head> <script type="text/javascript"> var instance = 1; function newUpload() { instance++; var newInput = document.createElement("INPUT"); … | |
uhmm.. i have three textboxes and i combine the three values to generate a barcode value.. below is the function [CODE]function getBarCode(ItemCode,VendCode,Cat){ var Item = ItemCode; var Mcode = VendCode; var Category = Cat; var barcodeval = Item+Mcode+Category; if (Item == ''){ alert('Input A Itemcode Code'); return false; }else if(Mcode … | |
i have used <param name="wmode" valur="transparent" /> and in <embed> tag inserted wmode="transparent" for overlaying the menu over flash player in my web site... it worked in firefox but not in chrome and IE.... how to resolve this problem??? waiting for a help............ | |
Hi there, firstly I want to disable this part of an epic script. I dont want anything to happen onclick. [CODE]function checkOnClick(e,n){ window.open('http://www.camosreptiles.com.au/','_self'); return ;[/CODE] I tried making the bit at the end return false; but it had no effect. If I cannot do that, I need to fix a … | |
I am trying to create an HTML form in which user will enter different items (he wants to purchase) in text fields. One text field is used for one item. Now it is not known in advance how much items the user will purchase so we cannot decide the total … | |
Hi, Very new to JavaScript so I'm sorry if this is a daft question, I have searched for answers first and could not find anything that works for me ... so .. The task: One html form with two submit buttons. On submit (save changes) posts back to the same … | |
Hello Everyone, I have chosen to use Google Custom Search with my website and was given the following code, my question is, how can i pass a search query from my homepage which has a standard form on there to the search page which holds this code? I am given … | |
<script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select id="boxtype[]" … | |
[CODE] <script language="javascript"> function add() { var divTag = document.createElement("div"); divTag.id = "div"; //alert(divTag.id); //divTag.setAttribute("align","center"); //divTag.style.margin = "0px auto"; divTag.className ="dynamicDiv"; var v1 =document.getElementById('ttlBoxes').value; var v2 =document.getElementById('boxno[]').value; var d1=parseInt(document.getElementById('ttlBoxes').value); var d2=parseInt(document.getElementById('boxno[]').value); if(v1!=""&& v2!="") { if(d2<d1) { divTag.innerHTML ='<br /><table width="101%" border="0" align="center" cellpadding="5" cellspacing="1" class="entryTable" ><tr ><td width="150" class="label" ><select … | |
hello, Can you give me an iframe code that will display another page in my website. For example, I want to display specifically the login area of facebook. let say 100px by 40px. Then, when someone logged in their account it will change view to the center of the facebook … | |
hi i am doing a project now i going to use ajax to retrieve coordinate from the json in html and pin the coordinate onto a point on the map using javascript but the problem is i am only able to use one point on the map can tell me … | |
Hi. I don't know where the problem is. The next codes is working on Google Chome but not in IE. I haven't tested yet on Firefox. function.js [CODE]function getSheetCount() { var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); } else { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { var … | |
| I am trying to pass multiple variables and it is not working. When I click a link, I would like this to execute, but nothing happens. When I'm passing only one variable, this does work. Am I leaving out a part? Here is the code: [CODE]function test(s,g) { if (window.XMLHttpRequest) … |
I found this code on some really awesome website, but I'm trying to change it up a little. As you can see a light box pops up after clicking the link. I want to make it where the light box automatically pops up without clicking the link? How? Thanks in … | |
Hi guys, please help me. $GetList = mysql_query("SELECT ItemID, Available FROM rewarditems",$link1); while($row = mysql_fetch_array($GetList)) { $ItemID = $row['ItemID']; $Available = $row['Available']; echo("<form name='myform' method='post'>"); if ($Available == 'No') { echo("<td width='100' valign='top'><p class='ItemList'><input type='checkbox' name='$ItemID' value='process.php?action=Item Availability&item=&$ItemID&available=Yes' checked></p></td>"); } if ($Available == 'Yes') { echo("<td width='100' valign='top'><p class='ItemList'><input type='checkbox' … | |
I am using the Lightbox2 script on my website. here is an example of it working correctly on my search engine: [url]http://www.tcdb.org/go.php?query=maltose&button=Submit[/url] (Click any link that says "View Tree") Now, when we attempt the same thing on a page with many more results: [url]http://www.tcdb.org/go.php?query=sugar&button=Submit[/url] the lightbox containing my tree shows … | |
hello guys i want to perform following task through javascript that i should make a text field and a button name as reboot and in the text field,there should i mention the ipaddress of my dsl and click reboot which reboot my dsl router...is there any function through we can … | |
ok hi guys i'm a fairly new guy to these forums, and i'm hopping some one can help me. the thing is i want to create a website which i've sort of done i'm not that fabulous in HTML coding. the scenerio is that i'v created a website where people … | |
Hi guys, i want to create a registration page which has the fields like name,username,gender,dateofbirth,maritalstatus,etc... i have already created the form using html. now i need to encrypt the php code to insert these datas into the database which i have already created. Additionly i need to validate these fields … | |
Hi, I am developing a Java SE console application that needs to connect to a web page, get its contents (using HTTP GET) and get the value of a timer that was written in Javascript. If we take [URL="http://www.elated.com/res/File/articles/development/javascript/creating-a-javascript-clock/clock.html"]this[/URL] example page for instance. When I retrieve its contents using HTTP … | |
Hi! I have two frames (frameset, let's call it frame1 and frame2). Frame1 has links..., and frame2. When some link in frame1 is clicked, it must be changed content of the frame2. Here's example: [URL="http://www.dlib.indiana.edu/variations/scores/adg7955/index.html"]click[/URL]. How to do that? (I don't see any javascript code) Thanks a lot! | |
Im trying to merge the functions of two buttons In this script [CODE]<script language="JavaScript"> function setVisibility(id, visibility) { document.getElementById(id).style.display = visibility; } </script> <input type=button name=type value='Lock Up Geckos' onclick="setVisibility('geckos', 'none');";> <input type=button name=type value='Release Geckos' onclick="setVisibility('geckos', 'inline');";> <div id="geckos" style="position: relative;display: none;"> <div style="position: absolute; top: 0px; left: 0px; … | |
i am trying to use a jquery selector. There are 10 divs in my page. each div has a submit button which has attribute called post and its value varies from 1 to 10. so when first submit button is clicked i want to alert the h1 in the first … | |
Is there any possible way to return the expiration time of a pefeied cookie by [B]JavaScript[/B]? What I read so far: 1) Create another cookie to hold the expire time. -I don't want to use that because i do not intend to do it, simple enough. 2) I don't really … | |
hi, i'm having the following problem, normaly i work with html css and php but for this to work i need to make a litle javascript function and i'm still kinda new to it. so here is my problem. i'm making a search field where someone has to select some … | |
Here's a little brain teaser for you all. A client wants a [B]secure[/B] members only area of thier website with username/password access control, however the sites web host does not support any form of server side scripting or htaccess and to complicate matters further the client will not or cannot … | |
Hi I am using [CODE]window.status = "Message"[/CODE] for IE but I want to do the same in other browsers. For time being I want to do it in firefox but I have to manually enable it in browser options. Is it possible to do so programmatically? Thanks in advance. | |
Will someone please help me out in javascript, jquery, and css? I really want to use this menu at this web page: [url]http://designreviver.com/tutorials/jquery-css-example-dropdown-menu/[/url] However, I would like to have this menu as a multi level menu. Currently it is two level. How to make this menu as three or four … | |
Hi I am developer in .NET but I need to access session object in client side and redirect the page to login. i am using the following code snippet but I am unable to achieve the target. [CODE]function CheckSession() { var session = '<%=Session["username"] != null%>'; //session = '<%=Session["username"]%>'; alert(session); … |
The End.