ajax

PHP - Text fading effect?

Hey, I've been researching all over for this, basically I have a table that displays "eco'texthere';' after posting the data. How would I make the text fade in e.g. : Table ---> User Send data using submit button ---> displays back message "rotating data" ---> Now text fades in saying "sucessfully sent". (Mostly using echo in PHP). W...

hide modalpopup from IFrame

Hi I have a asp.net ajax app. I have one modelpopup that shows a IFrame and inside Iframe I show one asp.net page. I want to hide the modelpopup when user click on close button in page inside IFrame. How can I find the opener modalpopup? Thanks ...

Tag suggestion plugin ala Stackoverflow tags

I love the way StackOverflow handles tags. Is there any jQuery plugin that would duplicate the behavior? I found this jQuery Tag Suggest but it's not near as good. Any suggestions? ...

Visualforce load apex components via ajax on page load

Hi, Can someone tell me how to use ajax to load an apex pageBlockTable via ajax on page load? I've seen examples showing how to use an apex actionFunction, but the samples are usually simple (e.g. - returning a string from the controller and putting it on the page. My controller returns a list of sObjects and i'm just not quite sure ho...

jquery toggle the votes like stackoverflow

i have this voting jquery script, which works fine, but i want the option for the user to toggle the vote, just like stackoverflow, so basically you can vote up by clicking up arrow increase vote by 1 if they click again on the picture(arrow up) minus 1 from the vote my jquery script: $(document).ready(function() { $('.s...

Multi Delete using checkbox

I am learning Cakephp and I've been trying to delete multiple (checked) record using checkbox, but still not success. here's my jQuery : var ids = []; $(':checkbox:checked').each(function(index){ ids[index] = $(this).val();; alert(ids[index]); }); //alert(ids); var formData = $(this).parents('form').serializ...

JS/Ajax - Change page with PHP in ajax

Ive got an ajax type script changing div content with data from a PHP file using xmlhttp: function updatelog() { request = 'messages.php?new='+first+'&time='+lastupdate+'&user='+user; xmlhttp.open("GET", request ,false); xmlhttp.send(); document.getElementById("messages").innerHTML=document.getElementById("messages").innerHTML+xmlhttp.r...

reducing execution time of indivual php files that are not mandatory to the system like Ajax JSON requests.

I want to make sure AJAX responses from dynamic JSON pages does not slow down the server when the SQL queries take too long. I'm using PHP, MySQL with Apache2. I had this idea to use ini_set() to recude the execution of this pages with the inline use of the mentioned method or the set_time_limit() method. Is this effective? Are their any...

Editing variable length list with MVC 2 and javscript disabled

I'm using the approach mentioned in the last part of Steve Sanderson's post to dynamically add/remove items in a collection using Ajax: http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/ Does anyone know a way to get this approach working so that it degrades nicely when JS is disabled? If my m...

JQuery Validation not working on Ajax Control....!

Hi there I have Problem with my Code I just want to validate States which is generated from Ajax response.text Here is the JQuery for State Field $(document).ready(function(){ var form = $("#addStudentfrm"); var state = $("#state"); var stateInfo = $("#stateInfo"); state.blur(validateStates); state.keyup(validateStates);...

common login component

Hello I have a server side component which performs user authentication with the LDAP server. My organization has got a set of different web applications and all of them depend on this component for user authentication. Now I need to make a common login UI component so that individual web application pages just need to include this on ...

Session information not maintained while AJAX requests

i am creating session while rendering the page. After that i am calling the AJAX page every 4 seconds. the AJAX page doesnt gettign the Session information. What may be the reason. Whether ajax requests dont maintain Session information? Code: Normal HTML <body onload="timerint(11)"> <div style="display:none;"> <button id="prev">...

DropdownList reset problem in Updatepanel on Submit button

I have a dropdown list which is in updatepanel. I have to fill that dropdown on a client event through javascript which calls __dopostback of the updatepanel and calls its load event. Problem is that when i submit the form updatepanel_Load event also execute again and it again reset the DropDownLIst which causes the loss of selectedValu...

Struts2 token interceptor using Ajax or multiple tabs

I'm using the token interceptor on my application, but I have encountered a problem with two case scenarios: 1 - When I submit the form using Ajax, the first time everything works perfectly, but the second time, the server sees that as a repeated token, which is okay, but I would like to know if I can avoid that without refreshing the p...

Permission denied for ajax request inside an iFrame

Hello, For many various reasons my web page consist of the following, a ruby page from www.example.com that calls an iFrame from another PHP server (subdomain.example.com), in both parent and child there is this javascript instruction : document.domain="example.com"; Parent page can access elements in child page, I needed that to make ...

Returning the response from an Jquery AJAX call

I have written a function, which has to check whether a username has been taken or not. Now when I call the function from another function, and alert it's return value: alert(checkusernameavailable('justausername')); it says 'undefined'. I've searched high and low, but can't find what I'm doing wrong. I guess it should just return th...

XmlHttpRequest.responseText while loading (readyState==3) in Chrome

Hi, I am trying to "streaming" (from server to client) in Javascript by ajax (by XmlHttpRequest (=xhr). I am using modified handleResponse function described in http://stackoverflow.com/questions/1112413/cross-browser-implementation-of-http-streaming-push-ajax-pattern function handleResponse() { if (http.readyState != 4 && http.readySta...

Ajax calls to the server from canvas tag?

Hi, I have a rails server that has a page with canvas tag containing some images and user interface. Some objects inside the canvas have on mouse click events assigned. I wonder if it's possible to execute ajax calls on clicking the item then processing some data inside the ruby on the rails server and comeback to canvas changing some o...

How to retrieve the Json variables from the AJAX Response.

When I tried to fetch the values from a Json response, I stucked up. Here is my code Code: $.ajax({ url: 'checkvotes.php', dataType: "json", success: function(data) { // want to fetch UP and DOWN variables from JSON here } }); AJAX Response from PHP {"sample":[{"id":"1","message":"my message","up":...

Passing variables to jQuery from links.

I am remaking a page on the admin section of a website I administer so that it uses jQuery and AJAX. On one of the pages I have a list of items. Next to each item there is a link which is something like this: <a href="delete.php?id=48" class="del_link">delete</a> If I give these links a class I can easily apply a jQuery function to al...