ajax

AJAX: How to use TWO xmlHttpRequest in parallel in ONE function?

How should I do this? function(id,id2){ if (window.XMLHttpRequest) { // code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else { // code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } First Request: xmlhttp.open("GET", "http://example.com/ajax.php?id="+i...

How to fix the back button when user clicks a link from ajax-populated infinite scroll search results?

I have infinite-scrolling pagination on a search result page using ajax. How can I make it so that when a user clicks a link off-site and returns via the back button, the results are scrolled into the ajax-loaded portion of the page where they left? ...

Javascript not being rendered at script but as html instead

This question is to piggy back off of a previous one I asked yesterday, which deals with moving the create/edit feature of a model onto its index page. One last issue I am having is that I when I go to delete a model, I have some javascript that is supposed to run that reloads the list of models to reflect the change in the database. Thi...

How can I make my php pagination paginate via Jquery AJAX

I am currently using PHP to paginate my data from mysql. I want to use the jquery load function to load the next page when a link on the pagination is clicked. Pagination links look like this: <div class="paginate"> <a href="index.php?page=2">2</a> <a href="index.php?page=3">3</a> <a href="index.php?page=4">4</a> </div> I ...

Why do my dynamic CMS forms not load everytime?

I'm using CKEditor to created the portion of my CMS for the user to input content. My CMS is a bar/menu at the top with the sections of the site for the user to create, update, or delete an entry. When the user selects an option I send the request for the form items to php using jquery AJAX $.post. The function returns the code and I us...

WCF duplex connection on iPhone?

Hi Guys, Is there way that a WCF duplex connection can be consumed in iPhone? Best regards, ...

jQuery results set keeping populating

I have jQuery function that makes an ajax call that builds a HTML string to populate the <ul></ul> feature. the problem is there is link on the page that does a refresh of the page, the problem is that the HTML that got added the jQuery ajax call adds the HTML to the page again so that the result is not doubled. if you do it again the ...

cakePHP : requestAction and JS Helper

I use requestAction with parameter return $this->requestAction (....,array('return'); request action in plugin . plugin render view has $js->submit('Save',array('updade'=>'#fsjkfsj'); but it dont show any javascript when i view source code. I tested with code $js->alert('ksldjflkjs'); but it dont , too how make requestAction width JS ...

Playing a sound in a Firefox add-on

I would like to create a simple add-on that would play a different MP3 recording every time the user double clicks a word in a webpage he is visiting and selects a special option from the context menu. The MP3 files are located on a remote server. Normally I would use JavaScript+Flash to play the MP3 file. In a Firefox add-on, however,...

Sinatra hangs seemingly without a reason

I have a strange problem with sinatra... In my app the login form is checking with AJAX live whether a nickname is already taken or free... This works fine 90% of the time... But sometimes, randomly, I get no response from the given route anymore... in the console log all new requests to this route are missing as if I haven't sent anyth...

JavaScript detect an AJAX event

Okay so basically I want to have a bit of javascript on a page that somehow attaches some kind of global event listener that can detect and do something if an ajax request is made (without directly calling it from the call), regardless of how the ajax call is made. I figured out how to do this with jquery - if the ajax request is being...

Loading content into a post via AJAX in Wordpress

So I have this website that I run as a hobby and I am using Wordpress as the content management system, and now, I'm trying around different stuff as part of my posts, just to expand my horizons a little. Now I learned some basic AJAX, like having XMLHttpRequest load an entire html page into a given div without reloading all the elemen...

Wanting to have scrolling comments box pulling from mySQL using ajax

Hi guys, I haven't started on this yet because I'm still pretty new, and I want to be sure there are not any issues with what I'm wanting to accomplish. In it's simplest form, I want to have a div that will display a text quote that is pulled from a mySQL database. Every 5 seconds, the quote will fade out and the next will fade in. ...

Using ruby "build" dynamically with jQuery in rails

Hi, Got a rails application that has a form (new action) with a select with an options value range from 1 to 5. When the users selects one of the options I need to use ruby "build" to build a number of objects depending on what the select value is. So when the user selects 2 in the select box the following code needs to run: @rooms = ...

how do I load partial pages in lightbox using ajax?

hi all, thanks for coming in and looking at my question. I have a page that has a bunch of dynamic a tags with ids like aTag1, aTag2 ans so on. now I need to make these tags open the same lightbox that initially loads a partial page named register.php, and the user will fill out the form, sumbit it then go to another partial page name...

customized ,manipulate textbox ( how to modify it's apparence )

hi, does anybody has a clue on how to make a custum textbox like component that act quite like the email field used on facebook or hotmail when sending messages. the main function of this textbox is that it separate autamaticly the emails or the friend names and transform them into a rectangle with a tiny x to remove the item if the use...

PHP, Ajax - access all files and folders on server and create file manager

hi everyone I want to access all files and folders in a specific directory on server (for eg. "home"). Is there a way to do it? or i just need to say everything in database? Also i want to create a kind of File Manager that manages all the files and folders in a specific directory on server (for eg. "home") like on windows we have file...

Can I call a modal popup extender's (which is in one user control) show method from other user control?

I have two user controls. One is having a ModalPopupExtender which I need to show on a click of hyperlink button which is other user control. Is it possible? Can I anyhow call a modal popup extender's Show() method from other user control? ...

asp.net ajax popupextender aligment issue

I have used the ajax popup in my application where one link opens a popup and from the popup, there is another popupextender that gets opened. This popup is not center aligned. Is there any way i can align this popup to the center of the screen. Note that the first popup is center aligned but second one is not. ...

popup to overwrite field

hello, i have ajax script for select some infomrations. If the user selects a choice, a popup requesting permission for the user to overwrite the address component fields. The message should appear if the fields were empty. I want to know how to do this confirmation popup? HTML: <html> [..] <div style="width:54.5%;float:right;"...