I'm having a problem creating multiple instances of a CKEditor in a JQuery UI dialog. The dialog loads a remote form via AJAX, so the goal is to be able to close and reopen the dialog and have a new instance of the editor. With the default options, when reopening the dialog it gives an error saying that an editor with that name already e...
I have a function that does some fairly extensive DOM manipulation, and I want to show a "Loading..." spinner while the function runs:
function showFoos() {
$('#spinner').show();
bigHairyDOMManipulation();
$('#spinner').hide();
}
function bigHairyDOMManipulation() {
for (var i=0; i < arrayOfFoos.length; i++){
buildFooBox(ar...
I'm trying to create an effect where the page loads, and after 5 seconds, the success message on the screen fades out, or slides up.
How can I achieve this?
...
hi, i am moving from jquery to prototype because of compatibility issue with IE6. basically, i have a multiple submits in one page and i want to submit the form via ajax and return the result to associated div of each form.
this is what i have used in jquery for multiple submit
i am getting value of submit id and using that for div val...
Hello
I recently have discovered a warning happening in Firefox that says
Warning: Unknown pseudo-class or pseudo-element 'hidden'
Here is page http://eleven23.net/eleven23/beta/work/web/lounge22.php
And the warning happens when it gets to the part of javascript that has img:hidden
$('img:hidden').eq(0).fadeIn(500);//fades in...
If the item does not match, I want "Create New" appear as an item in the dropdown, or "Create New" can appear everytime when user starts typing. Either way would work. Any ideas? Thanks!
...
I am a little confused about the benefits or conc using scriptmanager with ajax calls or use JQuery to direct call webmethods.
Can some one give me some hints about this issue? when to use which? there is any different while dealing with JSON?
...
I have an href taged object (graphic) on a page that I want to programatically click on. However,I can't figure out how to reference the object. Here is the tag:
<div id="getthebutton">
<div>
<a onmouseout="MM_swapImage('btn123','','http://www.comp.com/img/btn_img.png',1)" onmousedown="MM_swapImage('btn123','','http://www.comp.com/img...
Core CS question here: of the Design Patterns listed in Gamma, etc, which (if any) cover monkeypatching? Additionally, for what class of problems is monkeypatching appropriate vs. subclassing? Patching bugs in core library classes is one, are there others? I hear lots of sturm und drang about monkeypatching on stackoverflow, most of you ...
I have one CSS style sheet with rules like this:
h1, h2, h3, h4, .contentheading, .title{
font-size: 13px ;
font-weight: normal;
font-family: Arial, Geneva, Helvetica, sans-serif ;
}
The tags, classes are generated by plugin so i can't add a single class to it.
So, is there any way that I can change the styles of all elements at ...
I'm trying to speed up jQuery performance. I found some questions/answers on this site to help but I'm trying to take it a step further...
Here's an example of the HTML, quite simplified
<div id="Container">
<div>
<div>
<input type="text" id="something">
</div>
<input type="text" id="other">
...
Hi all-
I have the following jquery I'd like to convert to prototype. I am having some real trouble getting it working because I can't figure out how to initialize it correctly in a rails app.
$(document).ready(function(){
/*** Search label ***/
htmlinput = $("input#panel-search").val() /* picks the inital value of the input ...
Hi All,
I have the following javascript code and I am not getting the result I want. I am trying to format a string using String.format(format, args) like c# works. I have
var claimNum = $("#ctl00_DefaultContent_txtClaimNumber").val();
var claimant = $("#ctl00_DefaultContent_lblClaimClaimant").text();
var param...
In IE, using jQuery I set the height of a DIV nicely:
$('[id$=divBahai]')[0].style.height = 123;
The same code run in FireFox and Safari does not alter the height of the Div. I put an Alert() after the code to display what the style.height was and it was blank in FF and Safari. It came up as "123px" in IE and displayed right.
Is ther...
var nowCount = 0;
$("img").load(function(){
imgCount++;
if (nowCount == imgsCount)
do something ...
});
imgsCount :: the number of images that i want to load
1- is this code compatible with all browsers ?
2- how can i know if an image failed to load ?
...
I have a form which is built dynamically using this jQuery plugin
http://code.google.com/p/jquery-dynamic-form/
When I duplicate a div, all the fields in the div are duplicated, and -as plugin docs state- brackets are added to the field name
I use also jQueryUI. I use the datePicker plugin
$("#myDynDateField").datepicker();
It w...
I need to highlight the text that I prepend; not the entire string. My code below highlights everything.
jQuery("#foo").prepend("<li>Addition li</li>").effect("highlight", {}, 1000)
So I only want to highlight that new . How can I do this?
...
I've got a page that is using jQuery.
$("#start_date").val()
The above code returns the value of an box just fine on the Apache server. However, in IIS, it returns "undefined."
Are there special setup considerations that are needed for an IIS deployment of jQuery?
EDIT #1
I might also point out that this is using the jQuery date...
I am prepending a li to a ul every few seconds. I want to set the limit to 20 items. Once there are 20 items I want to remove the oldest item so that there is never more than 20 items. How can I do this in JQuery?
...
Hi all:
I was wondering whats the difference between innerText and html()?
Thanks.
...