Hi, I am using the following code to force removal of surrounding frames on page load:
onLoad="if(parent.frames.length!=0)top.location='pagename.html';"
I'm wondering if I can combine this with a post request (I have an iFrame that submits that won't work with target="_top", so I'm redirecting to an intermediary page, and want to remove...
I'm working on a web page that saves in user information on a button click and then redirects the page.
However, I want to alert the user if he/she forgets to fill in a value in one of the controls.
and ask to correct the error and click the save button again..
I implemented a similar function with confirmbox but since the alert box do...
I'm building a simple appliacation using the Google Maps API and I'm trying to import locations from user-generated maps. You know the ones on maps.google.com where you can add locations and share it with others. I want to display these locations on an external page using the Google Maps API. Is this possible?
As there was no obvious wa...
The following div's are displayed onclick. How can I make it display a different message in the div "content" depending onclick. I already have the javascript to display the div's Test1 and Test2. I just wanted to add the ability to also add a message to the div "content". Sorry for the confusion.
<a href="" onclick="showThis('test1');r...
This demo, which goes along with this article, succintly describes what I need to do. However I am not impressed by the use of javascript for something that should be possible in pure CSS.
The articles referenced (which I also found independently when looking for a way in CSS) don't perform the same function as the watchmaker demo - the...
I have got an ActiveX Control that gets an image from a fingerprint device as base64 string. The Active works great and I could transfer the returned base64 string to the server to be converted to a binary data and then to be saved to a database. I use ASP.NET as server side technology and JavaScript as client side technology. The proble...
http://winteradagency.com/MessageBroadcast/applications.htm
On the above page I have boxes inside of a div scrolling area. In many of the boxes the text exceeds the size of the box and the client wants to have the boxes click to enlarge so that all the text can be seen within the box when they click on the words "read more".
I looked...
I have a jCarousel object that scrolls by two. It works fine most of the time, but if there are three elements it does not highlight the "Next" arrow, and you cannot click it or see the third element.
Here is my javascript:
$('.assets').jcarousel({
scroll: 2,
itemLoadCallback: jCarousel_ItemLoadCallback
});
...
I want to force the user to enter any combination of the following words.
the words need to be comma delimited and no comma at the beginning or end of the string
the user should only be able to enter one of each word.
Examples
admin
basic,ectech
admin,ectech,advanced
basic,advanced,admin,ectech
my attempt
^((basic|advanced)|admin|ec...
Hi,
I'm trying to make a drop down menu using javascript/jquery but can't get my head round something.
When you mouseover a menu item it needs to display a div below it which contains another menu, in a similar fashion to lots of javascript menus.
The problem i am having is that when you mouseout of the menu item then the div needs to...
So, I'm working on a mapping application. In the app there are these toolbars and based on certain circumstances I would like to disable specific tools. When a tool is disabled it's image changes. This part works fine.
Now, there is all this Javascript that is in embedded script resources that is ran when certain actions occur, like ...
There has GOT to be a simple way to programmatically render HTML into a div tag that is width=x and have the html (along with all rendered tags and images) wrap inside the div; even if the div is inside a table or cell of width=x. But for the life of me, I can't seem to do it!
...
Hello,
Here is a code
var collection = (function (){
var x = 0;
return {
y : x,
get : function(){return x},
set : function(n) { x = n}
}
}());
collection.set(10...
First of all, here is the site I am working on.
I am trying to get a modal window to pop-up when elements in the Flash are clicked on. Which at this point I have about 90% working when you click on the warrior image. Below is a list of issues I am still trying to solve that I hope you can help me with...
The modal background doesn't ...
Javascript is pretty shaky for me, and I can't seem to find the answer to this. I have some code along the lines of
var Scheduler = function(divid,startDate,mode){
this.setHeader = function(){
header.innerHTML = '<a href="#" onclick="this.showScheduler(1);">Show</a>';
}
this.showScheduler = function period(){
...
I'm trying to use animate function to change the height and opacity for a DIV. The div has a image background in CSS, it works fine on Firefox and Safari, but when i test it on IE the background is being removed. This is my code:
if (jQuery.support.opacity) {
jQuery('#list_box').animate({opacity: '1',height: '300px',top: newTop},{dura...
Hi all, I would like to know how to load an external Javascript into my document from a function.
Thanks in advance all!
...
Hey,
My code looks something like:
$(document).ready(function(){
var cont = 0;
function func1(cont)
{
//Some code here
search.setSearchCompleteCallback(this, searchComplete, null);
//Some other code
}
func1(cont);
function searchComplete()
{
//Some code
cont += 1;
...
I'm having hard time trying to figure out how to auto-save user data in a form when the browser is being closed or user changes the page. The onBeforeUnload event is OK when you want to open a dialog box, but by then it's too late to save the changes (except if you just block the browser in the onBeforeUnload handler long enough for it t...
I have this file
var paragraph = "Abandon| give up or over| yield| surrender| leave| cede| let go| deliver| turn over| relinquish| depart from| leave| desert| quit| go away from| desert| forsake| jilt| walk out on | give up| renounce| discontinue| forgo| drop| desist| abstain from|
recklessness| intemperance| wantonness| lack of r...