I have a usercontrol that hides a div when a button is clicked.
<asp:LinkButton ID="lnkbtn" OnClientClick="ShowHide(); return false;" runat="server" />
<div id="popupPage" style="display:none;">
</div>
function ShowHideGotoPopUp() {
var ob = document.getElementById("popupPage");
if (ob.style.display == "none")
...
Hi,
i have a jQuery line that execute 2 animations, what i want is to remove the #flasher DIV after sliding it up by my current code. How to add a callback in this bunch of brackets?
here is my code:
$("#flasher").animate({opacity: 1.0}, 6000).animate({"top": "-=30px"},"slow");
Thanks
...
I have an image map in my page:
<div id="books">
<img src="images/books.png" width="330" height="298" border="0" \
usemap="#map_books" />
<map name="map_books" id="map_books" alt="books">
<area shape="poly" coords="17,73,81,288,210,248,254,264, ..." \
href="/about" alt="books" />
</map>
</div>
I have a function that...
Hi,
I'm new to web programming, so I need some help.
I am writing a custom file-creation app for my site. A user visits the page, clicks on some various options and toggles some checkboxes, and the presses a 'download now' link.
I have a PHP backend which will be processing the submission, and generating a PDF file. After the user pre...
I am using jQuery to make an AJAX call to a ruby method in my controller. The javascript looks something like this:
var latLongJSON =
{
"address": [
{"lat" : 50,
"long" : 50} ]
};
var returnedAddresses;
$.ajax({
type: "GET",
data: latLongJSON,
url: "map/getaddresses",...
I have the following line of code which works well:
$("a.grouped_elements[href$=.jpg],a.grouped_elements[href$=.png],a.grouped_elements[href$=.gif]").fancybox();
Problem is, if the href is .JPG it doesn't work it only works with .jpg. How can I make the above case insensitive so either all caps or no caps or a mix all match for the fi...
i want to remove a particular #keyword from a string. i dont know its position or anything.
can i use javascript to do it?
...
I have a div inside a user control that is displayed by the user after some event.
I want to hide this div when user clicks anywhere elese on the page but not on the div (or not on any element that is inside the div).
If it wasn't a user control I could use body's clieck event to check the target,
but because this is usercontrol that is...
I am using the JQuery Slider control for use as a double sided slider (dual slider).
It's a great UI control but I'm looking for an alternative that isn't so "fat".
Right now, just for me to use the Slider control, I have to include:
JQuery core
JQuery UI core
JQuery Slider plugin
When I both minimize using Google's awesome Closu...
I am trying to change the innerHTML of a div on the page that I am loading.
This is my JavaScript code:
function redirect(titleName){
window.location = "pageToLoad.php";
document.getElementById("title").innerHTML = titleName;
}
It doesn't seem to be working, please help me!!
...
Do you know a framework for making presentations using only HTML5 and javascript technologies?
I'm not talking about "export" features of various presentation software (powerpoint or OOo presentation).
Some requirements for the presentations made with this "framework":
take advantage of the latest HTML5 features (audio, video, canvas?...
I have a listbox which acts as a list of items. If you click on some item, it's contents are shown in the panel on the right (few textboxes etc.).
I need to have a validation on these controls as all of them are required fields. And I do have it. The problem is that, even when the validators are not valid, user can click the listbox and ...
I have the following script.
<input style="color: #ccc" type="text" value="something" name="country"
onFocus="if (this.value == 'something') {
this.value='';this.style.color='black';}"
onblur="if (this.value != 'something') {
this.value='something'}" />
<input type="submit" value="save" />
On blur, the input value is set ...
I am trying to pass json encoded values from a php script to a, GnuBookTest.js, javascript file that initiates a Bookreader object and use the values i have passed in via the variable i named "result".
The php script is sending the values like:
<div id="bookreader">
<div id="BookReader" style="left:10px; right:10px; top:30px; bottom:3...
I'm doing some experimenting with this malicious JavaScript line: var undefined = true;
Every uninitialized variable in JavaScript has the value of undefined which is just a variable that holds the special value of 'undefined', so the following should execute the alert:
var undefined = true,
x;
if (x) {
alert('ok');
}
But i...
I've written a simple JS function that places the cursor at the end of the contents of an input box when it receives focus (the most common action in the box being to append). I haven't checked in IE, but when there is more text than is visible, even moving the cursor to the end of input doesn't scroll the view to the end of input in fir...
I have 2 radio buttons, what I want is if a user selects the top radio button then hide a textbox.
Not sure how to bind an event to a radio button.
...
I'm using some code to build up tables using JQuery, but in Firefox 3.5.3 on Mac OSX, the table cells all appear on separate lines by themselves, instead of in their respective rows. Chrome 5.0.342.7 beta on OSX correctly produces the table, as does Safari 4.0.5.
Here is a minimal reproduction case:
<html>
<body>
<script type="text/jav...
Hi
On my webpage Im using EIT Lightbox to display images. I need to click on the Lightbox hyper link by code. I have tried the following
body.Attributes.Add("onLoad", "document.getElementById(\"lbh1\").click()\n");
body.Attributes.Add("onload", "eval(document.getElementById(\"lbh1\").href);\n");
But neither seems to work.
If I use th...
Page has menu items that would replace a 'div id=foo_(current menu item)' with 'div id=foo_(selected menu item)' in 'div class=foo'
Here's what I've got, and try to keep your breakfast down...
$('#t1').click(function() {
$('#attorney').show();
$('#insurance,#financial,#estate,#trust,#death').hide();
});
$('...