Questions about jQuery getScript
Is it better (in any way) to use jQuery's getScript to load the external JS than linking the javascripts manually in the html? ...
Is it better (in any way) to use jQuery's getScript to load the external JS than linking the javascripts manually in the html? ...
I want to load in <div class="test"> some content from another URL ex: http://someurl.com/default.aspx. I tried this code: $(".test").load( 'http://someurl.com/default.aspx'); But it doesn't work. With local file it works, but not with http://... Can somebody help me? Thanks ...
This question is part user experience, part engineering. I am trying to find a nice, clean way to have a user communicate with my web page while they are on another web page. I have web services that will accept HTTP POST/GET, so AJAX and other asynchronous niceties are welcome - don't worry about the details of their communication, the...
I have a PHP based web page. Using Ajax, I call PHP routines. Is it a better practice to keep each routine on its own separate file. Or would it be better to keep them all in one file and the divide the file using a $_GET variable. Example: if($_GET['AjaxFunction'] == 1) { ... } elseif($_GET['AjaxFunction'] == 2) { ... } elseif($_G...
i have some php files with html code in it and from my php file i have: require "popup.html"; require "main.html"; then i use css to hide the div in popup.html. when i click a link coupled to jquery to display the popup it will be above all divs in main.html except the ones that i have rendered in with ajax. how can i make the pop...
Here is the problem that I am having. The user can log in but if they don't refresh the page they can not log back out. So how do I call another ajax call right after another? The log out link is being loaded by the fist ajax call, could that be the problem? Here is the log in jquery code: $(".bt_login").click(function (){ $.aj...
suppose i have a list of users.... <a href="#">user1</a> <a href="#">user2</a> <a href="#">user3</a> i want to switch div content related to the user while click on it and also want to align that div to the bottom right corner....i.e. user1 user2 user3 how i should do that with jquery and $.ajax() ...
I have a small jQuery script that gets information by looking at an ID. What is the best way to prevent that the same data are requested more than once (e.g. what's the best practices for caching in jQuery)? I have tried to use $.post and $.ajax with option "cache" set to true, but the request is being sent more than once. Is it bette...
I had an ASP UpdatePanel to update a gridview which worked fine, now I wanted to also use AjaxControlToolkit for some of the controls in there, but after wiring up everything when I run I get an error "Only one instance of a ScriptManager can be added to the page." inspite of the fact that I commented off the ASP ScriptManager and a...
Hello, I'm using a simple piece of code $("container").load(url, function(){ callback();}) to replace the content of a div container using jQuery's AJAX functionality. That appears to work well with Internet Explorer, however after trying to view it through Firefox I am getting some unexpected behaviour. The page is fetched and plac...
Hey, Need to know how i can prevent logging my AJAX calls in Firebug's Console tab, the way Twitter does. When you search in Twitter you get a live update feed saying "5 tweets since you searched". Twitter sends periodic AJAX calls for the live updates, however these AJAX calls do not get logged in Firebug's console tab, you will be ab...
I've been working on a little experiment where, as you scroll, new entries are loaded onto a page. You can see a practical example here. Now, if you look at this Firefox everything works as it should. As you scroll towards the bottom of the page entries start to load but only one-by-one. View it in WebKit and instead it will start to l...
Hi. I have this function correctly linked in an external .js file... function SubmitAge(age, UpdatePanelID, HiddenAgeID) { $get(HiddenAgeID).value = age; __doPostBack(UpdatePanelID); } and am calling it like this from an onClick of an a href="#" ... html tag (tags removed, please scroll right as stackoverflow has the greatest ...
I have a lot of code in the admin area of my site that is, basically just CRUD operations using AJAX posting. I was wondering if you had any tips on refactoring these type of functions either into generic functions or classes etc. Here is some sample code, though a lot of this is duplicated in other functions with just different ajax p...
I have an issue, mainly with IE. I need to be able to handle n queries one after another. But If I simply call my function below in a for loop IE does some strange things (like loading only so many of the calls). If I use an alert box it proves that the function gets all of the calls, and surprisingly IT WORKS! My guess is that IE need...
Hi there, I am using an Ajax ReorderList in my content page and I would like to get the value of text box or a label in code behind(C#). However I always receive a null value, any ideas? Thanks in advance ...
Hi one and all, i am building a custom installer for a site, and am wanting to find out, how do i detect for certain system requirements, ie my site uses ajax, so how do i check if ajax is installed, if not install it? Can i do the same for sql express? An idea that would also be great is to maybe as the user if they would like to ins...
hi friends, i am working in php as backend . i want to start learing ajax using mootools in php. if anyone have great start tutorial pl help and send me url. Thanks in Advance ...
Hi, I have the following situation: excel-like application, that is accessible from internet. 2 users access it and I want the moment one user clicks on a cell, the other user to see that. (like in google documents). My questions are: Can I do this using standard UpdatePanel, while I keep the bandwidth usage to its minimum (in other ...
I am wanting to pass a dictionary of type <int,int> to my controller via an Ajax post. The main reason here is the post may have between 1-3 key value pairs here (none of these values are known at compile time) and in the future it may go up to 5. Also in the post I have to pass in some other data, such as Id and name, which all works a...