I have a Java web application running in JBOSS with Tomcat with two web applications (contexts) running on it.
A button press on one of the applications opens runs a javascript command to open a new window with a page from the other.
The problem I seem to be having is that this raises a security alert in IE. with the following message:...
Hello,
I am not sure if the is a duplicate post. But I have a plugin (js + forms + html + php) which can be added to various sites. These sites may have different encoding say ISO-8859-1,ISO-8859-9, utf8 etc. I cannot control their encoding of the html or anything.
I am wondering what is the best way to make my php + js + html + forms...
I am having a Tooltip (larger image view) that is being positioned via e.pageX e.pageY and i am trying to make sure it is not hidden below the current scrolled view port.
I have seen many sites have this
my code is something like this but i am missing something.
var positionImg = function(e) {
var viewportWidth = $(window).width();...
I have a href link and I would like it to be clicked when the page is loaded.
...
How do I check if a particular key exists in a Javascript associative array?
If a key doesn't exist and I try to access it, will it return false? Or throw an error?
...
Here's the code:
This function call 'displayRmuForm' after the dates are calculated from effectivedate.
IT'S NOT WORKING :(
var displayRmuForm = function() {
var txtEffectiveDate= $get('ctl00_ContentPlaceHolder1_DetailsView1_txtEffectiveDate');
if (!rmuVisible && txtEffectiveDate.value.length > 0 ) {
$(".container").sho...
I'm trying to design reusable calendar with JS. I've done the easy part. Now's turn to add (display) entries in it.
If I'd be on server side I would use something like
classEntryBase
entries = array();
func addStuff(...)
{
... this.entries[year][month][day] = array(link, linkText, entryText)
}
func getStuff(...)
{
...
I want to determine the mimetype of a webpage.
I am specifically looking for a statement like this, which works for Firefox:
if (document.contentType == 'text/html') {
performX();
} else {
performY();
}
However, a statement which works across all browsers is preferred. Some google result suggested me this, but it fail...
I would like to be able to return a programmatically generated collapsible panel extender through javascript along with it's panel and so on. I've got the panel and associated tables going through just fine however when I try and attach the cpe it breaks. and returns an error:
The cpe panel and such are being generaged by a WebService ...
Hello,
I have a link inside a label. The problem is, when user clicks 'back' after having read the terms, the checkbox is unchecked, because when they clicked on the link they also unchecked the box at the same time, since the link is inside a label.
<input type="checkbox" id="terms" name="terms" checked="checked" />
<label for="terms...
I know I must be missing something here, but I cannot seem to get this to work.
I have assigned a background color to the body of an html document using the style tags inside the head section of the document, but when I try to read it via JavaScript, I get nothing:
<html>
<head>
<style>
body { background-color: #ff0; }
</style>
</head>...
I have created a webpage, in which i have a few input box and a submit button in a
<form action="" method="post" name="password">
On the click of the submit button, it calls a js function, which checks if the passwords are same, and if not it displays the error
if (passwrd1!=passwrd2)
{
document.getElementById("response").innerHTML...
I have a really, really nasty bit of JS code that I've inherited. The code is quite long, and quite obtrusive. The functions defined are all about a thousand or so lines each...
Anyway, since there isn't a call to anything as elegant as onload, I am trying to figure out how what is on the screen gets on the screen. Thus I need a way t...
The BBC just released their JavaScript library, Glow. They rolled their own because the major libraries don't adequately support older browsers.
I'm wondering if I should take the time to learn the library. Do other large institutions have similar laws and rules regulating them that prevent them from using the mainstream libraries such ...
Is there any way to match a function block in javascript source code using regular expressions?
(Really I'm trying to find the opposite of that, but I figured this would be a good place to start.)
...
I'm using google map api for showing location. In that i case i need option to get city sate zip from google map marker. In map , user can move the marker to position it after drag finished it will return the city, state and zip. I have successfully get the lat and lng but how can i get the city , state and zip. please help me as soon as...
Hey Folks,
Is there anyway to grab the referring URL using javascript, lets say the reffering url is http://page.com/home?local=fr, then redirect a user to a new page with the same local as the reffering page (http://page.com/login?local=referring local)?
Pseudo code would be something like this:
var referringURL = document.referrer;
...
paper=Raphael('previewBody',480,480);
paper.path({"stroke-width":1},'M0,0 L480,240 L480,480 L240,480 z')
.attr('fill','url(bg.png)'))
.scale(.5,.5,0,0);
My problem is the fill is not scaled with the svg canvas, so proportionally, it ends up as twice the size it was before the scale of the path.
Is there any easy way to scale the fi...
Hi,
I've been looking through a lot of Javascript Optimizing and most of them talk about string concatenation and a few other big ones found here, but I figured there had to be more details that you can optimize for when speed is critical and the processing of those pieces of code is very high.
Say you run this code for some reason: (u...
I am creating a calendar list system, that has tabbed dates on top, with data listings below it. I think I know how to use JSON and load the data with JQUERY into a div, but I am not sure how to load it dynamically, based on which tab I selected.
How would I do this, and what's the best practice? I am using the codeignitor framework.
...