So... very excited as first post on stackoverflow
I have this page, clicking a button will call editIEPProgram(). editIEPProgram counts how many specific divs exists, adds another div, loads it with html from '/content/mentoring/iep_program.php' and then calls $("textarea.tinymce").tinymce to add a rich text editor to the newly added te...
My AJAX calls from a page I wrote is hanging after an indeterminate number of calls. The page makes a request after a preset amount of time (currently 5 seconds) gets data from my server then waits the amount of time again. When I put the following as my AJAX Request:
myAjax = new Ajax.Request(
url,
{
...
Recently in our work, I've started getting some experience with SEO (finally). It's something I've put off for a long time because I've always maintained that SEO is a buzz-word b.s. pseudo-science and more about providing quality, relevant content (assuming proper header tags and the basics are covered). However, sometimes a client do...
I have the following code that works on firefox and chrome
$("#adicionarItem").click(function(){
$.ajax({
type: 'GET',
url: $("#formAdicionaItem").attr("action"),
data: $("#formAdicionaItem").serialize(),
success: function(response){
alert($("div#errors", response).size());
}
}...
I have a text for example
"The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps
over the lazy dog."
When i click on word i must get data from XML or from mysql about this word.
How i can make every word active for click and se...
Hi,
I have a asp.net/c# web app. When do user leave a certain page, I would like to delete 1 particular temp file on the client machine, in the temp file folder. Can I do this at all? Can I do this server side or client side?
Thanks.
...
The code below gets the username/password and runs it thru the backend.php script.
<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
...
Hi,
I am using the JQuery Form extension to submit a form with AJAX. I have the following code:
var options = {
beforeSubmit: showRequest, // pre-submit callback
success: showResponse, // post-submit callback
// other available options:
//url: url // override for form's 'action' attribute
...
Hey,
I've spent at least 2 days trying anything and googling this...but for some reason I can't get RegisterClientScriptInclude to work the way everyone else has it working?
First off, I am usting .NET 3.5 Ajax,...and I am including javascript in my partial page refreshes...using this code:
ScriptManager.RegisterClientScriptBlock(thi...
Hey braintrust,
I'm making an ajax call using jQuery's library to an api, which requires a username and password encoded to base64 be added to the header.
here's a basic example:
$.ajax({
type: "GET",
contentType: 'application/json',
beforeSend:function(xhr){
xhr.setRequestHeader("Authentication", "Basic " + ba...
Is there any reason why a jQuery Ajax request to the server would work on Firefox for Mac and not on Firefox for PC?
...
I know there are thousands of examples on the internet, but I want for the script I already have to display a loading gif image while the data is retrievedd. My java knowledge are poor, therefore I'm asking how to change the following:
<script type="text/javascript">
$(document).ready(function(){
function getData(p){
var page=p;...
I am using the qTip plugin to post a imdb URL to an IMDB grabber script and display movie info on that url.
Everything works until I have more than one qtip on the page.
What i need to do Is only post the data of the image that is being hovered. This is the code should make a bit more sense then me.
Script -
var link = $("#link").val...
I am successfully posting a form via ajax, using the following code;
$.post( "Page.do?source=ajax",
$("#Form").serialize(),
function(data){
}
The data response that comes back can be alert'd. I can see that it is the HTML of the entire form, having been submitted. But, I am having trouble ...
I'm trying to display records from a database and then when a new one is added automatically update the displayed records from the database with the new one
I am doing this using php and javascript.
I want to load a page and display tags under a video and then when a user adds a new tag by entering it into text box to add it to the data...
I'm trying to make an unobtrusive action for deleting bookmarks in CakePHP.
Allthough it's working just fine, I suspect there must be a better way to do this. Could someone please point me in the right direction?
function delete($id = null) {
$ok = $this->Bookmark->delete($id);
if($this->RequestHandler->isAjax()) {
$this->autoR...
Hello everybody. My project is about a school admin I have a page called : createClass.php, where user inserts grade, profile etc. When he press "submit" page called createdClass.php is loading. Inside this page I have all code which insert data into database and also an "if" structure which says : "Class already exists" if in database i...
This is my Javascript below I want to show records on load and also show new records when added to the database
showrecords(); displays the records in the database where abouts can I put this in my code where it will work correctly.
$(document).ready(function()
{
//showrecords()
function showrecords()
{
$.ajax({
...
I'm loading a page containing a GMaps using the ajax() method of jQuery.
The HTML page i'm loading is:
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=MY_API_KEY" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
if (GBrowserIsCompatible()) ...
Hi,
I am looking out for any library that would facilitate Ajax in Zend (if any exist). Also can somebody throw some light on the built-in Ajax support that comes with ZF.
I tried googling but was not satisfied with the results.
-DevD
...