Hi Reader,
Im using the most recent moo release and trying to write a function that evaluates the user given expression on event "keyup". As soon as my test's are passing I put the focus on the next input element automatically to improve the user experience and speed, since he uses the form many times.
So I came up with something lik...
I have embedded openwysiwyg editor in web application. The things work perfectly fine in firefox. So the exact scene is I select a drop-down option for email and text area shows up. This text area is replaced by openwysiwyg editor for email formatting. So this looks perfect in firefox, but doesn't work correctly in Internet Explorer 7. I...
I have almost done it.. but there is something wrong:
function doAlert(title,text) {
var alrt='<div onclick="this.parentNode.removeChild(this);" id="alert" style="background-attachment: scroll !important;background-clip: border-box !important;background-color: black !important;background-image: none !important;background-origin: paddi...
I have the following code:
<select>
<option value="blablabla">Test</option>
<!-- ... -->
</select>
But I want to know if I can set the "value" attribute of the option tag, as a reference to an object (in javascript).
...
I'm trying to create my own slideshow. The following code fades from one image to another. I'd like to cycle from img1.jpg to img4.jpg but i'm not sure how to pause after each change.
i++;
temp = "img"+i+".jpg";
$("#img").fadeOut(function() {
$(this).load(function() { $...
Does anyone know of a Javascript lexical analyzer or tokenizer (preferably in Python?)
Basically, given an arbitrary Javascript file, I want to grab the tokens.
e.g.
foo = 1
becomes something like:
variable name : "foo"
whitespace
operator : equals
whitespace
integer : 1
...
The CKEditor website is somewhat lacking; can you tell me how to remove the status bar ('body ul li ...') from CKEditor?
There is a list of HTML at the bottom of the editor - body p ul li - representing how the typed text will be generated and I want to remove this list.
...
I have a simple javascript class.
One method of this class sets up a timer using setInterval function. The method that I want to call every time the event fires is defined inside the same class.
The question is, how can I pass this method as a parameter to the setInterval function?
One attempt was setInterval('this.showLoading(), 10...
I have a 2000 line jquery file, I just broke up the file into smaller ones, If I have a function in the first file, that file # 2 is referring to, it's coming up undefined.
Every file is is wrapped in a jquery ready function, What's the best way to do this?
...
(document.getElementById('textarea').length > 0) doesn't work. Does anyone know anything else other than this?
Will
Here is the scenario from my previous question which was unanswered. I have Rich text Editor(Openwysiwyg) which is loaded into textarea when I go to that particular page where textarea is placed. The function uses textare...
I'm passing two string parameters from a jQuery ajax call to an MVC controller method, expecting a json response back. I can see that the parameters are populated on the client side but the matching parameters on the server side are null.
Here is the javascript:
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",...
Using Galleria with frogCMS, but am currentl unable to create fading effects and to display a default image on load (currently only displaying an image on clicking a thumb)
$('ul.gallery').galleria(
onImage(image) { image.css('display','none').fadeIn(); } // not working.
);
// also not working
$('ul.gallery').galleria({
history : t...
How do I accomplish this? Every time I try to load an external javascript file from google maps, it crashes the webpage and it becomes blank.
I used the $JQuery.get(); function.
I am using JQuery to load the file into the head.
...
I have been using Anthem.NET in ASP.NET 2.0 projects for a few side projects and have a question regarding a slick piece of functionality that appears unique to this framework. I have worked with Telerik and Microsoft ASP.NET AJAX Frameworks and the ability to execute a JavaScript function from within an "ajaxified" control in a code be...
Im one of the Users who use Adblock. And i love it.
That question could be interesting for all of us.
Once i visited a german developer website,
I just saw a jquery fancybox, on that box there was a Message something like this:
"You are using Adblock, this site is financed with ads. If you want be able to see the content deactivate Adb...
I want to have a group of radiobuttons that are inactive until a checkbox is clicked.
In other words, when the user checks a checkbox, it will allow the user to use the radiobuttons. If the user unchecks a checkbox, it will make the radiobuttons inactive, so the user cannot select them anymore.
Is there a solution using jQuery that I c...
Is there a way to call the javascript form submit() function or the JQuery $.submit() function and make sure that it completes the submit process? Specifically, within a form, I am trying to submit a form within an IFrame. From the parent form, I am submitting the IFrame with the following code...
document.frames.IFRAME_Items.documen...
I have run across code that invokes a function as fn(a,b,c) but the definition of fn is fn(a,b) and then inside the author invokes arguments[2] which would imply a third undeclared argument. Is this legit? (I am new to the site and tried to search for a related question before posting, but was unable to find one. If there is a custom f...
Hello,
I am tring to add data to a listbox in javascript, however the string building syntax has me stumped:
var yourobject = '<%=Model.Inserts['+ i + ']%>';
causes an error: "Too many characters in character literal"
All of the code:
var mlb = cm.createListBox('mylistbox', {
title: 'My list box',
...
I'm using eval() in javascript to evaluate a significant amount of js code (not just json, but function calls too). The browser freezes during the call, i.e. the user cannot scroll the browser or click anything. Is there any way around this freezing problem?
...