920 Topics

Member Avatar for
Member Avatar for Ryujin

Embarrassed to say how many hours I've burned on this--am hoping someone can point me down the right path. This is more a conceptual question than a straight coding one. Building a web app to enable people to reserve stuff where I work. One of the pages uses a [URL="http://jqueryui.com/demos/datepicker/#date-range"]date …

Member Avatar for pritaeas
0
239
Member Avatar for hyperjase

I have some drop down boxes which are dynamically created via php, created from a number of either 6, 12, 24 or 36 - also created from a number of check boxes. What I want to do is show the total number of all the drop down boxes (so if …

Member Avatar for hyperjase
0
183
Member Avatar for eman neercs

Not sure if this can be done in php or whether I should look at other alternatives. I'm trying to access 4 different sources of data to put on one page - Amazon API, Ebay, our sales data on one server and our inventory data on another server. (Historical reason …

Member Avatar for eman neercs
0
192
Member Avatar for bisibee82

[CODE] $query = "SELECT item, description, price, imageData, status, username, item_id FROM items"; $result = mysql_query($query) or die(mysql_error()); $z=0; while($row = mysql_fetch_array($result)) { //echo other columns here// echo "<td><div id=status$z></div></td>"; <script type=text/javascript> function updatestatus(itemnum) { var url="updatestatus.php?auc=<?php echo $row['item_id']; ?>"; jQuery('#status' + itemnum).load(url); } setInterval("updatestatus(<? echo $z?>)", 1000); </script> <? …

Member Avatar for diafol
0
189
Member Avatar for mucokirca

i want my ajax and php codes, with 2 option value, show up two different texts or form packs. i have given html and php codes. i hope sombedy help me. im quiet new with this. thanks :) renkler.html : <head> <script type="text/javascript"> var istek = false; if (window.XMLHttpRequest) { …

Member Avatar for McLaren
0
316
Member Avatar for EddieC

Most of the reports out yesterday about the release of [URL=http://www.microsoft.com/ie8]Internet Explorer 8[/URL]Beta 2 focused on its so-calledInPrivate Browsing, which leaves no trace of the Web sites you visit and protects anonymity. And while that's certainly useful, developers are likely to be more interested in its improvements in DOM and …

Member Avatar for AleMonteiro
0
344
Member Avatar for jamesofknight

Hey guys, We have a requirement for a one to one chat from one of our clients for a social media kind of project we are doing. The problem is that we need it in quick time so i would rather use an already made component that is out there. …

Member Avatar for sufyan2011
-1
480
Member Avatar for job78

Hello, I have this javascript function: [CODE]<script type="text/javascript">$(function() { YAHOO.MediaPlayer.addTracks(document.getElementById("ajazload"),1,false)});</scr*​ipt> <script type="text/javascript">[/CODE] This function is loaded inside the <div id="main">, which is loaded via Ajax. How can I prevent the javascript function to reload itself at every #main ajax page load ? I just want the javascript function loads at …

Member Avatar for job78
0
686
Member Avatar for shahbaz13

Hello everyone, I want to make an Twitter like AJAX post viewer like if we click on any link, it opens in a new sliding div like Twitter's... Plzz. Help... Thanks in Advance..

Member Avatar for shahbaz13
0
55
Member Avatar for ferrari77

I've simplified it quite a bit but it's still not working. PHP: [CODE] <?php $a = array('data' => 'Hello'); echo json_encode($a); ?> [/CODE] Here's the JQuery Code: [CODE] function getCityAndState(data, location) { var jsonString = {"zipCode": data}; var outR = outputResults alert("JSON String:" + jsonString.zipCode); if (location === "living") { …

Member Avatar for Airshow
0
127
Member Avatar for ferrari77

Problemo: My PHP Script (it's just a snippet) is not picking up my JavaScript code. It doesn't even see the zip code field. It says it doesn't exist: [CODE] <?php $zipCode = $_GET[zipCode]; //echo "data:".$zipCode; $json = "{data:.$zipCode}"; echo $json; //echo json_encode(array("data"=>$zipCode)); //print ("Zip Code:".$zipCode); ?> [/CODE] I'm passing it …

Member Avatar for diafol
0
320
Member Avatar for sanityhien

Hello I'm new with AJAX and I'm trying to read an XML file with Javascript. It's supposed to display an alert message but it's not. What's wrong with my code? Thanks! :) HTML [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>XML Exercise</title> <script type="text/javascript" src="xmlExercise.js"></script> </head> <body onLoad="getData()"> </body> </html>[/CODE] Javascript …

Member Avatar for Troy III
0
300
Member Avatar for Mayank23

i need help, i want to pass a value to javascript from php and it keeps giving me "null". i want to get what picture the user selected. [CODE] <?php mysql_connect('localhost','root',''); mysql_select_db("ajax"); $query="SELECT * FROM xxxx"; $result= mysql_query($query); while($row= mysql_fetch_array($result)){ $rating=$row['ID']; echo "<img src =\"" .$row['filepath']."\" /><br/><a id=".$row['ID']." value='rating' onclick='getrating();'> …

Member Avatar for stbuchok
0
178
Member Avatar for Stickie

Hi, I'm not familiar with the AJAX way of doing this, hence why I'm posting this. I've got this form that needs to check if the user input is already in the database, if this isn't the case it should disable the submit button and display an error depending on …

Member Avatar for fobos
0
474
Member Avatar for peterpa

HI , CAN ANY ONE TELL ME HOW CAN I UPLOAD A FILE TO MY WEB SERVER WITH OUT USING <INPUT TYPE="FILE"/> , I JUST WANNA USE I BUTTON TO UPLOAD A FILE , AND WHENEVER I CLICKED ON THAT BUTTON I WANNA A FILE WHICH IS ON MY SYSTEM …

Member Avatar for diafol
0
233
Member Avatar for raphie

I would like to add an advanced print form into a customer web site. They have an online web form but they also want to have the form break apart into sections as PDF files so it's distributor print out only the sections they need. The full order form is …

Member Avatar for dean8710
0
2K
Member Avatar for dhanlak

Hi all, I have done an asp.net project using VS 2010. I have used jquery, $.ajax calls, updatepanels and pagemethods. I have included the ajaxcontroltoolkit.dll in the bin. What compatibility probles that are likely to occur. I have tested the project in IE8 and firefox 8. It works fine. Since, …

Member Avatar for dhanlak
0
160
Member Avatar for Jay-Kandari

Hey guys, Was really fed up with this problem .please check it out. I have a PHP page which calls and retrieves a text from other PHP page. Now using the Normal textarea element the value is showing in the textarea. Now I wanted that text area to be as …

0
177
Member Avatar for Mayank23

I want to make a rating system that uses ajax for the rating. i use php and call all of the images, then i want to use ajax to post all the votes to a php script. However, i dont know how to get the elements. I want to be …

0
105
Member Avatar for Virangya

hi, i want to load data after loading related php page. i used ajax and even jquery. jquery was not sure this is jquery code [CODE]$.post('<?php bloginfo('template_url'); ?>/bk_page/schedule_check.php', "", function(data) { $("#fieldsetConfirm").html(data);}) [/CODE] but this and when i was using ajax it changes data, but unfortunately, the pay now button …

Member Avatar for Virangya
0
212
Member Avatar for Virangya

hi , this is my code. i want to return data using a php page after processing a query within it. [CODE]$.post('check_booked.php', { room:roomv, srtdate:sdatev, eddate:sdatev}, function(data){ alert( data); });[/CODE] before completing php page i test using online code which returned nothing.. i don't know what wrong, as i have …

0
127
Member Avatar for rayidi

I'm Working with register module with xmlHttpRequest. I have checking all. When i was trying to redirect after successfull its displaying the response with in the given div. [CODE] <script type="text/javascript"> function showRegister() { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code …

Member Avatar for pritaeas
0
1K
Member Avatar for cip6791

Hi all, I'm doing some tests with ajax and php. The below code works when I load the page, but I would like to call it when I click a button. How can that be done? index.php: [CODE]<script type='text/javascript'> $.ajax({ type: "POST", url: "test.php", data: "name=name&location=location", success: function(msg){ alert( "Data …

Member Avatar for cip6791
1
16K
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 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 Virangya

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

Member Avatar for stbuchok
0
142
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 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 solomon_13000

The JavaScript logics below doesn't display the value from the demo_get.txt in ajax.html. Did I do something wrong? [U]ajax.html[/U] [CODE] <HTML> <HEAD> <script type="text/javascript"> function ajaxRequest(){ var xmlhttp; if(window.XMLHttpRequest){ xmlhttp = new XMLHttpRequest(); xmlhttp.open("GET","demo_get.txt",false); xmlhttp.send(); document.getElementById("panel").innerHtml = xmlhttp.responseText; }else{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("GET","demo_get.txt",false); xmlhttp.send(); document.getElementById("panel").innerHtml = xmlhttp.responseText; } } …

Member Avatar for stbuchok
0
176

The End.