Essentially, on page load, I want a video to be hidden behind an image (I guess this can be done with positioning divs).
I would want the video to begin to play when a user clicks on the image the video is hidden behind. This should be possible with a bit of JavaScript/CSS.
What I'm really asking is does anyone know of any examples of ...
<script type="text/javascript" src="swfobject/swfobject.js"></script>
<script language="javascript" >
swfobject.registerObject("myId", "10.0.0");
function execute(){
return a;
}
</script>
<body style="margin:0">
<object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800" height="500">
<param name="movie...
I have a page in flex and on this webpage I have an iframe. I want to add code in javascript, that will detect when the page in the iframe changes (for example, if someone clicks on a link within the iframe) and I want to know what the URL of the new page in the iframe is.
Is there any way to do this?
...
Let's assume a simple application, which has at the top the following navigation (pseudo code):
<a href="?action=new">New</a>
<a href="?action=search">Search</a>
Below, there are different sections, i.e. for the "New" mask:
<div id="condition">
<form>
<input type="text" name="Login" />
<input type="text" name="Fir...
Im trying to filter table rows in an intelligent way (as opposed to just tons of code that get the job done eventually) but a rather dry of inspiration.
I have 5 columns in my table. At the top of each there is either a dropdown or a textbox with which the user may filter the table data (basically hide the rows that dont apply)
There a...
For some reason, getElementById() and getElementsByClassName() cannot locate many of the elements on gmail.
For example, the div entitled "Mail" on the navigation bar has the code:
<div id=":qy" class="z9 z8 T2"><span class="is">Mail</span><div class="Ww4Jzd"></div></div>
Yet running document.getElementById(":qy") in the Chrome consol...
Hello,
I'm using JavaScript to do some regular expression. Considering I'm working with well-formed source, and I want to remove any space before[,.] and keep only one space after [,.], except that [,.] is part of a number. Thus I use:
text = text.replace(/ *(,|\.) *([^ 0-9])/g, '$1 $2');
The problem is that this replaces also text i...
Gmail seems to have some clever way of handling the back/forward buttons in a rich JS application.
In my organisation we trialled the jQuery history plugin. The plugin basically runs a function every 100ms which parses the URL and tests if it has changed. The history is tracked by HTTP anchors, and if the anchor has changed then the plu...
I am building an application and have a page with a bunch of select boxes where the user must set different options...
How do i show all the options that are available when the user tabs into the box? Currently i can tab into the box and start typing and it will search through the options, but it does not show the available ones.
Is th...
Suppose you have a text-field in your webpage. The value inside text-field is "This is your welcome text". Is there any way by which I can provide red color to "welcome" and not to other words.
In short applying styling on some part of text inside a text-field.
can some body suggest a way of doing it?
...
First, let me say that I am not familiar with the terminology so, if you see something, by all means, help me improve the wording.
What I want to do is retrieve a CSV file that is generated by a website, apparently based on a table.
The site in question has two drop boxes from which one can select the queries and then, based on `onchan...
I have a webpage that is only accessible over http basic auth. How can I figure out the basic auth username in javascript in that page. i.e. when someone visits it (after logging in), I want to make a popup that says "Hello, you're currently signed in as the user $USERNAME"
...
Hello,
I have been looking all the day about my strange problem.
I have a page, which is loading dynamically content via ajax (with jQuery), but I think it's not a jQuery problem.
The dynamic page contains a javascript function, let's call it "myTestFunction()", without any parameters.
After document.ready (jQuery) or at the end o...
Mootools Events works just on first click, after stops working.
Hope someone have issue for that: http://jsfiddle.net/3j3Ws/
CSS
ul li,li.selected div{
width:22px;
height:22px;
display:block;
background:#000;
color:#fff;
text-align:center;
border-radius:3px;
}
ul#list{
display:none;
opacity:0;
flo...
I am using a document.getElementById("val").click() to invoke a click event, but it keeps firing multiple times.
Here I add the eventHandler
try {
//add mousedown event handler to navigation buttons
addEventHandler(oPrevArrow, "mousedown", handlePrevDayClick);
addEventHandler(oNextArrow, "mousedown", handleNextDayClick);
...
Hi all
I want to achieve a very simple effect to scroll divs when pressing an arrow button ... How do i do this?
Basically i have a maximum of 4 divs named:
Slideframe, slideframe1, slideframe2 and slideframe3
I have a PHP variable called count which generates the slideframe content based on a PHP loop which increments a variable cal...
I transfer a (*.txt)'s path by request.setAttribute("path", textpath); in servlet.java to a *.jsp. And the *.txt is in webserver address.How to show the content to textArea?Thank you.
...
I'm trying to get the success data from a jquery Ajax call so I can use it elsewhere but for some reason its only accessible within the actual success call, so immeditaly below works but the other doesnt'.. any advice is appreciated
success: function(data) {
alert (data)
}
this doesn't work when I try to pass "data...
I know that live() can be used to support event handlers for current AND "added later" DOM elements.
I wonder how to do the same thing with each()?
Like if I have $('.something_or_other').each() but then another DOM element with class="something_or_other" gets added? How can I set it up to automatically apply the each iteration to this...
I try to use the jquery + json to get all elements in form and build a JSON var to post in a ASP.NET MVC method.
$.fn.serializeObject = function () {
var o = {};
var a = this.serializeArray();
$.each(a, function () {
if (o[this.name]) {
if (!o[this.name].push) {
o[this.name] = [o[this.name]];
}
o[this.name].pu...