Warning: I'm not a good person to explain things, my english isn't perfect and I'm a bit noob with php, javascript and jquery. If you think you can handle that, keep reading.
So, I have this small system where you can add divs to a website, drag them and scale them. This is easy with jquery. However I'm trying to save the changes to css...
First of all, I'm new to Ajax and I don't quite understand everything about how it's work in Asp.Net.
I'm using Asp.Net 3.5 and I have a c# server code that run and when it's have finish it work, it's call a subscribed event that will write the result in a txtbox control.
c# code :
public partial class TestDBLoader : System.Web.UI.Pag...
I want to get smarter in AJAX, but not sure which way to go. I have done some DHTML programming back in the day - like 8 years ago!, before it was called AJAX. I used emacs and hand-coded all the javascript, debugged via "Alert".
At this point I think there are frameworks out there that make things nicer and easier, but which ones? ...
In IE I can enable javascript debugging. When I view StackOverflow with debugging enabled, I get a debugger warning on pretty much every page. What's up with that? Am I doing something wrong?
...
Hello,
What is the best practice to support data for asp.net 2.0-3.5 ajax web application?
I don't want to use update panels, just plain text data (JSON).
Should I use web services? Or is there another way.
...
I have the following structure on a usercontrol that is loaded by a page (Parent UC):
<UpdatePanel>
<UpdatePanel>
.. In the codebehind, it loads a Child user control at runtime
</UpdatePanel>
</UpdatePanel>
The UC has OnPageLoad registers a script.
ScriptManager.RegisterStartupScript(this, typeof(Page), "Load_" + this.Client...
I have a dynamic ajaxy app, and I save the state when the user closes the explorer window.
It works ok in all browsers but in IE there is problem. After I close twice the application tab, i can't connect anymore to the server.
My theory is that the connection to the server fail to complete while the tab is being closed and somehow ie7 ...
I have the following simple php code snippet, which will, when called, delete a relevant article from a database. The result is passed to a javacsript function, which will update the page via AJAX. I would like to return the string "false" if the query fails, as I am attempt below.
if($cmd=="deleterec"){
$deleteQuery = "DELETE FROM AUCT...
I have the following ASPX structure:
<UpdatePanel id="OutsidePanel" UpdateMode="Conditional">
<div runat="server" id="myDiv">
<UpdatePanel id="InsidePanel" UpdateMode="Conditional">
<asp:ImageButton that causes a postback.. />
</UpdatePanel>
</div>
</UpdatePanel>
When the imageButton is clicked, on the server side...
I'm attempting to load up an XML document (specifically an RSS feed) via an Ajax request, parse it, and insert some information based on said feed into my page. The code works fine in Firefox, Opera, Chrome, and Safari, but not IE7. Go figure.
After doing some initial debugging, I've found that the XML string is being retrieved via the ...
Does DWR support method calls with GET?
So I can use http caching to cache the result of the call...
Is that possible?
...
I made some tests with the load() command of jQuery, something like:
$('').load('my.html div#content', function(){ etc.
I was surprised to see that I was able to retrieve the div#content but not its child elements.
When I substituted div#content by any of the child descriptors, e.g. a.opts I got the expected result - in this case, all t...
We are using version 3.0.20229.0 of the asp.net ajaxControlTookKit (before .net 3.5 sp1). I was wondering if I can combine our custom javascript files into the ScriptResource.axd that the controlTookKit creates. I've found this article (http://blogs.msdn.com/delay/archive/2007/06/11/script-combining-made-easy-overview-of-the-ajax-contr...
I have a JSP with a Javascript tree control and I want the user to be able to hide or show this tree at the touch of a button and for this change of state to be carried through to other pages visited, i.e. if on page A, the user hides the tree, then on page B, the tree should remain hidden and so on until the user decides to show the tre...
Every object I return from a WebMethod of a ScriptService, is wrapped into a d JSON object. That's ok. But I don't want the additional __type property to be served to the client, since I do manual processing with jQuery.
Is it possible?
...
Got a timer inside an updatepanel. It constantly refreshes (about every 2.5 seconds). If it refreshed while scrolling it sets the scroll position back to what it was berfore the partial update :(
I'm using ASP.NET 3.5 and MaintainScrollPositionOnPostback is set to false (even if set to true behaviour doesn't change).
No clue why this h...
I would like to capture the contents of AJAX requests using Greasemonkey.
Does anybody know how to do this?
...
I have the following code snippet to delete records from a database given a primary key. This is called via an AJAY request, through GET. Anyone who were to examine my javascript could work out the URL and delete arbitrary records. What can I do to prevent this?
Not use GET?
Use sessions?
if($cmd=="deleterec") {
$deleteQuery = "DE...
What i am doing is a new image uploader, i want to put the input file in the iframe and show the uploaded images in the parent page.
So how can i access the parent elements from the inner iframe?
or if some one have an example, that will be nice as well.
...
I've tried to parse the following json response with both the JQuery getJSON and ajax:
[{"iId":"1","heading":"Management Services","body":"<h1>Program Overview</h1><h1>January 29, 2009</h1>"}]
I've also tried it escaping the "/" characters like this:
[{"iId":"1","heading":"Management Services","body":"<h1>Program Overview <\/h1><h1>J...