I've added a CKEditor instance programmatically to my page in the code-behind of my ASP.NET page:
VB.NET:
itemEditor = New CkEditor
cell.Controls.Add(itemEditor)
... which works fine. I can get the HTML on the postback and do stuff with it.
However, I also want to do some client-side stuff with it, specifically take a selected item...
HI guys, I need to be able to make an ajax call to be made after every few minutes. Basically the ajax call would be to check on new emails in an inbox. If there are new emails it would download the emails to a database. I got all the server side code set up fine. I just need to know how do I set up on the front end the part where the aj...
I am setting scrollTop and scrollLeft for a div that I am working with.
The code looks like this:
div.scrollLeft = content.cx*scalar - parseInt(div.style.width)/2;
div.scrollTop = content.cy*scalar - parseInt(div.style.height)/2;
This works just fine in FF, but only scrollLeft works in chrome. As you can see, the two use almost ident...
I'm using jQuery UI tabs functionality to load tab content via Ajax. But I need to load the tabs only once. At the first request.
<div id="tabContainer">
<ul>
<li><a href="/Home/Tab1">Tab1</a></li>
<li><a href="/Home/Tab2">Tab2</a></li>
<li><a href="/Home/Tab3">Tab3</a></li>
</ul>
</div>
I hooked up the select event. I'm able to...
Hello,
I have a web page that has a textarea defined on it like so:
<textarea id="myTextArea" rows="6" cols="75"></textarea>
There is a chance that a user may enter single and double quotes in this field. For instance, I have been testing with the following string:
Just testin' using single and double "quotes". I'm hoping the end of...
Hi,
Ive got this in an XML file that i parse with JQuery.
<title>Lång</title>
I'm using .text() for pulling out the text, but it's wrong encoded.
How do I get it encoded to proper text? I want 'Lång' out of it.
Edit:
I'm using JQuery for getting data. Have it on my work computer, but something like this:
$.ajax({
type: 'GET...
Hey Guys,
I have the following 3 urls:
http://www.test.com?a=1
http://www.test.com?a=1&b=3
http://www.test.com?a=1&b=2&c=99
Now in a form i have a drop down menu like so:
<select name="b">
<option value="1">1</option>
...
</select>
Now i want to either add that param to the list of existing params or edit th...
What does 'this' keyword refer to when used in gloabl object?
Let's say for instance we have:
var SomeGlobalObject =
{
rendered: true,
show: function()
{
/*
I should use 'SomeGlobalObject.rendered' below, otherwise it
won't work when called from event scope.
But it works when called f...
Hi Everyone,
I am trying to validate a text input when it loses focus. I would like to know which row of the table it is in. This is what I have so far and it keeps coming back as undefined. Any ideas?
$("div#step-2 fieldset table tbody tr td input").blur(function() {
var tableRow = $(this).parent().parent();
if ($.trim($(th...
Hi All,
I am having problem that when i am trying to submit the form by clicking on the submit button it takes some time to post request during this if i am again click on the Submit button it will again send the all parameters and parametrs get saved twice, thrice ....so on.
I don't know how to limit the the submit button so that form...
Is it possible to change DIV position from absolute to relative (and from relative to absolute)?
DIV should remain on same place.
...
I'm fairly new to both jQuery and JavaScript so can anyone please point out what I'm missing here?
I have a form with multiple pairs of select fields, where the content of the second field relies on the selection of the first one.
Once a value is chosen from the first one then a piece of jQuery code empties the corresponding second sele...
How do I add a click handler to a new element when I create it? This is what I have tried, but it does not work as expected:
DeCheBX = $('MyDiv').insert(new Element('input', {
'type': 'checkbox',
'id': "Img" + obj[i].Nam,
'value': obj[i].IM,
'onClick': SayHi(this)
}));
document.body.appendChild(DeCheBX);
DeImg = $('MyDiv...
Hi all,
I've just discovered Raphael, and love it, but I am not much of a javascript-er. Right now I have three repeated sections of code to draw the same circle in three different divs. The default for making a canvas in Raphael finds an element by ID, but I want to have one set of variables to have circles drawn in all divs with clas...
I have a form in a jQuery enabled site. The form does not feature an <input type="submit"> button. For that reason, it's not submitted when you hit enter. What's the recommended way to emulate such behaviour?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>...
If you don't care about minifying your code, is there a way to get started using the Google Closure library without having to set up a subversion client and use the compiler? The Notepad sample program on Google's website refers to
<script src="closure-library/base.js" > </script >
Can you simply download closure-library/base.js s...
Hi,
$('#div1').focus(function () {
callAnotherFunction();
$(this).animate({});
}
I'm trying to make $(this).animate({}); execute after callAnotherFunction(); has completed. Currently, both run at the same time. I've timed to use delay(), setTimeout() to no avail too. Is there anyway this can be done?
Thanks!
...
I just installed VS2008 on a brand new Win7 machine and have started at a new company. I am now running the company's main project and all is well...except that, for some reason, .Net keeps breaking on some javascript errors. This isn't in the browser (although it only happens when running IE, in this case version 8).
I'm at a loss as...
Okay, so what are the ramifications of getting a JS file via an HTTPS call while on a HTTP page.
I assume it would just be a little bit of extra overhead. Would there be any warnings about this call from any certain browser?
Don't ask why. It's just hypothetical.
...
I´m building a jquery animation from a multidimensional array, and in the callback of each iteration i would like to use an element of the array. However somehow I always end up with last element of the array instead of all different elements.
html:
<div id="square" style="background-color: #33ff33; width: 100px; height: 100px; positi...