I want to create a site tour that plays an flv and then highlights different areas of the actual site while the flv is playing.
I would like to do this with AS3 and jQuery. I will probably try to use jw flv player for playing the video.
I know you can call JS from Flash, but it's been awhile since I've messed with Flash video and my g...
I'm working on a program that reads in users input as a string, which includes reading in some numbers and operators.
I'm now trying to determine how to parse a string which I know to be a number but I don't know if it is a float or an integer.
I have a few ideas:
function parseNumber(number)
{
if (number % 1 == 0)
return ...
We are trying to place a flash with transparency that covers an iframe. The iframe will load any external website.
Is there a way to setup the page so the flash is shown but the underlying site is still usable (focus, clicks, formes submitting...etc).
...
Is it possible to submit a form inside an iframe without affecting the browser's history?
I've implemented sending a cross domain POST request. It uses Javascript to create and submit a form inside an iframe. It works, but each request adds an item to the browser's history.
Anyone know a way around this? I've tried creating the if...
Hi guys
I have a series of table cells that I am trying to set the height of. It all seems to work well but unfortunately Firefox adds on the borders to the overall height where as the other browsers seem not to.
Hence I was wondering if anyone knows of a jquery function/plugin that will set the height consistently between browsers r...
Suppose I have a hex number "4072508200000000" and I want the floating point number that it represents (293.03173828125000) in IEEE-754 double format to be put into a JavaScript variable.
I can think of a way that uses some masking and a call to pow(), but is there a simpler solution?
A client-side solution is needed.
This may help. I...
I have an HTML form that a user can add an arbitrary amount of input fields to through jQuery. The user is also able to remove any input field from any position. My current implementation is that each new input box has an id of "field[i]" so when the form is posted it is processed in Python as field1, field2 field3, ...field[n]
i = 0
wh...
How do I create a textbox and button in HTML so that when I click it, it will fire a javascript method with the value and output the result below the textbox/button? And if you click again, it will continue to add new lines of output below the textbox/button?
Say I have the following function:
function double(number)
{
return numb...
HTML Code
<div id="foo">
<h1>foo</h1>
<p>Pellentesque habitant morbi tristique.</p>
</div>
<div id="bar">
<h1>bar</h1>
</div>
jQuery Code
$('#bar').click(function () {
$('#foo p').hide('slow').appendTo('#bar').show('slow');
})
Expected Result
When #bar is clicked
hide the p element in #foo
append p to #bar
show p...
I want to find that when a user fires an event, such as click a button, what function(s) does this event invoke at run-time? Would it be possible?
Thanks!
...
Dear All,
Can I disable close button in IE using javascript?
maybe like "Resizeable =no ".
But i dont want to use "fullscreen = yes".
How ?
Thx
...
Is it possible to define some global variables above your functions on the same .html page?
<script type="text/javascript">
birthYear = document.getElementById('<%=ddlBirthYear.ClientID %>');
birthMonth = document.getElementById('<%=ddlBirthMonth.ClientID %>');
birthDay = document.getElementById('<%=ddlBirth...
I am catching the enter on keypress in my form to prevent it from submitting the form unless it is the last input; otherwise, it acts as a tab (finds the next input and focuses on it).
Any ideas on how to not trigger event.preventDefault() if the browser auto-complete is being selected?
...
Hi,
I have the following javascript but I am having issues within using setTimeout, ie:
function setUrl()
{
// Get system URL details
var url_path = new String(window.location.pathname);
var new_url;
new_url = window.location.host;
}
setTimeout("setValue('ONE_UP_URL',new_url);",2000);
}
But for some reason, I am getting...
EDIT: I have discovered that this is a 405 error. So there is something going on with the webserver and handling POST methods.
I am having a strange occurrence. I have identical javascript code on both my test environment and production environment.
The test environment functions, and the production does not. Here is my identical code....
Hello,
Am wondering how it would be possible to unload a CSS from a page. e.g. In my page I have included a file called a.css. Now I want the user to be able to change the theme, which is CSS driven, thus he/she should be able to unload a.css and then I can load b.css (else they will conflict)
Any idea how to go about this?
...
does anyone know of a (relatively) recent matrix which describes which handsets support javascript in general and ajax in particular within their browsers, and what those browsers are?
I'm unable to find this info, via the obvious means.
The reason for this question is that I want to know how many Verizon handsets in particular would b...
What is better in sIFR 3 beta than sIFR 2 ? What is benefit of using sIFR 3 over 2 ? I need details on differences .
Which is easy to implement and to maintain?
in my new projcet i want to use sIFR so which vesion should be choose and why ? I want to make my site compatible with al a Grade browsers?
...
How can I trace all javascript events of a Webpage?
Is there a possibility to trace all events, even such without a handler attached?
Is there any tool out there, that can do this?
Clarification:
For example:
For a text input i can add an event handler for onblur and onchange.
If I (in the browser) change the value of the textfiel...
Take the below HTML select for an example:
<select name="selValues" id="selValues">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">5</option>
<option value="4">3</option>
</select>
If we write the following jQuery statement:
$('#selValues').val('2'); // Two will get selected
$('#selV...