15,699 Topics
![]() | |
Dear All, I have implemented a page based on tabs. Now how to submit the data is it just have the submit button on the last tab is it? On the other hand how best to show the error because there might be some fields not fill in the first … | |
Hi frens, i have a requirement, where on selecting a option from dropdown, next 2-3 text field should get populated with data from db(without refresh), i managed to get this this thing to work using ajax/jquery, but i am not able to display the data in their respective fields, its … | |
Hy guys i know there is one thread about validation ... but i cant find what is messing up this simple form ... cant get correct result .. iam new in javascript so if you have any idea or what is wrong would you let me know .. i understand … | |
Hi there. I'm currently working on a Games website, where most of the games are in EXE format. Does anyone know of a way to make it so the customer can click a link to start the game instantly without haveing to [download-save-open] the file... Or does anyone know of … | |
Hi, I am writing a web site in vb.net. I need to show javascript confirm box before data is inserted. so if cancel is pressed program flow stops, otherwise data is inserted. quick help will be much appreciated !! :) | |
hey, i started learning javascript programing n i wrote this simple code to test, it isn't working, here's the code :- [CODE]<script type="text/javascript"> { function mltest() { var fnmae=document.myForm.fName.value; var mName=document.myForm.mName.value; var lName=document.myForm.lName.value; var rtxt; rtxt="Your full name is : "; rtxt+=fName; rtxt+=mName; rtxt+=lName; var finalName=""; document.myForm.finalName.value=rtxt; } } </script> … | |
app: [url]http://apps.facebook.com/brainchecker[/url] this was just for learning experience I am having trouble with how to get the permissions dialog open directly instead of that initial go to facebook.com page which directs me to the dialog | |
Hello, I want to ask how to retrieve the value of javascript variable in PHP, like this: [code]<script type="text/javascript"> var data = "12345"; </script> <?php $phpVar = $data; ?>[/code] thanks | |
Dear ajax expert, [URL="http://www.w3schools.com/php/php_ajax_php.asp"]http://www.w3schools.com/php/php_ajax_php.asp[/URL] Refer to the link, using the sample, I'm able to use php ajax to populate 1 text box which I've already pre-define (not using "echo '<input type='text'..") -- the info came from a table e.g. Search: [jo ] Name: [John doe] sql --- select name from … | |
i am submitting a form in javascript and i want it to submit on key press submit, but it wont work. here is my code: [CODE] <script type='text/javascript'> function login(evt){ if (evt){var keyCode = evt.which ? evt.which : evt.keyCode;}else{keyCode='';} if ((evt == '')||(keyCode == 13)){ if (document.forms["login"].email.value=='') { alert('You must … | |
Hi, I am working with PHP. I have a field in my form, which is basically a text box. But as the user start to type it will show a list of matching items, fetched from mysql table. I can have a drop down, but in a drop down , … | |
I have a code that I call from `Button_click` event. The code adds a new row to the table and attempts to add onclick element to every td element in the new row. Somehow, onclick does not work. Any help is appreciated. Here is the code: function insRow() { var … | |
I'm stuck on this project and not sure what's going wrong. I need to return the temp conversion of a users input on click. Any help would be appreciated. [code] <!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" lang="en" xml:lang="en"> <head> <title>Temperature Converter</title> <script type = "text/javascript"> <!-- … | |
I am currently using a anylinkmenu in my website but for some reason it is not showing in IE9. The menu works and you can click on the links but the images aren't displaying. Does anybody know if there is an image display compatibility issue in IE9 please. Best Regards, … | |
hello, iam very new in jQuery. Need help asap please. on my asp.net page I want to use two jQuery functions. 1. Clears textBox when user clicks on it. 2. Clears all inputs when user clicks on btnCancel button. I made two functions [CODE] //clears value from onclicked input $(document).ready(function … | |
i am using the following code to submit a form: [CODE] <script> function marktaskcomplete(){ document.forms["markcomplete"].submit(); } </script> <? if ($_POST['markcompletevalue']=='yes'){ include "dbconnect.php"; $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } mysql_close; } ?> [/CODE] and when i try to submit more … | |
Hi there, I have added a validation script to this page [url]http://antobbo.webspace.virginmedia.com/webediting/documents.htm[/url] but it is not working the way I want it to, I am sure I made some silly mistake. Basically I want to make sure that people actually input something in the form below before submitting it. If … | |
I'm using elRTE editor. but i don't want to use default elRTE menu. i built a graphical and favorite menu with anchor tags and css in my HTML page. my menu is on the top of my page and my editable area is in the middle of the page (i … | |
Hi, I'm creating the layout for a dynamic webshop, all pictures are getting dynamic IDs to have their elements changed. I'm currently having errors with the code below and have no idea why. the argument id is not null, however document.getElementById(id) is. I don't understand how that can happen :S … | |
Hi, I am working on a php form where, I have 5 [B]rate[/B] , 5 [B]quantity[/B] & 5 [B]amount[/B] fields. The user will make entry on amount & quantity fields, and onchange the amount fields will be calculated, I also have a TOTAL field which will also be calculated from … | |
Hi all. I have script that use two arrays. It pushes original array values to the newly created array. it dont pushes into new array duplicate values. for Ex; the orginal array is [B]var arr=['one','two','three','three'][/B]new array will be var newArr=['one','two','three'] the second three will not copied. but one disadvantage is … | |
hi, i need help from you ^^ i don't now how to add java script into this programmed. the result should be come out with "you are interested in: (either one or all check box they click)". i hope you guys can help me on this. Thank you ^^ [CODE]<html> … | |
Hi all, Sorry if I post same thread. I cannot find any similar post to handle my problem. I manage to show/hide tables(which I put on DIV tag) by using 2 radio button which is Kes and Lot. But I'm having problem by starting click on either Kes and Lot.The … | |
Hi all :) I want to make the toggle button so that it will [B]display the specific hidden container[/B].. for the example let say that i got all of these list of containers : [CODE] <div class="post_header"> <div class="post_toggle">Show Post</div> </div> <div class="post_container"> <div>post content 1 goes here..</div> </div> <div … | |
Hi all :) I basically want to use the .append() data to append the data that I got to the selected div. this is variable that i've declared [CODE] var li_template = '<div style="display:none" class="load_reply"><div class="reply_img"><img src="status/blankSilhouette.png" /></div><div class="reply_text"><a href="#" class="blue">Test Name</a><p class="tex">%s</p><div class="date">%r · <a href="#" class="light_blue">Like</a> · <a … | |
Hello, I have these div tags, they're very similar but I just need to change the IDs. Is there anyway to condense this code? [CODE] $(document).ready(function(){ //Full Name var changeName = $('#changeName'); var cancelName = $('#cancelName'); var fullnameDisplay = $('#fullnameDisplay'); var fullnameChange = $('#fullnameChange'); var helperName = $('#helperName') changeName.click(function(){ $(this).hide(); … | |
On a recent project, I decided to make use of Ajax to make a dynamic Shopping cart. When a user adds to their basket, the basket decends from the top of the screen and displays their contents. Each item [B]should[/B] show a small thumbnail image on each line which it … | |
How I can write down a code which uses two Two AJAX-es in combo-boxes? For [B]Country[/B], when user clicks Country combo-box, [B]State Combo-box[/B] will fetch with respective Country, and if when user clicks [B]State combo-box[/B], [B]cities Combo-box[/B] will fetch with respective State. All data will came from database. I successfully … | |
i'm having 2 select boxes, if i change the first one i would like a 2nd select box to change the content, everything is comming from a database. not xml because i want everything to be stored in a database for. is this possible with an onchange command or something? … | |
I made a simple slide show using jquery and "setInterval() " function. Everything working fine but I just need to start this serInterval function only after the div or page loads completely. I will post my code here ... [ICODE] 1. $(document).ready(function () { 2. var s=setInterval('slide()',3000); 3. }); 4. … | |
Say I have 2 input fields, both containing dates with the format (dd mmm yyyy), for example, 07 Mar 2010 (Yes, there is a space between date, month and year). Well basically I need the second input box to calculate 60 days (not 2 months) after the first text box. … | |
I need to learn ajax can i have some material to learn...plz send me or give me useful link to download some materail | |
Hi all. Can anybody point me in the right direction as to how to implement the editor that opens up when I click Start new thread or post reply? Also when displaying the replies how is the feature with syntax highlighting and indentation for the code snippets implemented ? Thanks. | |
I'm just trying to output a value, but whenever it gets to "var max = tb1.value;" it stops working. I can't find out what's wrong with my code. [CODE]<html> <head> <script language="javascript" type="text/javascript"> var tb1 = document.getElementById('textbox1'); function output() { var max = tb1.value; document.write( max ); } </script> <title>asd</title> … | |
I have js on a form page for users to be able to select all check boxes for classes to enter in a dogs show but I want to be able to offer the facility to select just classes on specific days as well and I don't know how to … | |
hey everyone, first i will show u my code pages. addcart.php [CODE] <?php require_once("../Connection/connection.php"); if(!$_POST['img']) die("There is no such product!"); $img=mysql_real_escape_string(end(explode('/',$_POST['img']))); $q_result=mysql_query("SELECT * FROM tbl_items WHERE item_photo='".$img."'"); $row=mysql_fetch_assoc($q_result); $period = $_POST['period']; $count = $_POST['count']; $query_search1 =("SELECT * FROM `tbl_rates` WHERE `rental_period` = 'Daily' AND `units` = '10' AND `category_id` = … | |
hie there..i m using tis embeded media player in my web. but, how can i provide checkbox for each song and then let the user play the multiple songs together using tis code? the music file format are .wma, .mp3 or .midi.... plz help me...thank you [code] <embed type="application/x-mplayer2" id="music1" … | |
Hi all, I am at a stand still with trying to figure this out. I have a textarea, i would like to check for links entered by users and replace/remove the anchor attribute from the string. ie. change [ICODE]<a href='google.com'>website</a>[/ICODE] to [ICODE]website[/ICODE] its more so to validate ( i have … | |
Hello I am currently working on a project but I am currently stuck, what I'm trying to do is add a simple PHP site hit counter to an ajax site which counts the # of visits to an specific page, now I gotten the pages to show up and they … ![]() | |
Hello @all , for several days i try to create a nested-ist generated by jquerymobile from websql querys. I can only master the code to show all parents and children in 1 single list. However of course, i want to have each child to its parent. I would appreciate any … | |
Hello Everyone; I`m Beginner Javascript Developer and I Have a small problem with parseInt method the code is below: [CODE] <script type="text/javascript"> window.onload = Rectangle; function Rectangle () { var e = document.getElementById('Rectanglee'); var w =parseInt(e.style.width); var h =parseInt(e.style.height); alert (w); alert (h); } </script>[/CODE] the code is supposed to … | |
So I am building an app on facebook that is meant to be a photoshop clone. The problem I am facing currently is how to make a circle around the cursor that follows it around like in photoshop. Also like in photoshop, I would like the size of the circle … | |
Hello! This is my first post. :) Is it inappropriate to place many <input type="hidden".... to submit? Here's an example: [CODE]<form action="/" method="post"><input type="hidden" name="ad" value="0x2443ae42"><input type="hidden" name="ad" value="0"><input type="hidden" name="ad" value="3"><input type="hidden" name="ad" value="test"><input type="submit" value="apps"></form>[/CODE] Some browsers seem to not send back all the data. My guess is, … | |
i am writing javascript for something and it wont work on google chrome. it will work on everything else but chrome. can you please help? here is the code: [CODE] var title='CrazieToday - Best Event Organizer Ever'; var url='http://crazietoday.com'; function AddToFavorites(){ if (window.sidebar) { window.sidebar.addPanel(title, url,""); } else if( window.external … | |
I found this code and have implemented it with limited success. It's the Java bit that's baffling me. The goal is to produce a dropdown box for the first instance of the shiptogroup (there are five total) and a blank cell for all other instances. When a selection is made … | |
i need to know weather or not there is a way to put the cursor below (z-index wise) a div element or make it so that you can click through the div element. | |
I'm having trouble with some basic AJAX, I'm very new to it but have found a similar chunk of javascript that I've altered to my needs (kind of). I have a <div> that I want to change upon the click of a link. It contains a list of entries, ordered … | |
Hello i am trying to create a script that will allow for the user to click a link and pop up page opens up with the content from the same page e.g [CODE] <?php $option = $_GET['option']; ?> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function topWindow(){ popup = window.open("page1.php?option=<?php echo $option; ?>","scrollbars=no"); … ![]() | |
Hi people :) I'm in the process of developing a website where there is going to be music on. (Dont worry, the users that will come to the website already know that there will be music - it's the point of the website). But I'm thinking that it would be … | |
ok so i have this in query: [CODE] $(document).ready(function(){ $("input#copy").click(function(){ if ($("input#copy").is(':checked')) { // Checked, copy values $("input#owner_address").val($("input#subject_address").val()); $("input#owner_city").val($("input#subject_city").val()); $("input#owner_state").val($("input#subject_state")); $("input#owner_zip").val($("input#subject_zip").val()); } else { // Clear on uncheck $("input#owner_address").val(""); $("input#owner_city").val(""); $("input#owner_state").val(""); $("input#owner_zip").val(""); } }); }); [/CODE] That works fine for input:text boxes but doesnt work for dropdown menus. How to … |
The End.