I have an event to capture when the return key is pressed on a form input field, but the ajax call is not fired, instead the from is submitted as a normal http request.
$("#addurl").keypress(function(e){
switch(e.keyCode){
case 13:
// add url ajax call
$("body").html(ajax_load)
...
dear all,
i'm getting this problem with firefox and not with IE.
In first combo, i'm getting roles:
<tr>
<td>Select Role:</td>
<td>
<select name="usrrole" onChange="showuser(this.value)">
<option value=''>Please Select</option>
<?php
$rle = "select * from role_table";
$dorle = mysql_query($rle);
while($data = mysql_fetch_arra...
Hi,
I'm trying to implement a JQuery autocomplete widget based on a php service I have built. Right now, for testing, the service is extremely simple and only returns an array of three names. While debugging with firebug, I'm noticing my service is returning a code 200, but there is no response text that comes along with it. Obviously, ...
So, I have a list of nodes in a dynamic XML that is cached on a server. Using Ajax, I loop through the particular nodes to return a string each time:
XML:
<?xml version="1.0"?>
<Products>
<Product>
<ItemName>String</ItemName>
</Product>
<Product>
<ItemName>String</ItemName>
</Product>
<Product>
...
I've been working on this site for the past two weeks and everything has been running smooth until now. I have conflicting javascripts and all though I know what method to use to solve the problem (jquery noconflict), I have no idea how to use it!
In my case, I have:
a drop menu which uses the prototype js and a custom js
and a conta...
Using Rails RJS with jQuery, I have a link with an event binding on click that does ajax call with GET and returning dataType: script (with RJS providing the response).
Works the first time in Explorer, but after that, when you click the link, it tries to save the response as a file.... Any ideas how to get around this?
Only a problem...
Hi,
I want to create a form (flash or java/ajax) that allows selection data to be pulled from an xml file.
Example:
A ring builder application - the user selects the ring setting in one dropdown and then they select a diamond in another drop down. But the prices of the diamonds changes every day based upon the market, so we would need...
I have an area which gets populated with about 100 records from a php mysql query.
Need to add ajax pagination meaning to load 10 records first, then on user click to let's say "+" character it populates the next 20.
So the area instead of displaying all at once will display 20, then on click, then next 20, the next... and so on with n...
So I have a grid on a page that displays tablular data, with a checkbox by each row.
So in this situation, when a checkbox is clicked, allot of things will react on the page potentially.
Also, if a button is clicked, again allot of things will potentially react on the page.
So say if someone checks a checkbox, the row should be highli...
Hi, I want to take URL parameter and pass to ajax function,
var queryParams = dojo.queryToObject(window.location.search.slice(1));
var data = dojo.toJson(queryParams, true);
console.log(data);
getCategory( data );
...
function getCategory(input){
dojo.xhrGet( {
// The following URL must match that used...
e.g. like emailing but in a website..
I've googled and can't seem to find anything.
...
As a response to my previous question, I think I may have discovered which part isn't working correctly. I have a small section of PHP code which uses a PDO object to add to a sqlite3 database that is used in a AJAX call.
When this code is executed using the php cli by issuing the command: "php add.php" everything works as expected and...
How do I serialize dynamic form inputs?
<table id="mytable">
<form id="myform">
<tbody>
<tr><td><input type="text" name="row0"></td></tr> <!-- dynamically generated -->
<tr><td><input type="text" name="row1"></td></tr> <!-- dynamically generated -->
<tr><td><input type="text" name="row2"></td></tr> <!-- dynamically generated -...
Hi, simple question mostly explained in the title. I need to load up a page, but just it's #container div. I can't, though.
<div id="top"><a href="index.php">Home</a> | <a href="operators.php">Operators</a></div>
<script type="text/javascript">
$('#top a').click(function(){
var pageURL=$(this).attr('href');
$('#container')....
Using JQuery, and still a little new to it, trying to change an Link into a Drop Down of options, whi8ch the user can select from, and upon selecting a choice, it returns to a hyperlink with the text of the selection.
So far, I have:
$("a.timeChange").click(function(e){
e.preventDefault();
$stamp = $(this).text();
$.get("ts...
I have a jqgrid and after sending those grid records to server I want to empty the grid ...I am trying with reload but its not working...i am using it under complete ...but its not empty the grid grid instead it show me the same data...
how can I achieve it ...
...
Hello I am completely confused between json and ajax. When would what be used. I work with PHP on the server side. I regularly use ajax to receive data asynchronously, without invoking a page load. I use php's json functions to pass data to javascript. But I just started learning jQuery, and I am completely confused when to use function ...
Hello, i'm making portfolio site template. I have problem about "active link" for my full ajax site.
When i open url (http://bit.ly/d5qNeN) directly, url doesnt come up with addClass function.
How can i add 'selected' class for directly opened urls?
Here is my jquery code, which adds 'selected' class to my navi bar.
$j("a[rel=...
Suppose user requests an action, the page is equipped with ajax so the request has been made through javascript and the status of task are updating every 10 seconds.
The problem is if the user close the page at this time the task would be lost?
I want the php request, continue and complete even if the user closed the page.
How can I do...
I'm making a script that lets my users open the page, vote for our site, and then get a password to some restricted content on the site. However, I plan on storing the password in a file outside public_html so it cannot be read directly from the source code.
Is there any way to do an AJAX call to a file above public_html? I don't want t...