15,688 Topics
![]() | |
HI there, I wonder if anybody can give me a hand with this. I am writing a script which will allow me to swap some images (using also jquery to give the fading effect) but things are not quite working the way they should. I am really new to javascript … | |
Hi guys, Id like to use Sliderman in my site as an image slider. I downloaded the code, added it to my site and arranged what I could see needs to be arranged but I cannot get it to work properly! Image1 attached is how it is supposed to look. … | |
Hi there! I am wanting to use javascript to set a cookie which will expire on session/cookie expire and what would this cookie do? I want it to determine whether or not to show a div using a variable to set display block or none. The div contains text "Click … | |
Hello guys! I have a form and when the user sumbit it a javascript function will be called using onsubmit event. I need to call the function because I need some AJAX code to be executed. And after it's finished, the page needs to be redirected to another page. But … | |
I've been using jQuery for a few years now, and the more I use it, the more I like and appreciate it. It seems like I'm always finding new ways to use it, and usually those new techniques result in me writing less code and ultimately being more productive. On … | |
Hi I really like the drop down that I found on [url]http://www.scriptiny.com/2008/04/sli...dropdown-menu/[/url] I have 4 Menus and when I add this this flows over the logo. The size of each menu is in fact too big. When I tried to alter this the size of sub-menus stay the same and … | |
Dear Friendzz, Problem to getting dynamic values in Javascript.. Please Helpme [CODE]// Java Script <script language="javascript"> function toggle(int) { var ele = document.getElementById(int); if(ele.style.display == "block") { ele.style.display = "block"; } else { ele.style.display = "block"; text.innerHTML = "hide"; } } </script> // HTML <div class="reply"> <a id="{$msg['id']}" href="javascript:toggle(this);">Reply</a> </div>[/CODE] … | |
at this part: [CODE]if (xmlhttp.readyState==4 && xmlhttp.status==200){...[/CODE] My program's "xmlhttp.readyState" is 4 but its xmlhttp.status is always 0, why? is it even necessary to add "xmlhttp.status==200" condition? because I've seen programs without it :/ thanks | |
hello can somone please tell me why i cannot submit this twice i have a php form doing the validation and mailing but if there are errors in the form filling out it will send back an errorand tell them to fix it, without refreshing the form. the problem is … | |
Hi everyone, I have a question, first of all. I run a PHP, but instead of using [CODE]header("Location: index.php");[/CODE] I'm using this one, [CODE]echo("<script type='text/javascript'> window.location = 'index.php' </script>"); [/CODE] And this is worked. I have a new project now, and it have ajax, load PHP files inside <div> tag. … | |
I want the images to change (rotate) in sequence when the page is refreshed not random like i have below. Can someone help me with this please? Also I also need text to change on refresh to because I am going to have a descritption of the image below. So … | |
Hello, I have a JS/jQuery based date picker - calendar. The algorithm itself is simple - a Calendar class that generates calendar, several methods for year/month change, etc, nothing that special. Since i have several independent date fields in the page, i am creating several independent calendars, for example, var … ![]() | |
Hi I really like the drop down that I found on [URL="http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/"]http://www.scriptiny.com/2008/04/sliding-javascript-dropdown-menu/[/URL] I have 4 Menus and when I add this this flows over the logo. The size of each menu is in fact too big. When I tried to alter this the size of sub-menus stay the same and … | |
Hie good friends! I have got a Jsp form for creating a database record for students. The form has got a drop down box for Countries, but the countries are too many that a user may spend a lot of time scrolling to locate his/her country. The drop down is … | |
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 guys i was wondering if you guys could let me know how i can post a form field using jquery and then be declared in a variable after post. The code for the html: [CODE]<table cellpadding="0" cellspacing="0"> <tr> <td></td> <td>Name:</td> <td>Email:</td> </tr> <tr> <td><label for=fri accesskey=f>Friend 1</label></td> <td class="tablePadding"><input … | |
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 … |
The End.