ajax

Triggering 'onload' behavior in AJAX return data

A friend and I are looking over a website involving a button that makes an AJAX call that upon successful return, loads HTML into a specified DIV tag and calls a Javascript function. The problem is that it will only work twice. After clicking it twice it fails to work properly. We are trying to dynamically control what the ready() invoke...

jQuery: if element gets loaded with ajax event?

hey guys, weird question. I'm trying to extend a little plugin that's in my blog's sidebar. The plugin comes with a bit of Ajax. It contains a form and when it's submitted it loads a div#error_msg or a div#success_msg (all through ajax). Is there a way for me to find out when one of this divs appear? Just so get what i want: I want to p...

JS alert in PHP as part of AJAX app

I've got a PHP file that is being called to fill in a DIV via ajax. Everything works fine and dandy except I can't for the life of me get a JS alert box to pop up from the PHP. Here is what I'm using to test (this is being tacked on toward the end of the PHP, I've also tried it toward the beginning, in the middle, etc): echo "does thi...

add jquery tab from outside page.

I have an application that uses jquery tabs to open up different asp.net applications from its "menu" tab. The content of the tabs is an iframe with the application. What I need is for one of the application tabs that is inside an iframe to open a page in a new tab. I am running the apps in iis 7 with asp.net. how can I send a signal...

Using jquery spin plugin with Facebox

What I am trying to do is create a input box, where users can select a number, utilizing the spin plugin to help along with the process. Outside of a Facebox modal the code works great, inside it does not. Anything appear to be out of the ordinary here? <script type="text/javascript" src="resources/scripts/jquery-1.3.2.min.js"></scrip...

this error is getting when i am trying to load light box in my page ?

link text Hi, uncaught exception: [Exception... "Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText]" nsresult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)" location: "JS frame :: http://boxyourtvtrial.com/cakephp-hDemo/js/ajax.js :: anonymous :: line 156" data: no] please help.... thanks ...

Ajax get html on SSL

Hi, have the following code: $(document).ready(function() { $.get("https://www.somesite.com/Securepay/Return.aspx, function(data) { alert(data); $("#result").html(data); }); }); the above code does not return the html. Does anyone have a solution? thanks ...

asp.net multiple updatepanels holding usercontrols with jquery partial postback problem

Hello, I have a page with several user controls in different updatepanels. The user controls includes jquery calls which are used to calculate some values and draw graphs(no server methods are called from jquery). The problem is that, whatever updatepanel is refreshed, all of the jquery calls are processed again. I think the problem ari...

serializing a form jquery

Hi, I need to serialize my form data and send it via ajax I have used serializeArray() which gives me the approriate postdata. The code is as follows : var fields = $('#myform :input').serializeArray(); jQuery.each(fields, function(i, field) { values[field.name] = field.value ...

how to use external js file in struts 1.1 application and call the javascript function on onclick event?

i want to use ajax and javascript in struts 1.1 application because i want to make datagrid with insert,update,delete. ...

AJAX downfalls, the line between server and client side scripting?

I've been developing my first web based app for about two months now (I'm an undergrad student who is mostly experienced with C and Python with some Java thrown in to boot). So far my page works as a thin HTML layout (thin meaning a very simple layout, aka less than 50 lines of HTML) which is manipulated heavily by AJAX, primarily using ...

Simulate AJAX latency with a wrapping closure

I'd like to wrap Prototype Ajax.Request in order to simulate AJAX latency. I mean, using a closure and Prototype's delay() facility, but apparently there is something wrong with my code /* * Purpose: simulate AJAX latency when developing on localhost * What's wrong? */ Ajax.Request = (function(original) { return function(url, optio...

Will domain sharding of content become redundant?

So currently IE7 can only handle 2 simultaneous images from a single domain, hence domain sharding. What does the future hold for domain sharding, will new browsers that can handle more connection render it unneccessary? ...

php/ajax browser problem

This could be considered a browser problem. It works in firefox, but not IE or Chrome: http://robotslacker.com/test.php the php file it's posting to is simply outputting a number. If you load it in Chrome it loads at 99. So the question is, how can i achieve the same affect on chrome/ie ...

jQuery best Practice: hide / doSomething / show sequence

Hi all What is the best practice to carry out following workflow: $("#myDiv").hide(); $.getJSON("url", function(data) { ... snorrr ... hours later ... }); $("#myDiv").slideDown(); This above mentioned sequence slides the div long befor hours have passed :-( Thanks Er ...

Ajax Hover Menu in asp.net?

hi, in my web application i am using Hover Menu (ajax) control. I am using two hover menu controls (one hover menu on that second hover menu) it is working fine, i mean the tow hover menus are displaying fine in Mozilla browser and it is not working in IE. can u help me thank you. I mean one hover menu is displaying but sencond one is n...

encodeURIComponent, trouble with ü,ç,İ,ı,ğ,ö

Hi everyone, My problem is. I'm sending values to Generic Handler via Ajax like that way. xmlHttpReq.open("GET", "AddMessage.ashx?" + (new Date().getTime()) +"&Message=" + encodeURIComponent(Message), true); when message contains İ,ç,ö,ğ,ü,ı they are looking like that on Handler Ä°,ç,ö,Ä,ü,ı I write this in AddMessage.ashx Handl...

Trigger a function only after the completion of multiple AJAX requests

I've got a particular function I want to run once, and only after the completion of several AJAX requests. My current solution looks a bit like this: function doWork() { //This is the function to be run once after all the requests } //some tracking/counting variables var ajaxDoneCounter = 0; var numOfAjaxRequests = 5; var workDone...

extjs: nested baseParams in request

Hi ExtJS guru, In the frame of an Ajax request, I am trying to use a nested object for parameter "baseParams". Basically, I would like to produce an URL like "ajax.php?foo[controller]=demo&foo[action]=index". Bellow is the code that wrongly produces: "ajax.php?foo=[object]&foo=[object]". Ext.data.JsonStore( baseParams: { ...

ScriptResource.axd and .Net 4

We have just converted our website to run on .NET 4 and upgraded our server (Web Server 2008 SP2 IIS7.0) to run the .NET 4 framework. Our site now displays the following problem on 50% of all computers that try to access it whereas the other 50% work perfectly. All worked fine under .NET 3.5 Sys.WebForms.PageRequestManagerServerErrorExc...