Hi,
How the ilusion of causing site to change content from server side is done? Let the example be gmail chat or chat on facebook. Or even new message sign on stack overflow.
Is it done by http://en.wikipedia.org/wiki/Comet_(programming) ?
Thanks for help
...
I am creating plugin for TinyMCE and I need to wrap existing elem (node) with new one.
For example, if I have paragraph:
<p>hello</p>
after command I need:
<div id="someid"><p>hello</p></div>
I tried below but it doesn;t wrap paragraphs, only theirs body, for example:
tinyMCEPopup.editor.execCommand('mceReplaceContent',true,'<div...
Hi,
I am having some problems with IE and googles Visualization Api. Basically an extra border (single pixel white line) is been added to the top and the left of the my chart, but only in IE. A full border is also been applied to a any labels in the graph which are truncated (cut off off slightly).
A screenshot can be seen here:
http:/...
I've been working on integrating Open Social into a service, and modifying Apache Shindig to accommodate. There are some non-open-social features I'd like to use, and I've figured out so far how to add basic js features and server-side data methods. However, I'd like to add to the Data Pipelining standard, and I'm having a hard time find...
I have this function:
function disableDiv(divId, action){
var divId = byId(divId);
if(action==true){
divId.style.display='none';
}
else if(action==false){
divId.style.display='block';
}
var inputs = divId.getElementsByTagName("input");
var selects = divId.getElementsByTagName("select");
var i;
...
For the last three days I have been trying to develop a web based CRUD application which does all the CRUD operations. Given the complexity of the code, I decided to show the data first then I can move on to further CRUD operations.
For this application I posted several questions in here. From the Answers I came this far.
Here is my ...
Hi Everyone.
I need some help in using Google AJAX Feed API. As we know by default this API lists latest 4 blog entries. What code changes to do so that it shows say 5 or 6 latest entries? I cant figure it out in code.
Here is the example function:
google.load("feeds", "1");
function initialize() {
var feed = new google.feeds.Feed(...
I have some data in a table that looks like this:
Adam $50
Evan $20
Frank $80
Harold $90
Jeff $20
Linus $10
Sam $87
Zach $100
Results are sorted by name alphabetically and can have any amount of $ beside them.
I need to make the top five amounts bolded and red as well as append a #1, #2, #3 etc beside the first f...
I want to include an AJAX call within a .submit() handler so that I can process form data and send email confirmations before the form is fully submitted. Therefore I'd like to make the submission wait until the AJAX call is complete, so that I can cancel the submission or do other things based on the response.
How would I go about doin...
I am working on asp.net and jquery website , and when run browse the site an java script error has occurred .
Visual studio debuger references that GetMainFrameUrl is undefined :
function EBNavigateComplete()
{
if (!GetMainFrameUrl())
{
navCounter++;
if (navCounter%100==0)
{
o.loadEmptyTerm(...
Hi All,
I am creating <td> and adding data to it.
$("<td>").addClass("tableCell1").text(mydata).appendTo(trow);
now if I have to create an <a> tag inside how to do it?
example:
<td headers="xx">
<a href="#" title="zz</a>
</td>
EDIT:
$("<td>").addClass("tableCell1").text(mydata).appendTo(trow);
...
I have a very large JSON string that I need to parse with in-browser JavaScript. Right now, in a few browsers, I run out of stack space. Unfortunately, my JSON can contain user strings, so I can't use eval or otherwise let the browser parse it.
I've looked at a few of the standard JavaScript JSON parsers, and they are recursive. Wonde...
to modify an Item, I call a function that shows me a modal window, I give to this function the value to change, and I want that after closing the modifiying window, return the value to the first one.
how to do ?
...
I am building a javascript widget that should load asynchronously.
Problem is that there can be more than 1 of these widgets on the page and that the widget should be initialized by sending it an option array via {}.
What is the best way to accomplish this? I heard that simply setting onload or onreadystatechange does not work in all b...
I have a form which uses the "GET" method.
This might be a stupid question...
I would need to view the full querystring somehow, of the form when submitting it?
I have Firebug if that would help somehow...
Thanks
...
Given the following ASP.NET code:
[System.Web.Script.Services.ScriptService]
public class Quotes : System.Web.Services.WebService
{
[WebMethod]
public void Calculate(int param1, int? param2)
{
etc.. How can I pass a null value to param2? If I don't pass the parameter at all, or I pass undefined, my error handler fires wi...
I'm retrieving the width of elements using jQuery and would prefer it if I could have an indication of whether there was an explicit width (and height) specified.
<div id="test"></div>
<script type="text/javascript">
$(function() { alert($('#test').css('width')); });
</script>
This will alert the implicit width of the div in terms of ...
I use a javascript object as a map.
Let's say I populate it like this:
for (var i=0;i<100;i++) {
var key = "A"+(i%10);
oj[key] = i;
}
This creates a map with 10 keys.
The value of 100 and 10 are just fictitious. it could be 10000 events which create a map of 3000 or similar.
I now want to print the map alphabetically:
//
...
Hi,
I use a jQuery function to show certain hidden text fields once you select something from a select box.
This works fine for select boxes but I can't get it to work for a checkbox.
Here is the stripped code I tried (in a nutshell) but it's not working: http://jsbin.com/uwane3/2/
Thanks for your help, I rarely use JS so my knowledge ...
I need some help to implement this roll over / out effect.
This is the screenshot: http://dl.dropbox.com/u/72686/roll-over-out.png
I have a menu. When I roll over the item "Products" the popup block appears below it, with a tree with all products.
<div id="menu">
<div id="product"> Roll over here </div>
...
</div>
<div id="popu...