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...
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?
...
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...
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 ...
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...
Hi Guys,
Is there way that a WCF duplex connection can be consumed in iPhone?
Best regards,
...
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 ...
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 ...
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,...
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...
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...
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...
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.
...
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 = ...
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...
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...
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...
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?
...
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.
...
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;"...