I am loading content from another page and depending on the content of page, changing content of my page and this is giving me cross site scripting issues.
When i use iframe, since the content is from other domain, content of iframe becomes inaccessible.
When i use ajax and try to inject the content as plain html code, XmlHttpRequest o...
Hey,
I have a html table in my page that I populate with items from a database with jquery. Now i was wondering what's the best place to store your item Id? I'll need it later to do delete and update.
Here are some of the options I was thinking about:
TR tag
Hidden field
Checkbox (In my page you can do a bulk delete by checking the c...
hi!
i'm building a RoR app for facebook using FBML and the Prototype JavaScript library.
what i'm trying to do is have a div automatically refreshed, using the neat
periodically_call_remote, which creates a PeriodicalExecuter object.
here's the code:
<%= render :partial => "status_item", :collection => @status %>
<%= periodically_...
Just a brief best-practices question: what is the best way to do required field checking for a form? I see 3 choices:
Server side. reload the page with an error message.
Javascript (Client-side) for user-friendly non-reloading, also duplicate requirements on server side and sanitize input.
AJAX - best of both worlds, use JS to ask the...
If you go to http://profile.microsoft.com and edit your personal information, you will select your country. When a country is selected the city and/or state information changes based on what is expected for that country. Does anyone have any examples on how to accomplish this? Is there any service (free service) that provides this inform...
Up to know, for DB driven web sites, I've used php (and CodeIgniter) to populate the data within the page prior to rendering, what I'm thinking about doing now is to develop a javascript (via jquery) page, make it as interactive as possible and then connect to the db through ajax/json calls - so NO data populated to the screen prior to r...
Hi
This is a really strange issue. I have developed a small MVC application and have done testing up until now using the VS2008 built in dev server and everything works as I expect. I have now moved the solution to IIS hosted and I see different results in a view which uses an Ajax.ActionLink.
The actionlink links to a controller actio...
What's the advantage of one over the other? I am so tempted to implement everything in silverlight now, so is ASP.NET, in particular, with Ajax, going to be dead?
For an enterprise solution especially, with 100+ views and 1000+ pages, is it still feasible?
Why isn't silverlight adopted that much by most enterprises? It is mostly used...
Hi All,
I am using Ajax with Prototype library.
Here is my function that calls the Ajax function.
function Testfn()
{
var DateExists = '';
new Ajax.Request('testurl',{
method: 'post',
parameters: {param1:"A", param2:"B", param3:"C"},
onSuccess: function(response){
//DateExists = respons...
I am trying to set up a callback in jQuery that correctly binds "this" to the calling object. Specifically, here is the code I am working with. I am doing an ajax call in a Object like this:
Object.prototype.doAjaxCall = function(url)
{
$.get(url, null, this.handleAjaxResponse );
}
However, in Object.prototype.doAjaxCa...
Hi friends
i my webpage when the user click forgot password button i ask email , Securitykey etc.. when the user click the sendmail button i send the email,securitykey, etc to a ajax funtion named 'sendmail(par1,par2,par3)' [Code is below]. The user provide Existing mailid , securitykey... , rtstr[1] is set to 1 [one] . So the...
What is the correct way of assigning to a variable the response from jQuery.get() ?
var data = jQuery.get("output.csv");
I was reading that jQuery.get() must have a callback function? why is that? and how would i use this callback function to assign the response back to the data variable?
Thanks in advance for your help and clarifica...
I'm trying to get the text within the clicked linked by using this
$(".ajax-append").click(function(event) {
$.get("includes/fight.php?name=test", function(html) {
console.log($(this).text());
console.log($(this));
// append the "ajax'd" data to the table body
$("table tbody").append(html);
...
I'm dynamically creating validation controls and adding them to an update panel. However the client side validation never fires.
Here is the aspx file:
<div>
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server">
<ContentTemplate>
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder...
Hi,
I have a ajax javascript method that pulls data from a page etc.
I want this process to run on a timed interval, say every minute.
But I don't want it to loop forever, so max out at 3 times.
What is the best way to implement this?
...
When should the load( url, data, callback ) method be used versus jQuery.get( url, data, callback, type ) when making AJAX calls with jQuery?
...
Using jQuery, my client side is calling Vote from a page method. The signature of the webmethod is below.
[WebMethod]
public static string Vote(int selectedAnswer, int pollID, string userToken) {
... }
My question is in Vote(), how do I reference Page.Request so I can get the user's IP Address? In a normal page load meth...
Suppose I have a flash application; let's say a chess game. The user is playing against a computer opponent. After every move, I want the flash application to add the move's "description" into the HTML of the page.
Does flash have this ability?
Are there any common round-about ways of doing this? Maybe the flash app updates a databas...
I use dynamic script tags to request javascript from external domains. Sometimes the request takes too long; is it possible to stop the request or timeout if the requests takes too long?
I do not want to use xmlhttprequest because I'd like to avoid having to use a server side proxy.
Thanks!
...
Hi,
I need to pass a date, that will be generated via javascript to a asp.net http handler that is services in ajax requests.
On the .net side, I will take the date passed in a cast it to DateTime.
The date has to have: yyyy, mm, dd, and minutes and seconds.
How can I format a date in javascript to this format?
Using jquery
...