Well, what i want to do is having a lightbox and a sliding top panel. Both use mootools and both seem to use different versions.
It does not work if comment out one of these although they are booth the actual mootools library.
<!a possible js config. either these two are commentented out, or the mootols.svn.js
<!-- libraries/frameworks...
I wrote a custom right-click menu thing for my website. Firefox automatically does spellchecking and underlines mis-spelled words.
However I can no longer right click on these words because I have a custom right-click menu...
Does anyone know if its possible to have code like:
if(needsSpellcheck) {
//use firefox menu
} else {
//us...
My gridview has a template field with a label in it. I want to label the field using the QuestionID so that it doesn't create duplicate id's.
I tried doing the following:
<asp:TemplateField HeaderText="No">
<InsertItemTemplate>
<label id='<%# (string.Format("Label_{0}",
DataBinder.Eval(Conta...
Using YUI, I have a div, with an attached listener that says if I click on the div, execute a callback function. Inside the div is a series of normal html links to other pages. What I WANT to happen is that if I click a link, I go to that page. But, if I click anywhere in the div outside a link, it executes the callback function.
What...
I am trying to create an object and then call dijit.getViewport from inside a function, but I keep getting an error in firebug which I dont quite understand. I have stripped the object right down to the bare minimum to try and understand where is going wrong. this is what I am left with:
"use strict";
dojo.provide("local.mods.Builder")...
I'm trying to find a grammar file for Javascript for Yacc (preferably for Jay, but since Jay is a Yacc clone I should be fine, since I need to implement it on .NET).
...
Without using any open source framework (jQuery, etc.) :), in JavaScript, what's the most efficient way to search for attributes in any controls. (Any old/new browsers)
This is the pattern I'm kind of following. Is there any better way or any better getElementByAttribute() method? Thanks!
e.g
<input type="button" id="b1" value="Contin...
I was looking at what YUI had, http://developer.yahoo.com/yui/examples/button/btn%5Fexample07.html
Can anyone recommend a library/plugin they used to progressively enhance native select element dropdowns at the request of a client? I know it's impossible to style a dropdown in IE, so it's either this or Flash which I don't want to get i...
Is there an easier way than "I'm " + age + " years old!"
...
Hi everyone! I'm very new to JQuery, and I'm having some trouble understanding how to do this:
I have an image of class "imgexpander" with the src attribute set to "img1.png". When the image is clicked on, it should look to see whether a div with class "expand" is currently hidden or visible.
If it's hidden (which is the default), it...
Hi guys,
wondering if some of you know what javascript framework facebook is using ?
Thanks
...
I need to use JQuery like the follwoing:
var focusFlag = 1;
jQuery(window).bind("focus", function(event)
{
focusFlag = 1;
});
jQuery(window).bind("blur", function(event)
{
focusFlag = 0;
});
Does anyone know why this doesn't work for IE?
...
Hello,
I would like to copy XML using XSLT into JSON.
The JSON result would look like this:
callback( {"xml":"
<?xml version="1.0" encoding="UTF-8"?>
<root>
...
</root>
"})
and my XSLT so far:
<xsl:template match="/">
<xsl:text>callback( {"xml":"</xsl:text>
<xsl:copy-of select="*"/>
<xsl:text>"} )</xsl:text>
<...
Ok, so I am working on building my own catalogue of some sort. I am working on making a selecting tool to choose a part of the image to see up close. This is where I am currently working on it
Anyway, I am missing something in my logic as far as how to make the box resize when I drag from the bottom right corner to the top left. I kn...
Is it possible to redirect to another page when userclose browser?
Attempts:
I tried onunload, does not work
window.onunload = function redirect(){...}
I also tried another method, it does not work as well:
window.onbeforeunload = redirect(){...}
<body onbeforeunload="return false; redirecty()">
The 3rd method, i want to cancel ...
The question is confusing, I know, but I just couldn't put it any other way.
Here's the url: Configure - Apple Store (U.S.)
The 'Summary' box on the side is aligned below the sub-header (with pictures of all the Mac models) and is at the same height as the content block. If you scroll the page up, the whole page goes up as expected. Ho...
Hi ,
I am trying to read the post request parameters from my html.I can read the get request parameters using the following code in javascript.
$wnd.location.search
But it does not work for post request.Can anyone tell me how to read the post request parameter values in my html using javascript.
Thanks.
...
hi guys,
I have following in html
<div id="dvAddToGrid" runat="server">
<table style="margin-left:80%">
<tr>
<td>
<asp:LinkButton ID="lnkAddToGrid" runat="server" Text...
I have the following code in my html
<input type="image" src=images/more.png onClick="showInviteInfo() />
When clicked it brings up a pop up box via this js function.
function showInviteInfo(){
document.getElementById("divsignup").style.visibility = "visible";
document.getElementById("txtemail").focus();
}
But I...
This seems like a somewhat common issue and I'm wondering what the common pitfalls, best practices, best approach, security concerns, etc., are when creating javascript on the server to be later loaded client side.
FWIW, I'm doing this in Ruby and I'm using JQuery as well. It's basically a form builder. Here's what I'm doing:
I have an...