Lets say I have this:
<object class="MyClass" type="text/html" data="/Whatever/1?renderpartial=1"></object>
<object class="MyClass" type="text/html" data="/Whatever/2?renderpartial=1"></object>
And, I want to use jQuery to replace the object with the actual HTML of the object.
<script type="text/javascript">
$(document).ready(fun...
Hi, I've created a jquery dialog modal box for logging into my website:
$('#login').dialog({
modal: true,
position: 'center',
autoOpen: false,
title: 'Login',
height: '750px',
width: '300px',
zIndex: 9999,
closeOnEscape: false,
buttons: {
'Login': function() {
$(this).dialog('close');
$('#mask').hide();...
I've got two page:
Page 1 has a title, an empty ol and some jQuery that calls an AJAX function.
Page 2 has an ol filled with list items from which I plan on pulling specific ones.
The AJAX I'm using looks as follows:
$("#loader").load("ajax.html li:nth-child(1)");
It works great in pulling in that first li. However, if something is...
the current xmlhttp function i am using is passing a very tiny int to the php file for processing using the GET method.
xmlhttp=GetXmlHttpObject();
if (xmlhttp==null)
{
alert ("Browser does not support HTTP Request");
return;
}
var url="user_submit.php";
url=url+"?vote="+value;
url=url+"&sid="+M...
i am using the following jquery to post comments to user_submit.php
var submit = document.getElementById("submit_js");
var comment = document.getElementById("comment");
$("#submit").bind('click', function(){
$.post("user_submit.php", {
comment: $("#comment").text()
});
});
the user_submit.php listens like:
$comment = htm...
Hi guys! What can I do if I want the browser to "remember" search results requested with ajax?
I am using the jquery plugin Jquery Address but I can't piece together how to do it
here's a code snippet from my form submission:
var ajaxforms = {
searchoptions : function(){
$('form#searchoptions').ajaxForm({
url : ...
As it stands, I have some JQuery along these lines -
ph=function(i){
$.each(i,function(po){
id=po.id;url="/"+id;t=$('<div id='+ id +' class=entry></div>');
t.html('<div class=hx><a href="/users/'+ po.author +'">'+ po.author +'</a></div><div class=b>'+ po.body +'</div>');
t.prependTo($("#modpskx"));
t.hide();
t.slideDown("slow");});};
fu...
hello everyone..
i have a problem to load the event data from mysql to jquery fullcalendar..the example given is in php and i dont know how to do it java..
this is the sample code:
$year = date('Y');
$month = date('m');
echo json_encode(array(
array(
'id' => 111,
'title' => "Event1",
'start' => "$...
UPDATE
this is the screenshot of the alert:
i am using the following JQuery function to successfully POST data to the user_submit.php file, its just that the php file is unable to receive the data.
$(function() {
$("#submit_js").click(function() {
$.post("user_submit.php", {
comment: $("#comment").val()
});
}...
Using this bit of code to create tabs and nested tabs works great except for the very first nested tab will not work unless you click on one of the other nested tabs then click back to the first one... Any ideas?
jQuery.fn.tabs = function () {
return this.each(function () {
var ul = jQuery(this);
ul.find('a[href^=#]').each(...
Hi Everyone,
I am posting json data to the asp.net server page along with the $.post method. But Is there any way to obtain whole data and convert it into anon object.
This is jQuery Code :
var RegisterUser = function() {
var _username = $("#username");
var _password = $("#password");
var _email = $("#email");
var _fir...
i've got a website that shows search results with ajax. but of course when i click on a thread in the results and then go back with the web browser back button the results are gone.
is there a way to go back to same result page displayed by ajax?
cause i really want to use ajax for certain tasks, but it wouldnt be nice if the user has ...
Hi,
I'm using prototype/rjs on rails 2.3.3 and ruby 1.86 and my form_remote_for to my "create" controller just displays the create.js.rjs instead of executing it. The strange this is that all the other action+rjs's work fine, just the "create" action isn't working Any help would be appreciated. Thanks in advance!
UPDATE: To clarify, it...
Requirement : I have a piece of code similar to the code below. I want to show a progress bar in an overlay after the save button is clicked. Once I get the response from the ajax call, I show an alert displaying that the operation was successful.Issue : The overlay ( progress bar) is visible only after we have got the response from the ...
How can I use the external JavaScript in Facebook application development?
Actually I want to use the Ajax tab feature in my application.
...
I want to user select one state from dropdownlist and asynchronously load related cities.
<asp:ScriptManager ID="ScriptManager1" runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<table style="direction:rtl; margin:20px; ">
<tr>...any te...
on my site ive got a search box in center with google, when you search for something it displays all threads that matched the search criteria.
so these threads are all ajaxad in, but when you click on a thread it will go to the thread content with usual href link and the page will refresh.
now i have to let google find these threadlink...
I am building a forum site where the post is retrieved on the same page as the listing via AJAX. When a new post is shown, the URI fragment is changed (ex: .php#1_This-is-the-first-post). Also the title and meta tags are changed.
My question is this. I have read that search engines aren't able to use #these-words. So therefore, my entir...
I have written an XMLHttpRequest which runs fine but returns an empty responseText.
The javascript is as follows:
var anUrl = "http://api.xxx.com/rates/csv/rates.txt";
var myRequest = new XMLHttpRequest();
callAjax(anUrl);
function callAjax(url) {
myRequest.open("GET", url, true);
myRequest.onreadystatechange = resp...
I'm creating a SharePoint web part in C# that is using an UpdatePanel for some AJAX magic. Everything is working fine, but I'd like to know how to lay out my controls visually (without using SharePoint Designer). I just have two dropdownlists, some labels, a button, and a textbox. I am creating them within the overridden CreateChildContr...