I have written some code that works using ASP.Net, C# and AJAX update panels.
I have created this user control, in which a repeater is populated by the contents of the BusinessTier datatable. For each business tier, there are associated business levels which populate a drop down list from the BusinessLevel datatable.
One business level i...
Okay, How do you generate your ajax-forms?
Do you keep the <form>-code in the javascript-files and load the data with ajax (e.g. json), or do you load a generated html-file (with all the <form> and <input> that you just push to the browser)? Or is there another simpler way?
If you use any framework, do you get your forms generated aut...
Two parts to my question:
I need to format my web service responses for display on my web page. Should I use JavaScript to format the responses or given that it’s a .NET web service format the response as HTML and then simply push it down to the client?
If I'm using JavaScript to manipulate the response, what datatypes should I avoid ...
I am downloading a dynamic file in my application, simulating ajax using iframes. What I am doing is, when the download request is made, I will create a dynamic invisible iframe, and set the src of my iframe as the download url.I am able to successfully download the file, but the requirement is to show a download indicator once the down...
I have a script that does a jquery AJAX post and then should redirect to a different page. The problem is that it is sometimes redirecting before the post completes. There seems to be a couple of solutions but I can't get any of them to work. Thanks for your help!
Here is my code:
$.post("cart.php", { 'products[]':postvalues }, function...
I currently have something similar to this, it loads a div on the target page that has images in it.
$('a.galleryNext').click(function(){
// chnage the image to loading
$("#info").html("LOADING");
$("#currentGal").load("gallery.php div#gallery"+currentgallery, function(){
//this fires much too early, the images are s...
I've exported all the old orders out of our old store into a mySQL DB.
Anyone know of a simple project or web based app that will let you search all fields with a wildcard?
So if I type in sha automatically any results with those letters would popup.
This would be similar to dbman but with mysql and some ajax. And preferably free and...
Hi,
I used ScriptManager control on my asp.net page but It sends my data as Json to server, is it default ? and Can I change it with XML ?
...
Hi.
I have a script. In it is code.
I have a page. In it is some stuff from db. There is an edit button. When pressed, a div pops up and is populated with form fields via ajaxrequest -ing an external php file. the form has a name, and that name is nameEdit. On that form is a button that calls a js function--i.e. submit. in this js func...
I am trying to make an asynchronous request to get some data from my server. This all works perfectly well in Firefox but in Internet Explorer, the callback is being called immediately, before any data is received.
$.ajax({
url: "charts.php",
data: { site: site, start: toDateString(start), end: toDateString(end) },
cache: f...
I'm curious to know what what web developers consider to be the biggest security vulnerabilities with regards to Ajax applications, with or without the popular client frameworks (jQuery et al.), and how they are mitigated. Are there open source or commercial tools that can help identify such problems in a site?
...
hi, my code lists items from an rss feed onto an html page. although, the java script is a little finicky. it won't read some xml feeds, usually the feeds containing list items over 25. I just need another set of eyes to take a look at the code and tell me if i'm missing something obvious.
.js file---------------------------------------...
I am doing an AJAX call that returns some HTML and jQuery:
<div id='selected'>Here is my Selection Text
<a id='trashSelected' href=\"javascript:void(0);\">Remove</a>
</div>
<script>
$('#trashSelected').live('click',function delete()
{
// remove the container
$('#selected').remove();
sub...
I want to have a timeout after 5 seconds and then display "Unable to fetch page". But im not sure how to go about it... Heres what I got so far...
$(document).ready(function() {
$('#content').html('<br><br><br><br><img src="load.gif" border="0"><br><br><strong>Generating Link...</strong>');
$("#content").load("ajax....
[Update]
I actually compromised on this problem for now by foregoing the fixed footer design.
It seems that there is no problem with dynamic content moving the footer and resizing containers appropriately unless the footer is fixed to the browser bottom initially.
I hope others will eventually provide a great solution that encompass...
I have a server script that I need to pass data to from the browser without reloading the page (aka ajax). The data is sensitive so should be sent via https. The page however is on the http layer. Because of same domain/protocol restriction, the browser doesn't allow this.
I'm thinking of cheating the system a bit by dynamically creatin...
I am trying to use a jQuery selector on data I get back from an ajax call.
Here is the code I have -
$.ajax({
url: 'moo.html',
success: function ( code )
{
var divs = $(code).filter(function(){ return $(this).is('div') });
console.log( divs ); // gives me back entire object
console.log( $(divs[0]) ); // giv...
A good example is the SO star on the left hand side of this post.
You can click on it to add this message in your favorite and click again to remove this flag.
I already create a page /favorites/add/{post_id}/ but how to handle that in Ajax ?
Many things to do :
Be sure that it worked when you click
Change the image
Change the link ...
Hi
I think that you can set like on post and get methods in jquery timeouts but I am wondering does jquery have a global timeone like it has with ajax start and stop.
Like I would like to set it that if say a post or get or some sort of ajax request is running and it runs more then X amount of seconds. That a popup or something in that...
I have two jsp pages, index.jsp and Result.jsp. In index.jsp I have a text box and a Div. When user writes something in the textbox, the text with current date should appears in Div. On keyup event of text box I am sending an Ajax request to Result.jsp. With responseText method everything is working fine. But when I am sending an xml fro...