In WebKit I get the following error on my JavaScript:
Refused to execute a JavaScript script. Source code of script found within request.
The code is for a JavaScript spinners, see ASCII Art.
The code used to be working OK, and is still working correct in Camino and Firefox. The error only seems to be thrown when the page is saved vi...
Hi,
I am having a problem with the comments system on my site.
The comments are displayed with a javascript error message.
This is the error message I get when a user attempts to post a comment:
.(JavaScript must be enabled to view this email address) posted on Fri Oct 09, 2009 at 04:19 PM
Attached below is the snippet of code tha...
I have a page with one continue button. If I click on continue then
all the above 3 popups come on after the other if I click OK for the popups, but if I click Cancel on a popup then the page should get closed, which is done by my closeAction(); method.
If I click cancel for the 1st or 2nd popups the page is not being closed, but the 3...
Does Events Handlers in JavaScript for one event fired as FIFO, LIFO or in parallel?
...
I have a bookmarklet storing a lot of DOM data, but I would love to avoid to put them out of the body tag so the script in the page won't mess with it.
Semantic value is not an issue for once, but I would like to know :
will it trigger some browser behaviour ?
will it still be accessible in the DOM ?
can I display it using absolute po...
I'm using sIFR 3 (beta revision 436).
I have a menu 40px high. I have 9 links, 6 of which are one line and 3 are 2 lines. To arrange the single line links within the centre I have offsetTop by 11, example code of the sifr-config here:
sIFR.replace(herculanum, {
selector: '#menu ul li',
css: [
'.sIFR-root { background-color: #000000; t...
I have a site which has jquery included in the header. the application makes heavy use of jquery. now, that site uses ajax and shows up different message boxes when the user does something (it's a third party product used). I want to modify these boxes, but I need a piece of code to take action as soon as the DOM gets manipulated by ajax...
I have a third party javascript app on my site that uses a lot jquery and ajax. Is there a way to get the element in the DOM, in which an manipulation has occured by javascript or ajax or jquery?
I need to intercept these dom changes and inspect these in order to replace some strings (localization purpose).
...
Is there a way to get the name of an attribute of an XML node using javascript.
Lets take this as a sample XML
<?xml version="1.0" encoding="UTF-8"?>
<Employees>
<Count name="EmployeeCount">100</Count>
<employee id="9999" >Harish</employee>
<Salary>
<year id="2000">50 Grands</year>
<year id="2001">75 Grands<...
My goal is to generate the aspx code of a page in the form of string.I am calling the below codebehind code through asynchronous request in javascript and i am getting the response back through Response.Write
string html = string.Empty;
using (var memoryStream = new MemoryStream())
{
using (var stream...
I need read-access to a user-defined property of my UserControl, from within a <script> element. This script needs to run when the user clicks on the link (which I also don't know how to setup). Thanks for your advice, SO!
Code-behind:
public partial class TNLink : System.Web.UI.UserControl
{
[System.ComponentModel.BindableAttrib...
OK, I'm using greasemonkey to replace an editor on a site that is using KTML (from 2006!) with CKEditor. I first get rid of KTML, then I load jQuery and then ckeditor.js and that works, apparently. But when I go to replace the textarea, firebug reports "CKEDITOR is not defined" and my textarea stays normal. Am I loading them in the wrong...
Hi,
Is there any way I can use JavaScript (or jquery) to stop loading unwanted objects on a webpage if i'm not interested in them. I use greasemonkey firefox addon to use bits of javascript for my better web experience and some sites use excessive flash and image content that is irrelevant to me. I'm able to hide their display using jque...
How would I have a DIV stay at the top of the page visually as the user scrolls down a web page?
A simple Javascript framework would be great!
it's for this web site: http://BiblePro.BibleOcean.com
...
I'm looking to re-create the Apple Store shopping cart sidebar.
http://store.apple.com/us/configure/MB535LL/A?mco=MTA4MTg3NTQ
It is similar to "position: fixed" except that it starts out as "position: absolute" with the CSS class "pinned_top" and then switches to CSS class "floating" when a certain scroll-y position is reached.
I've ...
Hello, Im making firefox extension and I have a problem with
variables. Extension works with file (chrome://myextension/content/document.html) opened in few tabs.
I want it to store a value in each tab, so I decided to store it in
one of the html objects, that have got "Object" id:
data="foobar"
node=gBrowser.contentDocument.getElementB...
I have a JavaScript class, and I would like to make it so it can't be subclassed. (Similar to marking a class with the "final" keyword in Java.) Here's my JavaScript class:
function Car(make, model) {
this.getMake = function( ) { return make; }
this.getModel = function( ) { return model; }
}
...
I have a JavaScript class representing a car, which is constructed using two parameters, which represent the make and model of the car:
function Car(make, model) {
this.getMake = function( ) { return make; }
this.getModel = function( ) { return model; }
}
Is there a way to verify that the make and model supplied to the const...
I am simply trying to create a class that moves a specified DIV when the mouse is on the DIV. My problem seems to be because I am specifying a method of my custom class as the event handler. My question is can I specify the method of an object as an event Handler? Or is there any other way to do this?
<script type="text/javascript">
<!-...
I am working on an animated, interactive graph using raphael that I need to work well on the iPhone. I have 2 minor rendering issues that I'm struggling with.
The first is that whenever you click on an svg element that has a click handler attached, mobile safari draws a transparent gray box around it to indicate what was clicked. It's t...