ajax

select option clears when page loads in php

Hey guys, the scenario is this: see select below <form name="limit"> <select name="limiter" onChange="limit(this.value)"> <option selected="selected">&nbsp;</option> <option value="5">5</option> <option value="10">10</option> <option value="15">15</option> </select> </form> I want whenever any ...

Jquery ajax Load catch any to display loading

Hi I have a complex site with lots of jquery loads in various places and in different files. I want to have a single method which renders a loading popup when any of the ajax loads run, without (hopefully) modifying them all. Anyone know a way to 'catch' any ajax request start, and also the request end? Thanks ...

Ajax /jQuery finding if user completed the download

Here is what I am trying to do: I am making a custom text file containing a test. This test is unique to the user and well I don't want my server to stack all those text files. Is there a way to use Ajax/JavaScript/jQuery to find if the user has already finished the download and if they have get a return value (1 if finished) so the ...

ASPxGridView java alternative?

I really like ASPxGridView, but I can't use .NET to develop my applications. I wonder if there is a Java or more generic alternative to it. Thanks ...

how to ajax your confluence pages so slow macros dont slow down page load

some pages that use macros like: topusers or popularlabels are really slow to load. Is there any way to have this load asynchronously through ajax instead of having this block the initial page load ? ...

Communication between browsers via PHP

I am building a simple ajax chat client for a school project and have thought of a way to implement this, but it seems IMO to be very cumbersome approach: 1) User A sends message which is accepted by a server-side PHP script and saved to database 2) The browser of User B periodically launches a server side PHP script to check if there a...

What wysiwyg editors can be load with ajax ?

Working on a blog application in C# with MVC and want to load a wysiwyg editor with ajax on a page. only not all editors works good to load with ajax. What editor works to load with ajax ? and what are your experiences doing this? ...

Zend Framework - JQuery - Ajax update on Select element change

Hi, I am pretty new to the zend framework and the JQuery helper. I have been playing around with the ajaxLink method, and was wondering if there's a way to adapt it to use it in a form. Let me explain: I want to add an "onChange" attribute on a "select element" in a form. When the select element is changed, I would like to have an aja...

JSON in location.hash for AJAX(J) bookmarking?

I'm building an AJAJ (AJAX with JSON) webapp with jQuery and I'd like my users to be able to bookmark a page that saves all of their setting selections for a certain part of the app. I've got quite a bit of data that needs to be saved, so I thought JSON might be the best way to save this, putting it into the location.hash. That being sa...

Dynamic parameters for dynamic contents with qTip

Hi all, I want to pass a dynamic parameter with qTip, but it fails. my_ajax_controller.php just displays the variable type, but not q. $('a.menu_help').qtip({ content: { url:'my_ajax_controller.php', data: 'type=help_menu&q='+$(this).attr('id'), method: 'get' }, show: 'mouseover', hide: 'mouseout' });...

find(:all) and then add data from another table to the object

I have two tables: create_table "friendships", :force => true do |t| t.integer "user1_id" t.integer "user2_id" t.boolean "hasaccepted" t.datetime "created_at" t.datetime "updated_at" end and create_table "users", :force => true do |t| t.string "email" t.string "password" t.string "phone" t...

How to implement a frame buster?

I'm searching for a guide that describes how to implement a working frame buster that also deals with people that dont have JS activated in their browser. I read this very good question but i'm absolutely not interested in any advice like "dont do that yourself" or "maybe try...". i want to see a paper, with a step to step guide explain...

My AJAX call is not returning anything but isn't failing either.

I have this html: <input type="text" id="text"/> <input type="button" id="submit" value="Submit" /> <div id="twitter_update_list"> </div> and this javascript: var xmlHttp; document.body.onclick = function(){ var username = document.getElementById('text').value; selectUser(username); } function selectUser(username){ ...

Javascript JSON.stringify object containing arrays serialization problem

I javascript I have an object that looks similar to: var myObj = { prop1: 1, prop2: 2, prop3: ["a","b","c","d","e"], prop4: 4, prop5: ["f","g","h","i"] } It's an object containing a number of properties. Each property may or may not be an array. var serializedMyObj = JSON.stringify(myObj); serializedMyObj is (fou...

Where can I find a sample for jQuery Pagination with AJAX for ASP.NET?

Hello I'm searching a clutterless way to paginate data with JQuery and Ajax on a ASP.net website. I'm trying to make it work similiar to this, but it's not working because there's something wrong on javascript, but I can't find out how to fix it. I actually don't like the results so far, it's too complicate to maintain this code, don't...

create a new option and inject into select box using mootools 1.2

Hi i have one AJAX function which return the list of countries. It works fine. My problem is that want to load that countries in on select box which is already in HTML and is empty means no option value in it. I want to know that how can i create a new option element and inject into the select box using moo tools 1.2 I have used be...

Javascript Syntaxhighlighting lost when AJAX call is made.

I have a page on my website that I am making a call to using a jQuery ajax call. It loads in a div. But whenever I the page is loaded, it loses the snytax highlighting that it should be displaying. Ex: <html> <head> <!-- syntax highlighting script --> <script type="text/javascript" src="syntaxhighlighter.js"></script> </head> <body> <!...

ScriptManager does not honour LoadScriptsBeforeUI property when set to false

Hi, I am having some performance problems with IE 7, whereby the page pauses during rendering while scripts are loaded, this is at times taking up to 5 seconds and leaves the user with a blank screen while he/she waits. After a process of elimination I have deduced this is because of the scripts emitted by the asp.net ScriptManager cla...

How to use Silverlight with Ajax?

How to use Ajax with Silverlight? ...

Page is reloaded after ajax based client callback to WCF

Ive set up a basic client side callback to a WCF service. see sample code below. when viewing using an http filter attached to the explorer you can see that: 1. service1.svc/js is working fine and return proper java script to the browser 2. serrvice1.svc works and returns a proper json data. 3. call is fine and using alert instead of up...