ajax

Load ajax load in JSF

Ok, heres my issue: I have a JSF application and some JSP files. Let's say i have main.jsp which has a view and includes sub.jsp. This works fine. sub.jsp contains a subview. As a result all the ID's of the form elements in sub.jsp follow the form of 'subview:component'. Now suppose I'm using some ajax and want to fetch the jsp page sub....

How can I send an array to php through ajax?

I want to send an array constructed in javascript with the selected values of a multiple select. Is there a way to send this array to a php script using ajax? ...

How to keep a C++ realtime server application with a modern web client interface?

I develop industrial client/server application (C++) with strong real time requirements. I feel it is time to change the look of the client interface - which is developed in MFC - but I am wondering which would be the right choice. If I go for a web client is there any way to exchange data between C++ and javascript other than AJAX <-> ...

LGPL and Dual Licensing Ajax Library

Hi guys, I'm the previous founder of Gaiaware and Gaia Ajax Widgets and when I used to work there we had this rhetoric (which I have confirmed with some very smart FOSS people is correct) that when using a GPL Ajax library you're basically "distributing" the JavaScript which in turn makes the GPL viral clause kick in and forces people to...

Client side modal dialog in asp.net from the server side code. (how do I do this)

I need a technique for dealing with what seems pretty simple! I have a form, with some logic on the server side for validation. if the server side code indicates that there is an issue, I want to display a modal popup to the client. I am having trouble getting it to work in this way. I found if I keep all the logic client side, I can ...

Refresh Control without Updater Panel using ASP.NET AJAX

This question is directly related to my previous question ASP.NET AJAX Is it possible to perform the post back asynchronously? I have multiple CustomTextbox controls on the page, when i post back i want to update another control on the form. If i place all the controls in an updater panel after the first post back to a process that ...

Updating different divs from AJAX depending on validation errors

I have a form I am submitting via AJAX (using prototype and the built-in rails 'form_remote_tag' helper). What I would like is to update one div (a status area) if there are form validation errors but a different div (the div where the form lives) if the submit goes through sucessfully. My code looks something like this: <div id="recip...

silverlight with ajax

im wondering if any one tell me that if i want to use silverlight with ajax how wil it be possible for me but remember that im a beginer so send me such document or code that will be helpfull for me to understand plz send it to [email protected] thx regards Arshad Ali Leghari ...

corrupted ajax result

Hello, I am using the following html page: <html> <head> <title>AJAX Example</title> <meta http-equiv="Content-Type" content="text/html"; charset="iso-8859-1"> </head> <script language="JavaScript" src="ajaxlib.js"></script> <!--define the ajax javascript library--> <body> Click this <a href="#" OnClick="GetEmployee()">link</a>...

problem with cross-domain ajax calls...

hi, i have two servers a main site and a static server. i want to get a file's content from ajax in runtime, which is stored in static server. obviously cross domain problem will occur. so what i am trying to do is storing that ajax .js in the static server, so that calling the local file wont be a problem. but after i include that j...

javascript not being called

Hello, I am using this HTML <html> <head> <Title>EBAY Search</title> </head> <script language="JavaScript" src="ajaxlib.js"></script> <body> Click here <a href="#" OnClick="GetEmployee()">link</a> to show content <div id="Result"><The result will be fetched here></div> </body> </html> With ...

php being called from JavaScript

hello, i have a html file calling this JavaScript. var xmlHttp function GetEmployee() { xmlHttp=GetXmlHttpObject() if(xmlHttp==null) { alert("Your browser is not supported?") } var url="get_employee.php?" url=url+"cmd=GetEmployee" url=url+"&sid="+Math.random() xmlHttp.open("GET",url,true) xmlHttp.send(null) } function FetchComplete() {...

Comet applications without using IFrames

I am just getting started creating an AJAX application using server side push. I am using Grizzly Comet on Glassfish V2. Almost all the sample applications use IFrames for updating content on the client side. I want to stick to using JavaScript only. Are there any such sample applications (preferably ones that do not use a JavaScript lib...

Best practice for detecting AJAX/XmlHttpRequestSupport

I am trying to update an old JavaScript function used to detect support for AJAX (i.e. the XmlHttpRequest object). I've looked online (including SO) and found various solutions but I'm not sure which is the most efficient for simply detecting support. The current function is: function IsSyncAJAXSupported() { var isSyncAJAXSuppor...

Is there something like <xsl:url-param name="color" />?

If I send this request to a page: http://www.server.com/show.xml?color=red&amp;number=two Can I do something like this?: I like the color <xsl:url-param name="color" /> and the number <xsl:url-param name="number" />. If you need clarification of the question, lemme know Thanks for any answers, Chrelad ...

Prevent hiding of ModalPopupExtender when ok or cancel is clicked

I am using a asp.net ModalPopupExtender on a page, and would like to prevent the dialog from hiding when the user presses the ok button in certain conditions. But I can't seem to find a way. What I am looking for is something like this ajax:ModalPopupExtender ... OnOkScript="return confirm('You sure?')" ... if confirm is false, then ...

How do I connect multiple sortable lists to each other in jQuery UI?

I'm new to jQuery, and I'm totally struggling with using jQuery UI's sortable. I'm trying to put together a page to facilitate grouping and ordering of items. My page has a list of groups, and each group contains a list of items. I want to allow users to be able to do the following: 1. Reorder the groups 2. Reorder the items within the...

How can I communicate over TCP sockets from JavaScript?

I'm thinking about how limiting it is for AJAX apps to have to poll for updates, when what would be ideal is for javascript to be able to set up a real two way connection to the server. I'm wondering if there is some method of integrating javascript with a browser plugin that can make a tcp connection so that I could pass data into and o...

Learning how to use AJAX with CodeIgniter

It's kind of embarassing that I find it so difficult to learn JavaScript, but .. Let's say I have a really simple controller like this: class front extends Controller { public function __construct() { parent::Controller(); } public function index() { //nothing! } public function test () { ...

UpdatePanelAnimationExtender always firing

Is there any way to prevent an UpdatePanelAnimationExtender from executing when the associated updatepanel is not updating (i.e. is set to conditional updates)? ...