jquery ajax problem
In my post.php I use $.ajax function to load some html data from other file lets call it form.html. My question is is it possible form.html to access post.php POST/GET data when is added to the DOM of post.php ? ...
In my post.php I use $.ajax function to load some html data from other file lets call it form.html. My question is is it possible form.html to access post.php POST/GET data when is added to the DOM of post.php ? ...
Hey all, Its time for another very simple question that I can't find an elegant solution for. Basically, I have an app that is using a jQuery Ajax call. In this call, you have to specify a URL path for the service that you are calling. In this instance, I am needing to call this JavaScript function from multiple files in my applicati...
Hello, I'm just wondering if it would be possible to open new browser window/tab inside AJAX/GWT application. For example: there is an application which takes all the space of one page, and in one part there is tabbed panel, so I would like to open fully functional browser window/tab inside that panel. Is it possible somehow? Thank you ...
Hi all, I'm investigating a bug in some software where basically two users press search at the same time and one gets the others results back. I believe this to be a combination of things. the connection is a a singleton that is shared across all instances on the server when search is pressed an async ajax callback is used to send the ...
hallo together, i am searching for a solution, where the back and forward buttons control my ajax-call history. so if i maka a ajax call, and then press "back" i want to reload the original page. if i do a ajax call and then another, and then press the back button i want to do the first ajax call again. and so on ... (i.e. if i now w...
Hello, How can I add a loading graphic to the JQuery UI ajax tabs? So it pauses for half a second, displays the graphic then loads the content? Here's the code I have: <script type="text/javascript"> $(function() { $("#tabs").tabs({ ajaxOptions: { error: function(xhr, status, index, anchor) { $(...
I have been working on having a instant messaging system on a website(kind of like Facebook and Gmail). I have javascript poll the server for new messages. If the user has multiple instances of the site open is there any way to prevent each one from making requests? ...
Hi All, i have a partial view with a form in it. It is strongly typed. I am using ajax in a view with the partial view in it to submit the form. It's basically a form that creates a new DB item and i can see that the controller action is working and being called. my ajax submit looks like this: $(document).ready(function () { v...
So I have a cascading dropdown of sorts, but using List Boxes. When an item is selected in the first ListBox, the second ListBox is populated with items based on the first selection (this is done using a jQuery AJAX call). Here's what I got: $('#<%= lbEvents.ClientID %>').change(function() { var selectedValues = $('#<%= lbEvents.Cli...
A lot of people say that this is asked too much in the comments, which made me hesitant to ask this, but I still have not found a solution in their answers, mostly because (1) they are typically using jQuery and (2) the questions usually contain technicalities I do not understand. I have a function with a variable inside. The variable i...
I am trying to write JavaScript code which, on a mouse click event, sends some parameter (id) to the server-side JSP code. The JSP code then returns a string to the JavaScript. HTML code for the button: <button type="button" onClick="function();">Click Me!</button>" ...and the script: <SCRIPT LANGUAGE="JavaScript" TYPE="TEXT/JAVASC...
How can I get jQuery to only do an ajax query one time? Right now it contacts the server every time a user toggles "Comments (X)" // Replies - Toggle display of comments $('.info .reply').click( function() { $('.reply', this.parentNode.parentNode).toggle(); return false; }); // Load comments $('.info .reply', this).mousedown( ...
I'm having an issue with slow AJAX calls. This is a common question, but I've done everything suggested in all the research I can find. I'm hoping to get a consensus form people who read this. Basically, I make an ajax request to a php page, which gets info from a database. here is the page: http://bit.ly/bQDyjj I've timed all of my ...
Hello, I've been searching lots and found many tutorials for Javascript / jquery on click expandable divs.. e.g. http://www.dustindiaz.com/basement/block-toggle.html However what I am looking for,is slightly different .. I need to load the div content on click... rather than hidden loading the div in the background... with display:none...
I'm using CakePHP 1.3, and trying to make a simple message posting board with ajax. I'm trying to use the Js helper to submit a form on the index page, then refresh the message board's div to include the new message. This is all on a single page. I have previously posted on this, but I wanted to rephrase the question and include some u...
Right now it contacts the server every time a user toggles "Comments (X)" I'd like to make it so as soon as a user clicks ".info .reply" (Comments (X)), an ajax loader appears just until the data is finished loading, then the loader disappears. // Replies - Toggle display of comments $('.info .reply').click( function() { $('.reply'...
I am using Ajax to do a live search and all i want is the data t be displayed in a div called "results". However when im ding the search, it displays the search form again and then the results div. How do I go by solving this? Here is the ajax code: function finding(str) { if (str.length==0) { document.getElementBy...
I've an input text field. On press enter, i'm performing the following action function doWork(){ httpObject = getHTTPObject(); if (httpObject != null) { link = "message.php?nick="+nickName+"&msg="+document.getElementById('msg').value; httpObject.open("GET", link , true); httpOb...
Hello Friends, i want to call a webpage from jQuery and add the content to it to a div. The downloaded data should not undergo any parsing, it should be in raw format. I try to integrate the another application to my website. I've done some experimenting and the code does a successful request, but there seems there is no result display...
Hello Everyone, I have triple drop down menu. I want to display the contents of the table based on the third menu selection. The code is in the link http://php.pastebin.com/hgazULxi I know I need to include a onchange function to but as you can see I have a already for it. I am confused how to create the function to display the table...