15,121 Topics
| |
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); … | |
I have a dropdown box which should display an appropriate text box only when a particualar option is selected. Currently, the textboxes are displayed all the time. I do have a Javascript function that works for 2 options(hides always and displays only when the correct option is selected). But I … | |
I am populating combobox on checkbox checked or not click event. Here is code. I am not solving the bug, JS runs on chrome but not in both IE and Firefox. checkbox <input type="checkbox" onclick="selectinactivebatch(this.value);" id="inactive_batch" name="inactive_batch" <?php if(isset($_POST['inactive_batch'])) echo "checked";?>> AJAX Code function selectinactivebatch(checkboxvalue) { var check; if(checkboxvalue=='on') check=1; … | |
how to pass javascript value to php without get or post...mean in the same page..without submit | |
Dear team, I am going to implement chat application in my site. I want to use long-polling or ajax -push concept in my program .I prefer to use php and javascript and ajax. kindly suggest me ajax-push concept or long-polling concept. Thank you, Regards, Prem | |
| Hi everyone. I am having some trouble with my PHP and jQuery. [CODE] <script> function solveError(id) { $('#loading').html('<img src="resources/images/loading.gif" width="16" height="16" />').load('solve_error.php?id=' + id + ''); } </script> [/CODE] And here is the PHP [CODE]<a href="#" title="Solved" onclick="solveError('<?php echo $error['error_id']; ?>');"><img src="resources/images/icons/tick_circle.png" alt="Solved" /></a>[/CODE] When I get rid of the … |
The End.