ajax

json_encode and mysql unicode problem

i have the following javascript code: http://www.nomorepasting.com/getpaste.php?pasteid=22561 Which works fine(the makewindows function has been changed to show it is a php variable), however the html contains unicode characters, and will only be assigned characters leading up to the first unicode character. If I make a small test file...

How to know if a page is currently being read by the user with Javascript?

I'm making a webpage with dynamic content that enters the view with AJAX polling. The page JS occasionally downloads updated information and renders it on the page while the user is reading other information. This sort of thing is costly to bandwidth and processing time. I would like to have the polling pause when the page is not bein...

Problem with Events on AJAX-heavy page

I have an asp page that uses jQuery ajax to load member counts into a bunch of divs after a page is loaded. It works perfectly well in FireFox, and with clients that have a small number of groups. For the small number of clients that have many groups (500+), I am getting an error in IE. The ajax calls seem to be running synchronously,...

JQuery $.ajax "async: false" bug?

Hi, I would appreciate your opinion/advice on the following Scenario HTML has PDF file nick name, back end has URL for each nick. The link URL is always download.php?what=%PDF_Nick% to ensure download for JS disabled clients. For JS enabled clients I do JQuery AJAX call and rewrite link URL from download.php?what=%PDF_Nick% to ht...

How do you handle busy icons in an AJAX site?

This question deals with concurrency issues, for suggestions on how to display a busy icon see this question: http://stackoverflow.com/questions/205631/javascript-loadingbusy-indicator-or-transparent-div-over-page-on-event-click When a user initiates an AJAX request on a page it's useful to show some kind of "working" or busy icon or pr...

Inconsistent behavior with AJAX and ViewState in .NET

I'm finding that hitting the "Refresh" button on my browser will temporarily screw up the ViewState for controls inside an UpdatePanel. Here's my situation : I made a custom WebControl that stores values in the ViewState. I put this control inside an UpdatePanel. When I hit the "refresh" button on my browser, it will temporarily wipe ...

Highlight text on a page after it is rendered

I have an app that lets the user search over a number of fields for a string, When they view the detail record, they would like all occurrences of the string to be highlighted. The detail form is made up of Labels and ListViews, most of which live inside of TabPanels (from the AJAX Control Toolkit). I'd like to avoid the use of brute fo...

How to get the document CDHtmlDialog after Asp.Net AJAX UpdatePanel

When the page displayed in our CDHtmlDialog does an Asp.Net AJAX UpdatePanel we get a navigate event, but everything after that seems to be lost. We don't have a document anymore or get any mouse events on the page. ...

JSF RichFaces and a dual slider

I see in richfaces that there is a single slider, wondering if anyone has created a dual slider like in Scriptaculous for it. Is there any concerns in mixing JSF, Richfaces and Scriptaculous in an application? ...

How do I escape an ampersand in a javascript string so that the page will validate strict?

I am trying to pass a dataString to to an ajax call using JQuery. In the call, I construct the get parameters and then send them to the php page on the receiving end. The trouble is that the data string has ampersands in them and the HTML strict validator is chocking on it. Here is the code: $(document).ready(function(){ $("input#em...

Where is the "AJAX-enabled WCF Service"?

I have installed Visual Studio 2008 and patch it with SP1. However, I cannot find the "AJAX-enabled WCF Service" in my New Project dialog. Does any more patches should be added to make the "AJAX-enabled WCF Service" template appear? ...

Permission Denied When using XMLHttpRequest.Open cross browser access

I am trying to access XMLHTTPRequest.open Method I have even included netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); but still its not working. I am using javascript and HTML to access the WebService. Any Help would be really great Code <html> <Head> <Title>Calling A WebService from HTML </Titl...

JavaScript function not responsive

Hello, I have the following code, which is the core part of my small AJAX application. I am not getting any errors, it is just that nothing happens. I am guessing there is a more efficient way to do what I am trying to do. Here is the code: var xmlHttp var layername function update(layer, part, pk, query) { if (part=="1") { $url...

php and mysql searching and passing variables problem

Hello, I have the following code: http://www.nomorepasting.com/getpaste.php?pasteid=22615 Which is called by the javascript mentioned in this question: My problem is that I do not seem to be able to pass $query, as in nothing seemingly happens when I call this file by itself. I am unsure what the best way to control the flow of info...

MySQL and PHP unicode problems

Hello, I have the following UTF-8 file exported from a microsoft access file http://www.yousendit.com/download/TTZtT214SU84Q1FLSkE9PQ I have ensured my mysql database is utf8 with the status; command for both client and server. I insert the above file into my database with the following command: LOAD DATA LOCAL INFILE 'tblAuction1.tx...

Dynamically refreshing rows in an HTML table using an UpdatePanel

I have been using the ASP.NET AJAX UpdatePanel control a lot lately for some intranet apps I've been working on, and for the most part, I have been using it to dynamically refresh data or hide and show controls on a form based on the user's actions. There is one place where I have been having a bit of trouble, and I'm wondering if anyon...

How to send data after form has been validated using jQuery?

I have a simple email address sign up form as follows: <form action="" id="newsletterform" method="get"> <input type="text" name="email" class="required email" id="textnewsletter" /> <input type="submit" id="signup" /> </form> Here's what I want to be able to do: Validate the form to look for an empty string or a incorr...

Visual Studio 2008 AJAX Components

Hi Guys, Is it possible to use masked edit text boxes in visual studio 2008? If yes have you got any good tutorial how to use them? Thanks ...

getJSON call working on IE 7 but not Firefox 3...

Hi all, I have a web application that uses the current version of JQuery that needs to get some JSON objects back from a REST web service. I'm using the following call to $.getJSON: $.getJSON("http://localhost:17245/Service.svc/?format=json", function(data) {alert(data.id);}); This call works fine in IE7 and I can call the service wit...

How to create a custom "confirm" & pause js execution until user clicks button?

Ok, I'm doing a bunch of RIA/AJAX stuff and need to create a "pretty", custom confirm box which is a DIV (not the built-in javascript confirm). I'm having trouble determining how to accomplish a pause in execution to give the user a chance to accept or decline the condition before either resuming or halting execution. (depending upon the...