15,127 Topics

Member Avatar for
Member Avatar for rse

Hello, I have a php variable $birthday, I am showing it's value like this: [icode] <div id= "dob" class="pick_number">Day of Birth: <?php echo $birthday ?></div> <div id="test"></div> // value should be printed back in here. [/icode] I need to pass the value of $birthday via ajax, I had the following …

Member Avatar for rse
0
172
Member Avatar for Ralphael

i am writing an ajax code to collect information from a xml file but the file is not being read can someone please point out the problem for me the code is below. [CODE] <html> <head> <title></title> <script type="text/javascript"> var xmlHttpDoc = new XMLHttpRequest(); /*getcolor1 function*/ var options; function getColor1() …

Member Avatar for PlyrJames791
0
140
Member Avatar for buzzykerbox

Hi I would like to change the color of an external style sheet rule using .css method of jquery is this possible? and how would I go about it? Thanks,

Member Avatar for PlyrJames791
0
47
Member Avatar for krushed18

My problem is that I am trying to execute a function on button click event but it just shows not even for a sec it just flashes. html & Javascript : [CODE]<html> <head> <script type="text/javascript"> function createLabel(){ /*Get UserName*/ var unString = document.createElement("label"); unString.className = "userName"; var uName = document.getElementById("username").innerHTML; …

Member Avatar for stbuchok
0
190
Member Avatar for rakibtg

how to show a javascript warning message for some specific words from a textfield. if a user write [B][COLOR="Red"]http://[/COLOR][/B] and [B][COLOR="Red"]/[/COLOR][/B] in a textfield and click on the Submit button of my form then a javascript will show a error message to the user and submission will stop. How to …

0
89
Member Avatar for Pravinrasal

[B]I refer this website [COLOR="Green"]http://neyric.github.com/wireit/[/COLOR] and I used logic gates. I want to find out the positions of start and end of wiring from the terminals but didn't find out the positions . [/B]

0
82
Member Avatar for ben_dajao

[CODE]<td id="table-cell"><label> Travelers: </label></td> <td id="table-cell"><input type="button" onClick="" name="" value="Add Traveler" /></td> [/CODE] I need an ajax/js function that will generate an input form to be filled up when the Add Traveler button is clicked. (not open a new window but generate it on the [COLOR="Green"]same page[/COLOR]) So, I want …

0
114
Member Avatar for buzzykerbox

Hi I would like to change a css rule,with javascript this is what i have so far?? [CODE] body{ font-family: Arial, Helvetica, sans-serif; font-size: 12px; /* [disabled]line-height: 17px; */ color: #ffffff; background: url(images/bg.jpg); <script> function changeStyle() { var mySheet = document.styleSheets[0].rules || document.styleSheets[0].cssRule; for(var i=0; i<mySheet.length;i++) { if(mySheet[i].selectorText == "body") …

Member Avatar for buzzykerbox
0
124
Member Avatar for Violet_82

HI there, I have done a little work on a simple script to change images on mouse over and on mouse off. It was meant to be a very simple one but it is not working and I am not quite sure why. here's the coplete html and script code: …

Member Avatar for Violet_82
0
228
Member Avatar for buzzykerbox

Hello again,I'm writing a blackjack game for class,it generates two random numbers that select from a switch statement that creates a string file name of a card e.g "AceDiamonds.gif", it than fills an array deck[] with these strings,I want to fill the array with the full deck of 52 cards,and …

0
62
Member Avatar for talisien

Hi All, I found this code to disable dates in jquery datepicker [CODE]$(function() { $( "#pickdate" ).datepicker({ dateFormat: 'dd MM yy', beforeShowDay: checkAvailability }); }) for the datepicker stuff, and then: var $myBadDates = new Array("10 October 2010","21 October 2010","12 November 2010"); function checkAvailability(mydate){ var $return=true; var $returnclass ="available"; $checkdate …

Member Avatar for Airshow
0
2K
Member Avatar for didzmad

Hello all, I am looking to implement a new feature on my website. I would like to get a log in form that would take the members to an update page where they can update their details showing on my website Here are the features I need: - Log IN/OUT …

Member Avatar for stbuchok
0
134
Member Avatar for tqmd1

Dear Experts I have following codes [CODE]<html> <head> <title>this is first math exercise within Java Script</title> <script lanuage="Javascript"> function total() { Var amount1 = text1.value Var amount2 = text2.value Var total=eval(amount1) + eval(amount2) text3.value=total alter("Correct Answer") } </script> </head> <body> <center> <form> <table width="20%" border="1" cellpadding="1" cellspacing="1" > <tr> <td …

Member Avatar for stbuchok
0
83
Member Avatar for joannamanez

[CODE] <form name="myForm" method="post"> <textarea id="commentarea"></textarea> <input type="text" name="locate" value="<%=rs.getString("location")%>"> <input type="button" value="View Comment" onclick="getComment()"> </form> function getComment(){ <% String locate=request.getParameter("locate"); %> var location = "<%= locate%>"; document.getElementById('commentarea').value = location; } [/CODE] I know this is the worst way to access it, but i need to access it in this …

0
108
Member Avatar for xega

Hi I've been searching for an example on how to created multiple dropdown lists in Ajax and finally managed to find one: [URL="http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t"]http://www.coursesweb.net/ajax/multiple-select-dropdown-list-ajax_t[/URL] I got the example up and running on my server, but when I started to modify it to fit my own database, I got a problem with …

0
101
Member Avatar for chrisfozz

The code below was originally posted by langsor in 2008, I’ve adapted it to pass JavaScript values to a new page. I’d like the link to open the page in a new window, tab or iframe. I believe the code for a new window involves something to do with “target=_blank” …

0
27
Member Avatar for Tariqphp

Hi Sir , I have a problem in drop down menu .actually i make website in joomla ,so now i wanna change drop down menu of my website , i have download drop down menu "S5 flex menu" in this menu there are one file is mootools.php . when i …

0
37
Member Avatar for carlbrooks

I have a dropdown menu and some buttons below in my HTML: [CODE]<p> <select name="numberDrop" id="numberDropId" onClick="getButtons()"> <option value=""></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> </p> <p> <input class="answerBtns" name="answerA" type="button" value="A" /> <input class="answerBtns" name="answerB" type="button" value="B" /> <input class="answerBtns" name="answerC" type="button" value="C" /> <input class="answerBtns" …

Member Avatar for urtrivedi
0
2K
Member Avatar for jovypinoy

[B]Hello guys, I hope someone can help me on my problem. Actually I insert a jquery funtion to pause my slideshow but it didn't work..[/B] [B]Thanks for the help in advance. Here is my codes Variables for the links and images of slideshow.[/B] [CODE]<script> var links = new Array(); links[0] …

0
73
Member Avatar for manjushreekaran

hello all, after tried so much now posting here. i have two programs sql.php and form.jsp. i want to do insert values into mssql database from user input form. sql.php is able to insert the values into database. i have connected database using ODBC.form.jsp is able to give user input …

Member Avatar for cereal
0
207
Member Avatar for aa26i

Hi there, Script to show on the web page that how many times user loaded it or refresh it. the counter restarted from 0 on closing the browser and open it again. any help here will be appreciated. Thanx

Member Avatar for stbuchok
0
3K
Member Avatar for Virangya

why isn't this working? [CODE] $('body').find(".overcolor").click(function(){ alert("hi"); }); [/CODE]

Member Avatar for stbuchok
0
142
Member Avatar for dendenny01

I had a given a assignment of java script as to form a script that changes the background image of the document after equal interval of time.as i am a beginner to programming I had formed a script that should change background and a loop stated for image name to …

Member Avatar for dendenny01
0
849
Member Avatar for gchurch

hey i'm trying to make a traffic light that when the mouse rolls over a certain light the colour will show. then if the light is clicked the colour will either turn on or off... this is what i have so long. [CODE]<html> <head> <style type="text/css"> #trafficLight { border:1px solid …

Member Avatar for gchurch
0
223
Member Avatar for 11349

Hi All, Hope your all well Im really new to the world of JSP & AJAX, my question is, I need to retrive names from a database and present them to a user on a JSP form, but I shouldnt show any database interaction on the client end, So as …

0
68
Member Avatar for malcolm p

I have a spinner where user enters in their value or uses the buttons to increase or decrease the value. When the user is happy with the value in the spinner the user submits the value. The value would then appears in another table inside a textbox. What my question …

0
64
Member Avatar for Virangya
Member Avatar for Virangya

i wrote this code but noting happens.. can't find the error. even firebug is empty :( please help soon! [CODE]$(document).ready(function(){ $.ajax({ type: "GET", url: "tinymce.xml", dataType: "xml", success: function(xml) { $(xml).find('userdata').each(function(){ $(this).find('dataset').each(function(){ var title = $(this).find('redo').text(); var id = $(this).find('redo').attr('id'); //var url = $(this).find('url').text(); alert(id); //$('<div class="items"></div>').html('<a>'+title+'</a>').appendTo('#system'); }); }); } …

Member Avatar for Virangya
0
122
Member Avatar for mathieu89

Hey Guys, I have an issue with my checkbox and the values that are posted to the next page. The issue is that each time the checkbox is clicked it just adds another value. example - if i check it and uncheck it and check it again i will get …

Member Avatar for niranga
0
249
Member Avatar for ctoz

I have a switch function with four cases: each case executes a sequence of six css changes. How to stop it, if the viewer wants to abort, by choose another menu option? I've done a trawl, and the closest I've come to finding something which could be adapted is from …

Member Avatar for ctoz
0
144

The End.