ajax

problem in variables in jquery

Hi, I don't understand why I'm not getting the message as "username already exits" if type the username which is already in database. If the username in a server, then it is returning the value as "1" otherwise empty, and despite of successfully getting the value from the server based on username is present or not, and assigning the...

AJAX ASP.NET Remove URL ID

The site im working on is an Ajax enabled ASP.net/C# project and i have a URL like this: http://localhost:2531/(S(lfcvqc55wkabpp55o1x4pvq5))/Logon.aspx How do you get rid of the (S(lfcvqc55wkabpp55o1x4pvq5)) portion of the URL? I have a feeling its a web.config parameter however I'm not really sure what you call this part? ...

jQuery ajax response not operating correctly

Ok this is frustrating... The code below works "correctly" as far as sending the email address to the SaveEmail URL and it gets saved correctly each time I change the drop down. However it only outputs the "Successful" message once, no matter how many times I change the value in the drop down. The "data" that is returned is "Successful"...

JSF - How to run javascript expression from code.

Hi, Trying to do this programatically <a4j:commandLink ... onclick="#{rich:component('modalPanelID')}.show()"/> This doesn't work: HtmlAjaxCommandLink commandLinkObject = new HtmlAjaxCommandLink(); ... commandLinkObject.setOnClick("#{rich:component('modalPanelID')}.show()"); Any idea why and how to make it work? Thanx. ...

Radcontrols InitiateAjaxRequest

Hi All, I am using RadAjaxManager and initiateAjaxRequest for multiple scenarios on a single page. In my code behind RadAjaxManager1_AjaxRequest(object sender, AjaxRequestEventArgs e) method i parse the argument to handle the correct request using a switch statement. What i'd like to do is be able to control the loading panels for dif...

JQuery .ajax request does not hit the server

I am making an ajax request using JQuery that looks like this: var data = createXMLdata(); $.ajax({ url: 'http://localhost:8080/foo/bar', type: "PUT", data: data, processData: false, contentType: "application/text", error: function(xhr, status, error) { alert("Error: " + status); }, success: funct...

Jquery + AJAX + ASP.Net + WebForms

I have some JQuery AJAX POSTing data to my backend C# WebForm. It POSTs to a static string WebForm method which returns a value, the JQuery uses that value to change an image url in the html. All is fine and dandy. However, I would like to expand the functionality of the existing code (though I'm not shut out to rewriting it altogethe...

ASP.NET Grid AjaxPanel Download Issue

Hi, I have a telerik grid which is performing operations like searching,sorting,filtering etc. To make customers happy, we put this control in an ajax panel for seamless experience. Now, we added a new functionality to the grid where the customer can download the entire row information as a csv file. As the response is a file, ajax pa...

struts 2 autocompleter

<ajax:autocompleter name="cityName" list="list" size="1" label="Select City" listValue="cityName" listKey="id" autoComplete="true"></ajax:autocompleter> i am using struts 2 with ajax but its not working ...

DropDown Box + Update Panel

Hey I'm having an issue updating a dropdown box inside of an update panel. Works perfectly if the page posts back, but I'd prefer seemless loading: Here my form code: <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="ajaxClassifications" Update...

How can i supply an AntiForgeryToken when posting JSON data using $.ajax ?

I am using the code as below of this post: First i will an fill array variable with the correct values for the controller action. Using the code below i think it should be very straigtforward by just adding the following line to the javascript: data["__RequestVerificationToken"] = $('[name=__RequestVerificationToken]').val(); The <%=...

a4j:commandButton causes full page reload on IE7

Our process allows users to activate their account, and then configure e-mail preferences. We're using the tag: <a4j:commandButton id="activate" action="#{controller.agreeAction}" image="/img/ok.png" styleClass="activate-button" reRender="mainContent, sideBar" ...

how can i refresh table content without refreshing all the page

i have a table and the content of it is all from data base ,which is a rows of student names and a columns of questions, and with this table an instructor can track the students progress of solving question on real time, so what i want is to update the only the table , without refreshing the whole page, which causes starting at the be...

Ajax updated User Interfaces and the Back Button

Scenario: A page is loaded with a complex UI on it. User does some actions which alter data via Ajax callbacks, changes are reflected on the UI by DOM manipulation (e.g. via jQuery). User clicks a link to go to another page (say a details page). User clicks the back button to go back to the original UI page. User sees out-of-date infor...

jQuery AJAX with two domains

OK here is the situation: I have an externally hosted CMS which works great for 99% of our needs. However on the more advanced things I inject my own CSS+JS and do magic. The problem I am running into is loading a simple HTML page from jQuery.ajax() calls. It appears to work in the sense that no warnings or errors are thrown; however...

Are there viable alternatives for Web 2.0 apps besides lots of Javascript?

If you say find C-style syntax to be in the axis of evil are you just hopelessly condemned to suck it up and deal with it if you want to provide your users with cool web 2.0 applications - for example stuff that's generally done using JQuery and Ajax etc? Are there no other choices out there? We're currently building intranet apps usin...

Wordpress: how to call a plugin function with an ajax call?

I'm writing a Wordpress MU plugin, it includes a link with each post and I want to use ajax to call one of the plugin functions when the user clicks on this link, and then dynamically update the link-text with output from that function. I'm stuck with the ajax query. I've got this complicated, clearly hack-ish, way to do it, but it is ...

jQuery-ui problem with modal dialog from ajax

Hi I have the following setup: index.html with <div id="container"></div> using anchor method I load different html content into this container. My content contains div for modal dialog "dialog-form" and I initialise it with the custom function from the javascript included in index.html on successful ajax load using the callback $.ge...

How to make Asynchronous(AJAX) File Upload using iframe ?

Hi, I'm trying to make ajax file upload . I read that it is not possible to do that without using iframe . I wrote : <iframe id="uploadTrg" name="uploadTrg" height="0" width="0" frameborder="0" scrolling="yes"></iframe> <form id="myForm" action="file-component" method="post" enctype="multipart/form-data" target="uploadTrg"> File: <inpu...

Will php code exit after echo for ajax?

I am running a typical php-engined ajax webpage. I use echo to return a html string from the php code. My question is, if I have some other code after the echo, will those code get executed? Or echo behaves similar to exit, which immediately return and stop running the php code? Thanks. ...