I'm making a accordion-type content section using mootools. Here's the HTML I'm working with:
<div class="content-add">
<div class="item html 18" id="dditem_26">
<a id="ddlink_26"></a>
<a href="#" class="open ddheader"><strong>F. Tony Hosseini</strong></a>
<p>F. Tony Hosseini is the Founder and Chairman of th...
What is the standard Rails plugin for syntax highlighting (in a website admin panel for example, not for TextMate) that works right out of the box in a Rails project?
...
hey,
I should be sleeping but this is really bugging me. I can't get a simple javascript alert box to display in my asp.net project. Hopefully someone can see what I'm doing wrong. My test page is this:
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="JSTest.aspx.cs" Inherits="Proj.JST...
A recent twitter post I've seen made some comment to the effect of "the DOM is Javascript's ugly date".
I tend to think that the DOM is a horrible way to define user interfaces and certainly in the context of multiple browsers with their quirks I find trying to build sophisticated web apps with complex view layouts to be a completely fr...
I can use CSS or javascript but I've been struggling with it. It needs to be an "on-click" behavior when you click on the number in the lower right corner... like this one: http://www.winteradagency.com/mrw/images/residential2.jpg
So that when you click on #1 you get the first photo, #2 the 2nd one and so on...
Any ideas?
thanks!
...
Any ideas why this doesn't work, or how to make it work? I want to remove the "onmouseover" and "onmouseout" events so they are basically disabled and at the same time change the background color. Then when the user clicks on another element I want to reassign the mouse events back to the element. Right now the onmouse events don't ge...
I have got a literal control on page (with some data on it). i want to access it in javascript and want to put some text on it. please tell me how can i access literal control in javascript. (i am using asp.net)
My code in javascript (but not working):
lths = document.getElementById("<%= lblhs.ClientID %>");
lths.innerHTML = 'this i...
I'm trying to load or better reload a DIV with content from an included php file. so the file is included in the webadmin.php from the location webadmin/pages.php. Then i alter some data in the DB through serializing.
Now I would like to reload the pages.php from the callback of the serialize POST with load();. This all works fine up u...
I have a jQuery function in a .js file, and the function requires a querystring parameter to be passed.
If I try to use the CompositeScript feature in the ScriptManager, it pukes on the file that has the querystring. Is there any way around this?
...
jQuery.fn.daterangepicker = function(settings){
var rangeInput = jQuery(this);
//defaults
var options = jQuery.extend({
........
//function to format a date string
function fDate(date){
if(!date.getDate()){return '';}
var day = date.getDate();
It is being used as follow syntax
$('input'...
I am using a checked selection list in my application. It has an "All" option which, of course, selects all the available options in that list. For that, I have attached click event to the All checkbox.
Now, based on the selection, I have to make appropriate changes in UI as soon as the selection criteria is changed. I have implemented ...
Popular JavaScript frameworks/libraries like jQuery, MooTools, Prototype, and YUI (to name a few of the most popular JavaScript frameworks out there) definitely have a solid foothold in the JavaScript framework arena.
But for the more adventurous developers looking for new or alternative frameworks/libraries, there are options like:
S...
I have been trying for a while now trying to figure out how to programmatically click a link using PHP and/or javascript. I have it setup so if the user clicks a link it will refresh a table. You don't really need to know why I want to do this b/c then it will go down a whole long road of confusion. Just know that there is a link to be c...
I have a table row which contains a textbox and it has an onclick which displays a javascript calendar... I am adding rows to the table with textbox, but i dont know how to attach onclick event to the javascript generated textbox...
<input class="date_size_enquiry" type="text" autocomplete="off"
onclick="displayDatePicker('attendanceDa...
Is there anyway to create a string and add to the DOM? And having Javascript to understand the elements in the string?
I tried the below and 4th line gives error:
var bmdiv = document.createElement('div');
bmdiv.setAttribute('id', 'myDiv');
var str = "<b>aa</b>";
bmdiv.innerHTML(str);
I need to add several tags in str to the DIV myDiv...
This is the regex to validate email address in javascript,I'm not sure if I can just use it directly in PHP:
/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\...
Hi guys,
Recently I'm maintaining a legacy project. I found one javascript dead loop problem in a page. The demo code is as follows. When the user clicks the first inputbox and type in 3 then directly click the second input box, the dead loop occurs. Now my question is what's the best way to solve or prevent this kind of problem? Great ...
Tipsy jquery plugin is installed in my app
This is in my load function
$(function() {
tipsy();
});
Below code is in a js file
var htm = '<div id="new_div" onmouseover="tipsy(this);">' ;
function tipsy(tip)
{
if ( '' != sumtitle )
{
tip.title = tip.innerHTML;
}
else if(tip)
{
tip.title = t...
Hello All,
Please help with me writing a JavaScript Validation for currency/money field.
So please provide any regular expressions if u have :)
Also, for my region, don't need any currency symbols like '$' in the field.
Only decimals are to be included for validation as special chars., along with numbers.
...
Can you suggest me some of good javascript libraries for drawing charts with json data...
I thought of using Jqplot chart plugin for jquery javascript library...
Some more would be useful...
EDIT:
List of chart types would be very useful for the suggested library...
...