<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
function isLoggedIn(){
$('#fb_dash_anon').hide();
$('#fb_dash_loggedin').show();
}
function isNotLoggedIn(){
$('#fb_dash_loggedin').hide();
$('#fb_dash_an...
If you use chrome 4 going to this page: http://web.cara-jo.net/
You will find that the slideshow does not run for the first time.
Then if you reload the page, you will magically find that the slideshow runs properly.
The slideshow is a jquery plugin called Pikachoose: http://pikachoose.com/
What makes such an interesting behaviour in...
Is it possible to create a 100% seamless marquee in jQuery (or just javascript but jQuery prefered)? I've made a simple marquee that moves left until it is off the screen then simply jumps (when out of view) to the right and starts again. However I would love it to not have the wait.
The only way I could think of doing this would be to ...
I have a select box that is populated with all the available options it can have. When a user clicks on a record in my application, I get an xml response that includes the value of the option for that record. I'd like to use javascript to set the selected index for that particular option in the select box without having to reload the s...
Group,
I am struggling with syntax. I have dynamic links in my report and when the link is clicked I want the window to open up target="_blank"
I have tried the following, but I must be missing a ' or " somewhere because I am having no luck. The parameters are throwing me off.
="javascript:void(window.open('http://server/folder/filen...
Hi I made a function to use sIFR
function sifrz() {
var geosans = { src: 'sifr3-r436/flash/geosans.swf' };
sIFR.activate(geosans);
sIFR.replace(geosans, {
selector: '#title,#descr',
css: '.sIFR-root { background-color: #7d7e7e; color: #000000; }, a { color: #000000; }, a:hover { color: #000000; }'
});
}
then I've...
When using the javascript timeline widget simile, i see there is hour, day, week, month, year intervals. Is there anyway to have an interval be a quarter of a year?
i am trying to group events into Quarter1, Q2, Q3, Q4 in 2010.
...
Javascript's MATH object has a random method that returns from the set [0,1) 0 inclusive, 1 exclusive. Is there a way to return a truly random method that includes 1.
e.g.
var rand = MATH.random()*2;
if(rand > 1)
{
rand = MATH.floor(rand);
}
return rand;
While this always returns a number from the set [0,1] it is not truly ran...
I have the following code which works in FF / Chrome
var stack = [Array.prototype.slice.call(document.getElementsByTagName("body")[0].childNodes)], nodes, node, parent, text, offset;
while (stack.length) {
nodes = stack.pop();
for (var i=0, n=nodes.length; i<n; ++i) {
node = nodes[i];
switch (node.nodeType) {
...
Other than using a timer to count the number of elements over time and looking for changes, I can't think of a better way to simulate this event.
Is there some sort of proprietary IE version of DOMNodeInserted? Thanks.
...
I use Jquery form validation to validate form input data. There is a
confirm
check on
submit
of this form.
.
The code is:
<script type="text/javascript">
function Confirmation(){
var answer = confirm("Do you really want to withdraw this amount of money from your account?")
if (answer){
return true;
...
Hi,
I use the JQuery dialog and from the PHP I can build some add-in to the button. To be able to add code from the server side I pass a method by parameter. The problem is that FireBug tell me that the method is not defined :
okHandler is the parameter of this method call to raise the dialog and it contain a simple alert message for...
It seems like when trying to open 2 windows from a succession of windows.open calls, it only allows the first window to open and deletes the reference to the second window. I know this probably sounds a little kludgy, but we do need to have that second popup.
Any ideas?
Unfortunately we are addressing a user-case, where ie6 on the user...
I'm working on a piece of logic that I would like to express on the server as well as in the browser. Something like validating a form where there must be certain logical relationships between the elements based on what has already been entered.
So... If I can write the logic once and somehow end up with both Ruby and with Javascript, I...
This is the code I wrote up to display a Mancala board but it won't display the leading space for some reason. Does anyone know why this is happening? Any help is greatly appreciated.
function display(board)
{
var space = " ";
document.write(space);
for (var i=0;i<board.length/2;i=i+1)
...
Below is the code, I get an error which says that submitHandler is an invalid label
$(document).ready(function() {
$("#withdraw").validate({
rules: {
amount: {
required: true,
number:true,
min:0,
max:<?php echo $balance; ?>
}...
erm...hi first, i wanna ask how to i change a facebook-style lightbox content with a textarea?
i don't know how to exaplain,but i think the images below will say what i want
http://img163.imageshack.us/img163/6248/93306989.jpg
i'm using Facebox to do the pop up content,so how can i make the pop up content dynamic?
Example: Edit the t...
Is my function of creating cookie correct? and how do i delete cookie at the beginning of my program run? is there a simple coding?
function createCookie(name,value,days)
<script>
function setCookie(c_name,value,1) {
document.cookie = c_name + "=" +escape(value);
}
setCookie('cookie_name',mac);
</script>
function era...
I love the new http://thesixtyone.com design. I am wondering how do they proportionally stretch the image to fit the whole background? Are they using CSS/Javascript or other tricks?
...
Ok, using Javascript (or something I can easily convert, I know BASIC very well, but a little rusty at C++ and C#) I need to solve this problem/equation:
Given the start and endpoint of a line (in x, y, and z) what point on the line satisfies the equation
A*x+B*y+C*z=D
A, B, C and D are defined, but x y and z are unknowns, but are s...