I'm working on a Flash game that needs to call some Javascript on the page and get data back from it. Calling Javascript from Flash works. Calling the Flash functions from Javascript (often) doesn't.
I'm using the Gaia framework.
What happens:
The swf is loaded in with SWFObject
There's a button in the Flash file. On click, it uses ...
Is chrome beeping during a "removeAllRanges();" to indicate an error in the code, or just that an action has been taken?
My script does not seem to fail...
...
I got a message on facebook telling me to copy and paste this into my adress bar. I thought i'd post it here and see what everyone thinks about it. What does it do? how does it work?
Here's the source code:
// (DO NOT DO THIS!)
Javascript:var a=["\x69\x6E\x6E\x65\x72\x48\x54\x4D\x4C","\x61\x70\x70\x34\x39\x34\x39\x37\x35\x32\x38\x37\...
I'm not a JavaScript guru (yet). I am trying to figure out a way to cut down the number of lines below...are there any shortcuts for lets say the if statements?
function showDialog(divID)
{
var dialogDiv = $("#" + divID);
var height = 500;
var width = 400;
var resizable = false;
if (dialogDiv.attr("height") != ""...
var popupcontent = myfunc(item.Id, i);
tablepopup = document.createElement("table");
tablepopup.innerHTML = popupcontent;
highSlide.appendChild(tablepopup);
tdAnkunft.appendChild(kirmiziOkLink);
tdAnkunft.appendChild(highSlide);
tableRow.appendChild(tdAnkunft);
Hi,
myfunc returns an html table code like "ta...
I am trying to get the .focus() working in IE, it works in chrome etc. My form is called:
<form name="feedbackform" action="feedback.asp" target="_self" onsubmit="return
validate_txt(this)" method="post" style="margin: 0;">
my radio buttons:
<input type="radio" name="fb_commentype" value="Comment" />Comment
<input type="rad...
Take height for example.
JQ height() <=> JS height // WITHOUT padding, border and margin, including invisible areas
JQ innerHeight() <==> JS ??? // WITH padding, WITHOUT border and margin, including invisible areas
JQ outerHeight(false) <==> JS ??? // WITH padding and border, WITHOUT margin, including invisible areas
JQ outerHeight(...
I ran into an interesting issue the other day and was wondering if someone could shed light on why this is happening. Here is what I am doing (for the purposes of this example I have dumbed down the example somewhat):
I am creating a globally scoped variable using the square bracket notation and assigning it a value.
Later I declare a ...
I use jquery.autocomplete, which uses a javascript regexp to highlight substrings in the list of suggestions that match the autocomplete key string. So if the use types "Beat" and one of the autocomplete suggestions the server returns is "The Beatles" then plugin displays that suggestion as "The Beatles".
I'm trying to think of ways to ...
Is there a way with JQUERY or Javascript, to detect anytime the browser window is loading something, making an ajax call, loading an image, etc... Basically any network activity?
...
Im using wamp server for my php scripts. And Im having difficulties on the logout code.
Every time I click on the logout link and then click on the back button on web browser it still shows the page which can only be access by the user who is logged in.
I have this code at the beginning of the index.php which is called by the log out lin...
i need to autoheight an iframe with a cross domain src, i tried with javascript, but I get an "Access Denied" when I try to get the height of iframe contentWindow. anyone knows any method?
...
I have page consisting of a calendar view ( http://code.google.com/p/calendardateselect/ ) as well as divs, each of which contain information about a person. In each div I want to have a link to a new controller and action, and pass the id for the person and the date selected in the calendar.
I can think of a one way, but I'm thinking t...
Given a function, I'd like to know whether it's a developer-defined function or a built-in function provided by JavaScript engine. Is it possible?
For a developer-defined function, I'd like to trace its execution.
...
I have the following userjs which is intended to remove anchor part of the URL but still jump to it:
// ==UserScript==
// @name PurgeAnchor
// @include *
// ==/UserScript==
(function() {
var reg=/^(.*)\#(.*)$/;
var match=reg.exec(location);
function ObjectPosition(obj) {
var curtop = 0;
if(obj.offsetParent)
while(1)
...
Hi,
I have a ext treepanel with json.
var tree = new Ext.tree.TreePanel({
renderTo:'tree-container',
title: 'Category',
height: 300,
width: 400,
useArrows:true,
autoScroll:true,
animate:true,
enableDD:true,
containerScroll: true,
rootVisible: false,
frame: true,
root: {
text: 'Category',
draggable: false,
id: '0'
},
// aut...
Hi, I am using the Florance theme and it comes with a sliding image gallery using jquery and jcarousellite. Somehow it stopped working (it was ok 2 days) and error (object does not support this property or method) points to the script. The site in question is www.happystay.net
Please, i need some help. Thanks in advance.
...
(creating a separate question after comments on this: http://stackoverflow.com/questions/2634410/javascript-redeclared-global-variable-overrides-old-value)
I am creating a globally scoped variable using the square bracket notation and assigning it a value inside an external js file.
In another js file I declare a var with the same name...
I want to write JavaScript code that would, when I close the current HTML page, display an alert message like "Are you sure?"
I want to take the value of the button from the alert message, whatever the user pressed. How can I do this?
...
Hi all, I use jCarouselLite for scrolling text, I use and as the content for scrolling, I need to trigger a javascript event when it reaches at the end of the content(). I need to change the scroll content when it finishes scrolling previous content. I tried adding a call back function but it does'nt work.
This is my code:
$("#scrollD...