ajax

How do I add data to an <a> tag for use in Ajax Requests?

I would like to have a link with looks something like this: Call to Action. However, if the javascript hasn't loaded completely and a user clicks that link, they will be redirected to a php script which spits out json. Alternatively, I will likely do something along the lines of Call to Action. Is this the best practice for handling t...

Issues using a link_to_remote to change the state of the database?

hi, anyone know of any issues using a link_to_remote to change the state of the database? I'm taking about issues with spiders, google accelerator etc. Twitter seems to do it with no problem. Thanks ...

Problem with jQuery AJAX requests: relative vs. absolute urls

hey there, I'm having a hard time getting my AJAX requests to work on a staging server. It all worked fine on my development machine, but as soon as I uploaded it, all my AJAX requests stopped working. I found out that, if I change the relative urls (eg. "index.php") to absolute urls ("http://mydomain.com/index.php") the requests work a...

how to construct a zend_dojo xhrPost request

hello all, im new in dojo please how do i construct an XhrPost request in zend? thanks. ...

Exhaustive DashBoard Control in Windows Forms Application

I am developing a Windows Forms Application in which UltraWinGrid plays a vital role. Now the requirement is that I need to provide a dashboard feel which should contain Charts, Indicators, Grids, Reports,etc of the same data in a single view. We can create a user control which consists of navigation bar, explorer bar, charts,etc and use...

Mastering ajax data loading

Hi all, It's not that I'm not familiar with the concept but I'm wondering about what is the best approach when you are creating applications supporting ajax userexperience. I mostly use ajax with jQuery but also when I want to load information without a pagerefresh. As you will probably know, the XmlHttp Object and the ResponseText pro...

Jquery ajax method always fires error: callback instead of success:

Hi I am having a problem when using the ajax function in jquery. The ajax call seems to be running fine, i.e. the code that is returning an xmldocument runs without errors. Here is that code. Jquery code: function LoadWeekDays(){ var xmlDoc=new ActiveXObject("Microsoft.XMLDOM"); xmlDoc.async="false"; xmlDoc.loadXML("<data...

jQuery subscription link toggle

I have a subscription link on a page that the logged in users can use. Toggling the link on the page is no issue, as I can do a .post and echo out what the PHP returns if ($subscription == true) { echo 'Subscribed'; } else { echo 'Click to subscribe'; } However, what bugs me is that I have to write that same piece of code in my t...

Problem with very simple ASP.NET 3.5 app, using C#

My problem is that I can only seem to click the button once, if I click multiple times it's like it's dead. Doesn't do anything. So if I click it once it sets the text to "Works". How come it doesn't keep alternating between values when I click many times? I have the following C# code (I know I am using too many namespaces, but please d...

php "football manager-lite" match engine

i am preparing to build my football manager php game but i am currently worried about how i am going to implement a realistic match engine. i have no experience whatsoever of creating game engines within php. the type of engine i am hoping to build is one which fetches a certain range of in-match phrases that commentators usually make i...

JSON.parse fails in jQuery when PHP response-header contains "application/json"

Hi there, I'm getting a bit of a headache trying to figure this one out. To request some json-data from a PHP-script via Ajax, I'm using the jQuery function: $.ajax({ type: 'GET', cache: 'false', url: ajaxUrl, data: dataString, success: updatePage }); If I don't set content-type in the PHP header to: header('Conte...

Why Ajax request, using the GET method, cannot be cached in Opera?

Please look at this small test: http://www.karapuz.by/media/js/ajax-GET-caching-test.html It seems that Opera (mine is 10.10), in contrast to IE, FF, GC, and Safari, is not caching the ajax response, even if it is explicitly told to do that. Any ideas? ...

Attaching hashtag to URL with javascript

I want to build an ajax site without sacrificing SEO. My question is: If I have link on my page like this: <a href="http://mysite.com/cats" id="cats">Cats</a> <a href="http://mysite.com/dogs" id="dogs">Dogs</a> ...when each link is clicked I would like to update the address bar with the corresponding hashtag. So, if "Cats" link ...

Populating and updating an oddly shaped grid (or table) with JQuery and AJAX

Hi all- I have a weird grid with different height columns. By this I mean, column 1 may have 4 squares that need to be filled while column 2 may have 5 and column 3 may have 2. For the purposes of this question assume they are static and the values are as follows: Col | Height --------------- 1 4 2 3 3 5 4 ...

Calling javascript function in asp.net

Ok so this is a snippet of my aspx file, I am trying to call a "hello world" function from the 'test.js' file. This is obviously not working, could someone please recommend me a good way of doing it? <asp:ScriptManager ID="ScriptManager1" runat="server"> <Scripts> <asp:ScriptReference Path="\App_JavaScript\test.js" /> </...

How to update a mysql field when a checkbox status changes? using jquery (ajax), php and mysql

Hi guys, I'm new to jquery and ajax and I'm having trouble doing this... I have a php webpage that builds a table with values from a mysql table. The rows are "messages" and the last field of the row is a boolean field "read" that states if the message has been read or not. Building the table, I transformed the boolean value to a chec...

Passing JSON to Python script via AJAX

What's the ideal way to pass a large JSON data object from Javascript through AJAX to a Python script? ...

jQuery Hovermenu

I have a div("dv1") with AJAX update panel inside which contains multiple dropdown controls. These controls do a postback when the index is changed. Then I use a jQuery hover function like the one below: $('#lblDate').hover($('#dv1').slideDown(),$('#dv1').slideUp()); This works fine when I hover on the label, but whenever I try to sel...

PHP Form Return and Refresh

Looking at the previous implementation of a site that I'm working on, I can see that we have an options form that is calling a ManageObject.php script. That script does some actions on a number of objects, and then returns to the page via the following code: echo "<script type=\"text/javascript\"> window.history.back();</script>"; My ...

Validators blocking navigation in asp.net ajax

I am encountering issues in the navigation defined in a master page which are being blocked by validators pages that inherit from the master. How can I disable these validators so that they do not prevent my button actions in the master page? I am using AJAX controls in child pages. ...