I've got an iframe application that's working fine and rendering fbml in facebook. But the whole app is built using ajax calls to load large chunks of pages. Several of these have < fb: tags that aren't being rendered when they load. I tried the code below, which is then loaded into a div in my index page, but it doesn't show anything at...
So here is my basic problem.
The user clicks the save button.
Use Ajax to save the content via code-behind.
THEN open a new window that loads the content from the DB.
I just need a way to not open the window until the content has been saved. Right now it immediately opens a new window and the content isn't all saved yet.
Any ideas?
E...
Im working on a website (html,css,javascript, ajax, php,mysql), and I want to restrict the number of times a particular user votes for a particular video.
Its similar to the YouTube system where you can voteUp or voteDown a particular video.
Each vote involves adding a row to the video.votes table, which logs the time, vote direction(u...
I have a problem with an animation in jQuery using ajax.
On the click of an button (actually an tag), I call a ajax method, and have the following written inside the success parameter:
success: function(msg) {
$('.ContentsMainRight').children().fadeOut(500, function() {
$('.ContentsMainRight').html(msg.d);
$('.ContentsMainRi...
I have divs that I want to display at specific times throughout the day. I have it working in PHP, but it requires refreshing the browser manually. I would like my script to automatically load the right div when the time is right.
Am I on the right track? Perhaps there is a jquery plugin for this sort of thing that would handle the refr...
I've created a global handler for ajaxSuccess, but I need to be able to examine the data for each request. Is it possible to access the returned data at this point?
jQuery(document).ajaxSuccess(function(event, request, options) {
// i can has the datas? >^..^<
});
...
I may be missing something obvious here, but how could I rewrite this code so that it doesn't need the theVariable to be a global variable ?
<script language="javascript">
theVariable = "";
function setValue() /* called on page load */
{
/* make ajax call to the server here */
theVariable = "a string of json data waiti...
//deep linking
$.fn.ajaxAnim = function() {
$(this).animW();
$(this).html('<div class="load-prog">loading...</div>');
}
$("document").ready(function(){
contM = $('#main-content');
contS = $('#second-content');
$(contM).hide();
$(contM).addClass('hidden');
$(contS).hide();
$(contS).addClass('hidden');
...
How to call a method on a server side from JSON. Below is the code I am using
SERVER SIDE:
[WebMethod]
private void GetCustomer( string NoOfRecords)
{
string connString = "Data Source=Something;Initial Catalog=AdventureWorks;Trusted_Connection=True;";
SqlConnection sCon = new SqlConnection(connString);
SqlDataAdapter da = ...
Hi,
I have two updatepanels inside an accordion control, laid out like this:
<accordion>
<first pane content>
<updatepanel UpdateMode="conditional">
<contenttemplate>...</contenttemplate>
<triggers>...</triggers>
</updatepanel>
</first pane content>
<second pane content>
<updatepanel>
...
My js code simply gets a json object from my server, but I think it should be automatically parsed and turned into an object with properties, yet it's not allowing access properly.
$.ajax({
type: 'POST',
url: '/misc/json-sample.js',
data: {href: path}, // THIS IS THE POST DATA THAT IS PASSED IN; safe2ignore.
...
All,
I'm learning MVC and using it for a business app (MVC 1.0).
I'm really struggling to get my head around exception handling. I've spent a lot of time on the web but not found anything along the lines of what I'm after.
We currently use a filter attribute that implements IExceptionFilter. We decorate a base controller class with th...
I have a simple web site (http://www.kousenit.com/twitterfollowervalue) that computes a quantity based on a person's Twitter followers. Since the Twitter API only returns followers 100 at a time, a complete process may involve lots of calls.
At the moment, I have an Ajax call to a method that runs the Twitter loop. The method looks lik...
I am just doing a simple Ajax.Request call using the newest version of Prototype. It works fine in Firefox, Internet Explorer, and even Safari... but not in Chrome. Here is my code...
alert(url);
new Ajax.Request(url, {
method: 'get',
onSuccess: function(transport) {
alert('test');
}
});
It pops up he URL alert but the tes...
Here is my jQuery code:
$.get('/Home/GetList', function(data) {
debugger;
$('#myMultiSelect').val(data);
});
Here is my controller code:
public ActionResult GetList(int id)
{
int[] bodyParts = _repository.GetList(id);
//how do i return this as an array back to javascript ??
...
I am having a problem where my AJAX code does not get past the onreadtstate. The if( XMLHttpRequestObject) works fine, but the other part does not. The code is below:
enter code here function
//Get the Ajax Object
getXmlHttpRequestObject() {
if (window.XMLHttpRequest && !(window.ActiveXObject)) {
XMLHttpRequestObject= new XMLHt...
I made this method to load JavaScript functions dynamically. It does include the .js file, but when I call a method, the method says that it is undefined. The following two .js files are ajax_object.js and user_manager.js.
The alert outside the function is read and works, but the alert inside does not.
enter code here
//ajax_object.js
...
I have a listed navigation with letters and i am trying to call the actors and directors from different json files when the user clicked a letter. I used 2 ajax calls to get the data from actor.php and director.php. It works fine on my local machine, but only the first one works on server. How can i make each ajax calls working?
$(docu...
To give you the situation in abstract:
I have an ajax client that often needs to retrieve 3-10 static documents from the server. Those 3-10 documents are selected by the client out of about 100 documents in total. I have no way of knowing in advance which 3-10 documents the client will require.
Additionally, those 100 documents are gen...
Hi,
I am developing a video chat website application for a social networking website, like if i am broadcasting video, the video will be viewed by n number of users.
I have searched the web for the same but, could not find anything good.
Suggestions any one.
Thank You.
...