Hi I'm trying to create a simple registration form with ajax validation. I've got the form working almost how I'd like... a message appears on the page with the errors for each field entered incorrectly.
The problem is all the error messages appear in one div together and I would like to have each field have its own div containing only...
Hi everyone,
I'm struggling with a problem on a web-based application I'm working on where I want to sort on all columns of a page. Every column BUT the one that contains INPUT tags (it is a date column that allows AJAX-style edits and has a little calendar pop-up that helps you choose a date.
Is there a way to work around this prob...
I'm developing a JavaScript application that's meant to be run either from a web server (over http) or from the file system (on a file:// URL).
As part of this code, I need to use XMLHttpRequest to load files in the same directory as the page and in subdirectories of the page.
This code works fine ("PASS") when executed on a web server...
If I take the alert call out of the following script firebug says that results is undefined?`
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Inventory Management</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
...
If have a html form like
<form method="POST" action="http://.../file.php">
<input type="text" name="data" id="data" />
<input type="submit" />
</form>
I want to make a ajax-request with jQuery, but I don't want to use an invisible form to submit this. But somehow I don't get it to work. My try was
$.ajax({
type: "POST"...
Solution
var options = { opacity: opacity }; //Many thanks to David Higgins for his help
var direction;
if(id == "chat") {
direction = {right: dir + amt, top: dir + amt };
} else if(id == "rplayed") {
direction = {left: dir + amt, top: dir + amt };
} else if(id == "info") {
direction = {right: dir + amt, bottom: dir + amt...
I'm having a hard time getting the answer for this...
Am I able to get html elements from a php file with ajax? I have a feeling I'm trying to do something I'm not supposed to do.
I'm using:
.
.
.
<tr>
<td colspan="3" style="font-size:11px;"><a href="javascript:void(0)" onclick="getData('includes/forgot-passwordajax.php', 'ta...
What is the difference between using:
$.ajax({
type: 'POST',
url: Drupal.settings.basePath + 'module/get/' + node,
dataType: 'json',
data: { 'ajax' : true }
});
versus:
$.ajax({
type: 'POST',
url: Drupal.settings.basePath + 'module/get',
dataType: 'json',
data: { 'ajax' : true, 'node' : node }
});
In the first case ...
I'm trying to implement a live search on my photos site using jQuery and the autocomplete plugin. Everything works when I specifiy the data locally:
var data = [ {text:'Link A', url:'/page1'}, {text:'Link B', url: '/page2'} ];
However when I move this to PHP, jQuery is unable to parse the results properly. I'm really not sure what's...
in my code i have done something like this.
$.get('/Home/Module/Submit',
{ moduleName: ModName,
moduleParameters: moduleParameters
},
function(result) {
$("#" + target).html(result);
});
when i put alert in the function(result) {..}
it shows html perfectly(both in a...
problem: trigger errored when block UI is called on this code
(function($){
function preloader()
{
$('a#preloader').click(function(e){
e.preventDefault();
var url = base_url + 'runtest/preloader';
$('div#content').load(url, preloaderCallback);
});
}
function remotePrelo...
I want to implement a functionality of changing user's password. It's basically a form with three fields. the ids of the three input are oldpassword , and newPassword and newPasswordAgain .
When the user lost focus of the oldpassword input or submit the form , I want to check against the database , to see if the oldpassword is correctl...
Hello,
I'm going to get the checked radio button value using AJAX in PHP. I have done the following code, but i can't continue.
I need your help.
ajax_radio.php
<html>
<head>
<script type="text/javascript" src="ajax.js" ></script>
</head>
<body>
<input type="radio" name="radio1">Blue</input>
<input type="radio" nam...
I need to load some ajax content after the fieldset with the class address. Using the code below it will replace the content of the .address with the ajax content.
$('.accordion .head').click(function() {
$(this).next().find('.address').after().load('http://test.dev/search/view/IdDaytrip/' + $(this).attr('id') + '.html');
$(...
I have a document with one CSS linked in. How can I replace the current CSS with one coming from a document that I just fetched with AJAX request using jQuery?
Here's the code I am trying right now, but with no success so far:
$(function() {
$.get('next_page.html', function(data, textStatus) {
$('link[rel=stylesheet]:first'...
in my page i am calling a controller using $.get with some parameters ,
that controller returns me a view page (.aspx),
now, i bind that page to a different div every time as this function can be iterated (or called multiple times) these div s are already created and then result is mapped to each div
function getview(Name, Paramete...
I was recently asked to stop using the Ajax Control Toolkit 3.0 in my application and need to go back to 1.0. Luckily I only have one calendar control which I don't believe will be affected by this.
I have removed the reference to the 3.0 .dll and added a reference to the 1.0 .dll.
These are the assemblies in web.config:
<asse...
Hi,
I need help of getting this piece of code to work
1) I want to automatically start a media player when a pop-up is open, by changing is URL params, that the pop-up has
2) When the user clicks on on the link I want to replace the old URL with the one the new one clicked. Try using location.replace just ends up being a constant loop...
Hi!
I have a basic model :
class MyModel(models.Model):
my_field = models.CharField()
I have a basic form for this model :
class MyFrom(forms.ModelForm):
class Meta:
model = MyModel
And I have a function that does a basic lookup (a lot more complex in reality, regex etc. won't do) :
POSSIBLE_VALUES = ['aa', 'bb', ...
I have a dropdown list on my form with Integer Values set and displaying text. When I run the following code to display the Value and then associated text, I find that the text is displayed in as value when it is not supposed to. Any work around to this please?
function OnddlChanged(dropdown)
{
if( dropdown != null)
{
var selindex ...