Hello all,
I am trying to make an asynchronous request with POST method from a web worker used in my extension. The thing is that it does not work for me.
On the server side I have PHP script listening for data in $_POST variable. Although I am able to establish connection to the server, and even pass some data in URL (GET), the $_POST ...
Ok, so all the rage these days is having a site like this:
mysite.com/
mysite.com/about
mysite.com/contact
But then if the user has Javascript enabled, then to have them browse those pages with Ajax:
mysite.com/#/
mysite.com/#/about
mysite.com/#/contact
That's all well and good. I have that all working perfectly well.
My questio...
I'd like to trap any unhandled exception thrown in an ASP.NET web service, but nothing I've tried has worked so far.
First off, the HttpApplication.Error event doesn't fire on web services, so that's out..
The next approach was to implement a soap extension, and add it to web.config with:
<soapExtensionTypes>
<add type="Foo" priori...
It ended up being the $(document).ready was missing. Now that I added that the returned html does not seem to want to display. Is there something wrong with the below code?
success: function(data){
jQuery('#response').empty();
var response = jQuery(data).find('#response').html();
jQuery('#response').hide().ht...
Main.html
Main Page
GetPage.js
function ahah(url,target) {
document.getElementById(target).innerHTML = 'loading data...';
if (window.XMLHttpRequest) {
req = new XMLHttpRequest();
req.onreadystatechange = function() {ahahDone(target);};
req.open("GET", url, true);
req.send(null);...
So I have an image gallery that uses thickbox. When I first load the page and click an image, it loads fine into the thickbox. However, after performing an ajax sort of the images and echoing back identical thickbox urls, clicking on one of the images displays the content in a new browser window rather than a thick box.
Any thoughts?
...
I'm interested if there is some tool (preferably a firefox addon) that allows you to record http requests and view their response header and content.
...
I am using Jquerys ajax function to post data to my database. I have a textarea that allows users to type in their posts and update it to the database.
Here is a code snippet:
$.ajax({
type : "POST",
url: "process.php",
data: "postmessage="+ postmessage +"& from_user="+ from_user +"& from_username="+ from_username,
My pro...
HELP!! following code doesn't work! why?
<html>
<head>
<script type="text/javascript">
function loadXMLDoc()
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
alert("aa");
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new Activ...
Hi,
I'm currently messing with google's apis using ajax trough jquery library.
In order to use a google service API i need to get an auth token sending a request to ClientLogin. Actually, i've no idea how to pass the token to the second request .
I've set a global variable token as var token = null;
I call two requests on $(document)...
I use an AJAX-Request to load a part of a Webpage, the request is handled by a framework, which delivers the content. After that, I use jquery to insert the delivered content into the DOM-Tree. So far, so good.
But I use background-images for links in the delivered content, which are generated while processing the AJAX-Request. Normally...
I'm making a script where a user enters a value and clicks Submit. However, I want it to pop up an alert asking if they are sure, if the value is already in the database. I was thinking of doing this with AJAX, but a friend of mine is a jQuery fanatic and told me to go with that instead.
What would be better for this task, and how would...
Im using jQuery/PHP/MySql to load twitter search results on the page but limited to the first 20 search results.
When the user scrolls the page and hits the bottom of the page a further 20 results are loaded and displayed.
I have implemented a voting system so the these particular tweets can be voted up and down.
However when the scro...
Is there any way I can change the URL or add more history to the "back button" without having to refresh the entire page?
My application is AJAX based and I'd like to add some "undo" events to history so that the user can simply hit back and retain the old values.
What's possible today? I hear some of this may be in HTML5 but haven't ...
I have a list of posts that is loaded onto my page using ajax like so:
var fm = <?php echo $from_user ;?>;
$("#microblogposts").load("posts.php", {from_user: fm}, function(){
});
Within this list of posts I have a function to delete posts from the list:
//START POST DELETE FUNCTION
$("form#deletepost").submit(function() {
/...
Hi,
I'm currently messing around with google APIS.
My code consist of 2 request : One for the authentification (using clientLogin). Another to interact with the service from which i need the data.
Actually i'm stuck before executing the second request. I'm trying to set an header value to the token value received from the first request...
Hi,
I'm trying to deploy a WCF-service, but I'm having dificulties getting the final bits to work. I'm not a deployment guru in any way, so please bear with me.
I'm using a WebHttpBinding to make Ajax calls to the service using JSON, but I receive the error: "Could not find a base address that matches scheme http for the endpoint with ...
Why hello there Stackoverflow,
I have a nutcracker for ya, is there an "good" way to create 100% custom forms or rather just textboxes and have the values sent to an url like so: http://site/drupal/formreciever-content-type , post-sending the values of X textboxes with jQuery for example? Without having to do so much backend work, right...
Hi,
Thisis the code I use to display an aspxloadingpanel with an ms update panel:
var prm = Sys.WebForms.PageRequestManager.getInstance();
prm.add_initializeRequest(initializeRequest);
prm.add_pageLoaded(pageLoaded);
function initializeRequest(sender, args) {
pbar.Show();
}
function pageLoaded(sender, args) {
var panels = ar...
I have some content that I am loading to my page using AJAX. When it loads it flashes on screen and looks a bit messy. Is there anyway to add some jquery animations to it???
$("#posts").load("posts.php", {from_user: fm}, function(){});
...