ajax

Prevent AJAX chat from showing duplicate messages (Javascript, PHP, MySQL)

I have made an AJAX chat using Javascript, PHP, and MySQL. I send the chat data with JSON from a PHP page that gets the data from a MySQL database. Each chat message is inserted into an array and pulled with an AJAX call every few seconds. Each row in the database has the timestamp of when the message was posted (the timestamp has the...

Crawlable ajax pages

Hi, I've read about Google and Google's possibility to crawl ajax pages using hash followed by a exclamation mark in the url, #! ( http://code.google.com/web/ajaxcrawling/docs/getting-started.html ) I have changed my website and I was wondering about Google Analytics. How do I track my visitors ajax requests? Thank you in advance! ...

Asynchronous file transfer in ASP.Net Chat Application (peer to peer)

Hello I've developed a chat application using WCF/ASp.net. I want to asynchronously transfer a file from one chat user to another chat user. What is best approach for this? here are my insights/doubts Do i need a central server between two users to assist the file transfer? Can i create a direct channel without a central server? Do i...

3rd party tool that can generate a list related articles for a japanese-language site

Hi, I run a site with a large number of news articles. I'm looking for a 3rd party tool(or widget) that, when placed on an article page, would generate a list of related articles within the same site. So my requirements are: Returns a list of links to related articles Has to be integrated front-end (javascript,ajax,etc) Has to sustai...

Modify Protocols With Chrome Extension?

I have an idea for a chrome extension where I take a protocol, just for example, helloworld:// and in the url bar you could do helloworld://check this out and i could have the plugin alert "check this out" or do some other complex AJAX stuff? Is this possible? ...

Can we create a ajax form within a fieldset of another form?

Is this possible? The ajax form's purpose is to serve as a selector for the main form. ...

Ajax document.getElementById in innerHTML doesn't work

function showSchedule() { if (request.readyState == 4) { if (request.status == 200) { document.getElementById("content").innerHTML = request.responseText; /* put alert to enroll submit button */ document.getElementById("enroll").onclick = doIt; } } } function doIt() { ale...

jQuery: how to use dialog-modal confirmation before deleting?

This is the 1st time i'm use jQuery dialog_modal confirmation. i want to use this before deleting data inside ajax function. i'm still confuse how to put this script correctly. Before use this dialog i have some script like: $('#delete').click(function() { var params = $('#deletedata').serialize(); $.ajax({ ...

Display default text in textbox when a MaskedEditExtender is attached to it

I am using MaskedEditExtender and MaskedEditValidator to validate time entered by the user in a textbox it works fine on my computer but when I deployed it on the server the default text I want to display in the text box is not getting displayed in it intead the text box gets displayed with empty text. My code is shown below : <asp:Text...

javsacript/ajax help needed

Hi, how can i get the document object out of this var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml"); ...

HTTP Ajax Request via HTTPS Page

Hi, I am having a site with some pages on https connection. From these Https pages , i have to use a http ajax request for some errors retrieval like blank fields. But This error messages are not coming. Is there any solution to it or i have to make that ajax request to file on https connection . Thanks in advance ...

Error updating Sharepoint List item, when called from web service.

I'm using ajax to call a webservice which updates a sharepoint list. It works when I call the code from unit tests, but running the code in a browser causes an exception: System.InvalidOperationException: Operation is not valid due to the current state of the object. at Microsoft.SharePoint.WebControls.SPControl.SPWebEnsureSPCo...

In chrome , Origin is always showin NULL if consume WCF service from IIS

I made a wcf service and it hosted on IIS 7 . Now i made a local html file with following code function CallWcfAjax() { try { // PROCEED ONLY IF OBJECT IS NOT BUSY if (xmlHttp.readyState === 4 || xmlHttp.readyState === 0) { // PASS SERVICE URL var url = "http://jai31/...

Web service call with Query Ajax hangs.

Before I start posting a ton of code I think I may be able to explain my situation more logically. I have eight drop downs on a page being populated in exactly the same way except they are using different stored procs. The ones that return a LOT of rows (around 44000 but each rows is only about an average of 5 characters) are the ones th...

Listing out JSON data?

How do i display the values that JSON returns? function akaiphoneResponse(searchText){ $.ajax({ type: "GET", url: Drupal.settings.basePath + 'akaiphone/response', data: 'search_text=' + searchText, success: function(data) { $("#search-results", this).empty(); var jsob = jQuery.pa...

PHP- Ajax and Redirect

i have a jquery Ajax request happening on a page. On php side i am checking if the session is active and doing something. If the session is not active i want to redirect the user to another page in php(header redirect). how do i do it. I know how to achieve it in javascript(i.e if session_fail then change window.location but is there...

Add exception message to json response

Hello, I have a code which throws a specific type of exception like this: throw new BadDataException("error message"); these kind of exceptions are thrown inside a method whose response type is json. I have a configuration for this exception type like this: <global-exception-mappings> <exception-mapping result="badDataError" e...

jquery: autocomplete with remote xml source

Hi, I am trying to implement an autocomplete textbox whose values are generated by a remote script returning XML contents. I'm using JQuery-1.4.3 and the autocomplete widget from JQuery-UI-1.8.5. I've studied the autocomplete demo page for the XML data parsed once example, and am trying to implement the comments: This should also s...

Problem with JS jQuery AJAX

Hi all, i have a problem with my code. function fnFormatDetails ( oTable, nTr ) { var aData = oTable.fnGetData( nTr ); var sOut = ""; var ajax = $.ajax({ url: "/wemi/mediaplaner/show?id="+aData[1], success: function(data) { //return data; //return sOut = data; //con...

Structure of php JSON output

this is continued from another question i asked: http://stackoverflow.com/questions/4033116/listing-out-json-data my search only returns 1 item, im pretty sure the problem lies somewhere in my php, im not too sure if im adding to the array properly, or it could be the javascript wich you can see on the above link, but i doubt it. my ph...