Lets say I have a domain js.mydomain.com and it points to some ip address, and some other domain requests.mydomain.com which points to a different ip address. Can a .js file downloaded from js.mydomain.com make ajax requests to requests.mydomain.com?
How exactly do modern browsers enforce the same-domain policy?
Thanks!
...
I was wondering what to take into consideration when deciding between a full postback or a quick callback.
There are two extremes: You could do it the "old" way, where every user action causes a full postback. Or you could conceivably ajaxify your whole web application so as to never cause a full postback.
Both options don't seem to m...
I need this so I can submit a subset of form controls that contain non-ASCII text.
The solution with an iframe element won't work for me because it submits the entire form; I only want to submit a subset of the controls.
I know that I can build a multipart/form-data string myself, but it seems that this must have been done before...
...
I'm looking for most elegant way to ajaxify my forms (with jQuery).
How do you do this?
...
How can I load Unicode Characters (specifically a trademark symbol) from XML and push it into a Form via AJAX?
When I push formelement.value += "\u2122" it works fine, but when I place "\u2122" into XML, load it via AJAX, and push it to the form element it does not work.
Any ideas?
Thanks
...
When you have an ASP.Net MVC form created by Html.BeginForm(), how do fields inside it get populated? In the case of
<asp:Content ID="Main" ContentPlaceHolderID="MainContent" runat="server">
<h2>Edit Dinner</h2>
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<% using (Html.BeginForm()) { %>
<p>
<labe...
I have and an AJAX script in a page that works just fine with no bugs in firefoex, but IE6 loads the page with an ugly error icon on the status bar. What is the best way i can go about fixing/debugging this?
Here is the error report:
I have checked line 323 many times Here is the function:
function checkAvailability(){
var card...
I understand that fields such as Html.TextBox() accept two values, the first one being the name and the second one being the value. And so does Html.TextArea(). But in a case where the form is submitted as AJAX and the div where the form is placed is replaced with a view from the server, the form fields insist on taking the previous valu...
I have a partial view in MVC that goes something like:
<div id="comments">
...
</div>
Inside that div there's a form that calls a controller using AJAX and gets back that same partial view. The problem is that the results of calling the view replaces the contents of the div, not the whole div, and I end up with:
<div id="comments...
Straight to the point: I would like to parse the source/DOM of a html page. However i cannot because there is missing information which requires javascript and ajax.
I am using C# and .NET. There is a site that uses ajax to browse pages. Theres two sections i am interested in, the wiki and media section. If i have the link to the media ...
What's the best javascript library, or plugin or extension to a library, that has implemented autosaving functionality?
The specific need is to be able to 'save' a data grid. Think gmail and Google Documents' autosave.
I don't want to reinvent the wheel if its already been invented. I'm looking for an existing implementation of the mag...
In one HTML page I have a JavaScript function checkUpdates() that hits the server. I make this function run every 5 seconds with this line:
window.setInterval("checkUpdates()", 5 * 1000);
In Firebug, I put a breakpoint inside the checkUpdates() function. However, after the code execution stops at this breakpoint, pressing "continue" s...
I am confused about using ajax or jquery so I want to know what the differences are and which one is better such as performance and complexity .
...
Righteo, Just started messing with Jquery, and I can update a database etc with it, but I want to know if there is a way to display new info posted into a database (even if it is not what was just posted) without a reload etc.
Don't write it out for me, just point me in the right direction... I want to pull it together myself.. best way...
I have a datepicker which is used within the jQuery dialog object. The source of the dialog's content is loaded using .load(). Within the dialog I created a script which creates a datepicker for the text input.
$("#date").datepicker({ ... });
When I open the dialog for the first time - everything is okay, but if I close it and reopen ...
In ASP.Net MVC, having a form more or less like this:
<% using (Ajax.BeginForm(new AjaxOptions() { OnSuccess="onSuccess"})) {%>
<p>
<label for="Comment">Comment:</label>
<%= Html.TextArea("Comment")%>
<%= Html.ValidationMessage("Comment", "*")%>
</p>
<p><input type="submit" value="Submit comment" /></p>
<% } %>
How c...
Recently we've found one very strange bug in our application.
There is a form for paid message sending. User selects his contact members, groups, enter phone numbers and text message, after that he click on Submit button and we send an AJAX request to validate the form and required account's balance for the operation.
If user had selec...
Hi friends
i create a webpage in that i use session variables , when i click logout i clear the session variables using ajax , it working fine in IE , But when i use firefox sometimes the session is not destroyed , the code i used to clear session is [when i click logout button]
function floadhomepage(){
ajaxFunction();...
Dear All,
I am using the following jQuery code to fill my DIV in the ASPX page
var div = $("#divPrice");
div.fadeOut('slow',function(){
div.load("../Lib/handlers/GetPrice.aspx?answers="+queryValues+"&item="+modelId,{ symbol: $("#txtSymbol" ).val() },function()
{
$(this).fadeIn('slow'); ...
Hello,
Can anyone here expand on how I can create a frame within a page, like facebook has (when you click on a user's profile and your not friends with him, for example) in AJAX, or even better - does anyone know a framework that would do the AJAX dirty work, with me writing in PHP?
Something like
$frame = new iframeObject;
$frame->s...