Hello everyone.
I'll cut right to the chase. Right now I am developing a web based application. It has a PHP REST based architecture that serves up XML documents. On many of these documents attributes are hex encoded picture strings.
On the client side jQuery AJAX fetches an XML document with a picture in it. I need to display said pic...
Hello,
I am trying to grab a value from a url:
http://localhost:8080/bin/task_status?id=2&cmd=percent_done
I am unsure how to actually do this within a javascript (ajax) command that once the page has been loaded will be called every .5 seconds. It is using the AJAX built in progress bar to display.
...
Hello, I want to create a form that has a div with id "captcha". When the user enters a wrong password, following code is generated in "login.php"
$myCaptcha=recaptcha_get_html($publickey, $error);
$xml="<captcha><![CDATA[".$myCaptcha ."]]></captcha>";
echo $xml;
recaptcha_get_html($publickey, $error); generates this:
<script type="t...
I am having trouble to understand how to expose the WCF services through Javascript. Here are what I found after days of research:
Exposing WCF services through Javascript but not self host: http://msdn.microsoft.com/en-us/library/bb472488.aspx In this example, it requires the creation of a .svc file <%@ServiceHost language="c#" Debug=...
Hi,
I am new to ajax and django.
I have written own XMLHttpRequest call on browser side I will have to manually set the header request.META['HTTP_X_REQUESTED_WITH'] to string XMLHttpRequest .
How can I access these headers on browser side
...
using javascript.
I have a file in string (getted with ajax request). How to upload it as file to server by another ajax request ?
...
I'm trying to add nodes to my drupal site, from a campaignsite using AJAX request.
I have set up a menu_callback item in my hook_menu, that checks if any $_POSTs are coming in, and it works if i make a form that has the action='http://mysite.com/menucallback/url', but i get nothing in response if i make the same request with ajax.
I h...
I've written a CMS which uses the PHP function json_encode to send some data back via an Ajax Request.
Unfortunately, I'm trying to load it onto a server which is running PHP version 5.1, the json_encode PHP function is not available on versions of PHP before 5.2.0.
Does anyone know of a way to encode a PH array as JSON without using t...
my code(prototype 1.6.1)
Event.observe(window, 'load', function() {
new Ajax.Request('/modal/order_same/', {
parameters: {},
onComplete: function(){alert('err0');},
onSuccess:function(){alert('err1');},
onCreate:function(){alert('err2');},
onFail...
Based on a click event on the page, via ajax I fetch a block of html and script, I am able to take the script element and append it to the head element, however WebKit based browsers are not treating it as script (ie. I cannot invoke a function declared in the appended script).
Using the Chrome Developer Tools I can see that my script...
Hi,
I'm using jquery, and I want to access some data on my server using ajax. The server is running google app engine (which is just a bunch of servlets). Can someone point me to a sort of tutorial on how to implement a servlet that can talk to an ajax request (ideally made from jquery)?
I think I just need to create a servlet, and th...
I have several data-driven custom built webparts that work fine in the visual studio. Followed a blog http://gj80blogtech.blogspot.com/2010/04/configure-ajax-in-sharepoint-2007.html to the letter to incorporate AJAX as some of my webparts use update panels and tab panels.
My custom web parts are listed in the web parts library and when ...
I have an image tag that fires a jquery function using ajax, when clicked, to download images from another source to the server.
At the same time when the image is clicked it opens up a new tab and tries to load the image that is being downloaded. How can I make the link not open until the image is finished downloading to the server?
Th...
I need to send click information on my website to a third party server using ajax (json). I am using jquery and I added the click event to certain links. In the click event I am making a json request to a remote server with the location of the click (heat map) and some other information.
The problem is that the ajax function doesn't fir...
I've got something that works perfectly in FF and MSIE but it's not working properly in Safari. It's a form with selects that get updated via AJAX/jQuery from a MySQL DB.
In Safari, when you select the first item, it correctly loads the options for the next select menu; however, when you choose one of those (which loads new options in a...
Hi all,
I am working on a website that uses a hashchange ajax navigation. The urls look something like this:
domain.com/#contact.html
etc...
The site is going to exist in several languages and i want to place the language menu outside of the ajax content div, in the header for instance (a part of the page that stays the same).
My...
hi there,
i am posting data with jquery ajax to php but if input has ' inside, data wont be posted. I tried encodeURIComponent but wont work.
any idea on this ?
thanks
EDIT:
my code
var name = $("input#name_add").val();
name = encodeURIComponent(name);
$.post("function.php", { name: name }, function(data) {
...
Hey now!
I'm doing a project similar to Google Reader.
I'm using Infinite Scroll jQuery Plugin which works exactly as advertised when viewing the contents of the default selected category (in a scrollable div).
However when selecting another category (or folder in the case of Google Reader) and the contents of that category is loaded...
Hi,
I've created a view in Drupal that retrieves a list of nodes. The display of this view is a page and it works perfectly well. It does even allow me to filter its content by argument.
See the current's view configuration (click to enlarge):
I want to use AJAX to use the filter (by parameter) functionality without reloading the pa...
Hi all,
Basically there are two tables: Companies and visitors. Currently it's possible to drag visitors to companies. Works great. As soon as the drop function occurs, there are two $.post's. The first one saves the drag to the database. The second one updates the visitors, because the information constantly changes. The problem, howev...