Hello,
Here's a very basic question: why is the finishLoading() function in the code below not able to access the 'opacity' property for the #myStyle CSS selector? The alert doesn't display anything, and I've verified that the 'opacity' property is 'false'.
Thanks very much!
<html>
<head>
<style type="text/css">
<!--
#myStyle
{
op...
I'm using jsf 1.2. When a particular jsp has more than one form with a specified id, for example when using something like below, jsf gives the form a seemingly random id.
<ui:repeat>
<h:form id="repeatingform">
...
I would like submit all forms using javascript. Is there a way to do this without knowing the ids of the forms?...
Hi All,
I am trying to use the Google Map API- I've successfully managed to add an icon but when it is clicked nothing else happens...
This is my code:
function placeMarkerAtPoint(point)
{
var marker = new GMarker(point,{icon: icon});
GEvent.addListener(marker,"click",function() {
marker.openInfoWindowHtml('here is som...
Hi,
I have a JavaScript function code where I want to alert.
function msgalert(x,y)
{
tempstr = x.value
if(tempstr.length>y)
{
alert(c_AcknowledgementText);
x.value = tempstr.substring(0,y);
}
}
Now I have an xml with below format:
<?xml version="1.0" encoding="utf-8" ?>
<root>
<key name="c_ContactUsHeading">Contact Us</k...
What does '$' - sign in JQuery stand for?
...
I can't any example of this after being unable to puzzle out how it would work on my own.
All I want to do is take a string which has been assigned to a value, and use that as the replace match string for all matches.
var replacement = 'i';
var text = 'tieiam';
text = text.replace(replacement, ''); // 'teiam'
text = text.replace(/ti...
Hi,
I have web.config with the given value:
<appSettings>
<add key="vDirectory" value="fr" />
<add key="BookingSummaryPage" value="/pli/forms/BookingSummary.aspx" />
</appSettings>
Now I want to read the value of "vDirectory" through java script.
I am using below code:
<script language="javascript" type="text/javascript"...
I'm trying to get a child JavaScript application to update it's parent document.
In essence, this is a very simple problem:
a JavaScript program opens an iframe
in it's own document.
another JavaScript program is loaded
into the iframe.
the second program needs to change
the fragment (anchor) in the original
page.
the first program, t...
I have a standard ASP.NET 2.0 web page with a Delete button on it. What I need and can't figure out how to pull off is when the user presses the delete button a confirm dialog popups asking the user "are you sure?". If the user says yes then I want to disable the delete button and perform a postback that will run the server side code del...
Hey guys I have a gridview and below it 4 textboxes I'm using to enter data, for styling purposes I'd like to highlight the specific column headers as the user enters/leaves focus on each textbox..
I've been able to highlight the entire row color on focus using:
<script language="javascript">
function headerRoll(id) {
document.get...
Okay I'm totally confused on this one.
I have a script that receives a bunch of values from a JSON object and creates a bunch of checkboxes and either checks or unchecks a these checkboxes based on their values.
This script treats me like a woman treats me...
"If you don't know what's wrong, then I'm not going to tell you..."
The scr...
Hello,
I have a web page that is intended to be loaded on a person's iPhone. When the page is loaded, I want to hide the status and address bar that is at the top. I have seen other sites do this. In an attempt to accomplish this, I have placed the following code in the section of my web page:
<meta name="viewport" content="width=devi...
Hello, I'm trying to remove the CDATA wrapper in the following script (content has to be wrapped by CDATA to pass XHTML validation):
<script id="tplTest" type="text/html">
//<![CDATA[
<p id="msg">Hello</p>
<p>Another test: <#= ddd.ArtID #></p>
//]]>
</script>
This js script:
var strTmp=document.getElementById("tplTest").innerHTML...
I'm porting some old Javascript to jQuery:
document.onkeyup = function (event) {
if (!event) window.event;
...
}
this code works on all major browsers. My jQuery code looks like:
$(document).keyup = function (event) {
...
}
however this code is not working (the function is never triggered at least in IE7/8). Why? How to...
Quick note: any links in this document with a space after the "http" is just because I'm a new member, which apparently means I can't post more than one hyperlink. I don't actually have this space in my code.
I'm trying to use Acrobat javascript in Adobe Acrobat to communicate with a web service. Specifically what I'm trying to do is ...
We are attempting to only make available certain functions to be run based on what request address is.
I was wondering how we could do this:
if(condition1)
{
$(document).ready(function() {
...
...
// condition1's function
});
}
else if(condition2)
{
$(document).ready(function() {
...
...
IList<Customer> Customers =
flat.GroupBy(cust => new { cust.ReferenceNumber, cust.Name, cust.Address })
.Select(c => new Customer()
{
ReferenceNumber = c.Key.ReferenceNumber,
Name = c.Key.Name,
Address = c.Key.Address,
...
I have an iFrame that shows external web pages through one of my proxies that I control. But this proxy doesn't handle javascript properly most of the time, the external pages throws javascript errors. Javascript doesn't need to work as it's not important.
What can i do to hide these javascript errors? They are annoying and I may have ...
I'm want to implement thumbs up and down rating system in my web app using jquery. Please tell me some plug-in or code how to implement the thumbs up and down rating system in my website, please share links or resources.
Thanks
...
I'm trying to validate that a certain increment of a product was entered in the product qty textbox that is in a repeater. The problem is that the increment is different for every product, so I need that as a variable for each call to validate it (which I don't think you can do with a custom validator), and I need it client side with a ...