ajax

JSF h:ajax tag problem. The datagrid doesn't relaod

Hi this is my Code. It does not work for me. But it works in the solution of a friend. I don't know whats the reason. I don't get any error. All seems to be fine. But if i click my radiobutton nothing happens. I'm getting crazy pls help! <h:form id="form"> <h:panelGrid id="baseData" columns="2"> <h:selectOne...

Architecture: MVC based web-apps around a REST interface

I'm not sure how to phrase my question.... From different sources I pick up the idea that it makes sense to build web applications around a REST interface. A REST service could execute some controller logic (validations, database-access, etc) and then return a (static) *.xhtml resource. Combined with a decent javascript framework, thi...

$_POST is empty when using AJAX (Prototype)

Hi. I am fairly new to PHP and I am experiencing a problem that I can't find an answer to anywhere!! It really bugs me... I want to post data to a PHP script using AJAX. I am using the JS framework Prototype to do AJAX communication. Here is the JS code: new Ajax.Request("/ondemand/Radio.php", { method: 'POST', par...

ajax control toolkit 3.5 is not working for visual studio 2008 ? can any one help ?

When I drag the textboxwatermarkextendor control from the tool box , it is adding the textboxwatermarkextendor control to the textbox. but when I execute it , the control is not showing the watermarktext. any one please help ? ...

How to make facebook like private message

Hi, When you send a private message to someone on FB in the TO field when typing the first letter a suggestion appears then it becomes a little box with the name of the user you selected which can be deleted, anyone got a tutorial on this? thanks ...

call asmx via jquery gets wrong url

hi everyone 4 a few days now im trying 2 get an asmx webservice to work via jquery Heres my code <script type="text/javascript"> $(document).ready(function () { $("#btnTest").click(function () { $.ajax({ type: "POST", url: "/WebService.asmx/HelloWorld", cache: fal...

problems with ajax request in page with form. jquery

Hello, I'm making some things with jQuery ajax function, and I have a problem when I put a form in the middle of the html. In a nutshell: I have a dummy form that is controlled by the ajax, when it is submitted the ajax function complets the inputs below. The data submited by the ajax is contained in a form tag that is submitted when a b...

jQuery AJAX help.

Hi All. I am new here, and I have looked at the other Ajax Help topics, however, I still can't see why mine isn't working. Here it is: $(document).ready(function(){ $.ajax({ type: "GET", url: "localhost/val.php", data: "val=RichieC", success: function(msg){ alert("WOO"); } }...

How do I add a cancel button to my jqgrid?

I've got a jqgrid (version 3.5.3) on my site which gets its results from an ajax call to a web service. Often the query is complicated and it takes a few seconds to load the result. While it is loading the user sees a box [Loading...]. In case the users realise they're searching for the wrong thing, the client has asked to add a cancel...

Patterns / strategies for creating a complex nested AJAX / jQuery form

We need to build quite a complicated form, which will allow creation / updating of multiple instances of entity A, where entity A can have multiple instances of entity B. Both types of entities are quite complicated (lots of fields and dropdowns) but only a few of these fields need filling in on creation. The requirement is to be able t...

Registering JavaScript files and dependent inline code

I have two arrays. A list of urls to JavaScript files that I am registering with $.getScript(url); A list of inline JavaScript commands to register with $("html").append(inline) Any items in (2) may be dependant on any items in (1). Meaning that I have to be sure that all items in (1) have finished loading before any of (2) are regi...

How to include a CSS link if a call isn't done via AJAX?

I have a page 'foo.html' that populates a table via AJAX 'ajax.html?options=option1'(accesses a database.) 'foo.html' has a css linked to it that makes the table from ajax.html look nice. However, I'd like to have ajax.html also look nice with a css if it is directly accessed. if I add <link rel="stylesheet" type="text/css" href="/dev/...

Drupal is extremely slow handling simple AJAX calls

Hi, I wrote a simple AJAX callback function in Drupal that performs a query to the DB and returns a JSON formatted string. Nothing fancy, the standard AJAX declaration in the module with a modest amount of information (less than 4KB). The query to the database takes 52ms. Drupal adds around 320ms of overhead for a total of 370ms + laten...

beginner Javascript ajax form help

Hello all I'm new to this whole thing still. I would like some help figuring out how to do this please. I can pull info out of a database and put stuff in using ajax/javascript but I cant figure out how to complete the problem below. I want to be able to make my php form submit and update with out page refresh. Example. Page1. Main p...

How to show an input after doing $ajax->observeField

Hi, I have a form with two inputs: echo $this->Form->input('articulo_id', array('empty'=>'---Select---')); echo $this->Form->input('numeral_id', array('empty'=>'---Select---', 'type'=>'hidden')); When the first one changes state the second one gets updated and auto-populated; this is how it gets updated: $options = array('url' => '...

Unable to use "class" methods for callbacks in JavaScript

I'm having a really rough time wrapping my head around prototypes in JavaScript. Previously I had trouble calling something like this: o = new MyClass(); setTimeout(o.method, 500); and I was told I could fix it by using: setTimeout(function() { o.method(); }, 500); And this works. I'm now having a different problem, and I thought ...

How to check user entrance and exit URL

Hi, I've looked at a couple different analytics programs (like Google Analytics) that will tell me what URL my users have entered my site from, and which URL they are going to when they exit. It certainly must be possible to gather this data somehow, I just can't find any code examples of how to do it. I would imagine that it involves...

How do I determine when a series of GET requests finish?

I would like to do a series of get requests, and then preform some action after all of the get requests have finished. Below is a starting point on the code I have, but since the get request is asynchronous, the "do some action after all getJSON requests finish" executes right away. What is the proper/best way of going about this? ... ...

How facebook.com chat working, with few different domain name?

How facebook.com chat working, with few different domain name? GET http:// www.facebook.com/ajax/presence/reconnect.php?__a=1&reason=6&iframe_loaded=false&post_form_id=23be2df75b74a0bcb61358814c56ba4f 200 OK GET http://0.50.channel.facebook.com/x/2562941315/4271808869/true/p_1529934952=2 200 OK I want something like, with jQuery... B...

AJAX autocomplete or autosuggest

I am trying to incorporate an ajax autocomplete/autosuggest control into my website and am coming across all kids of issues. I tried the ajaxcontroltoolkit but ran into a deadend there. I would prefer not to get into jquery being I'm feeling overwhelmed enough as it is. I found this one http://www.codeproject.com/KB/custom-controls/Au...