I have a rich text editor that passes HTML to the server. That HTML is then displayed to other users. I want to make sure there is no JavaScript in that HTML. Is there any way to do this?
Also, I'm using ASP.NET if that helps.
...
Hi,
I'm looking for a way to debug a dynamically loaded jQuery document.ready function.
Obviously I can't just bring up the script panel and add a breakpoint with the mouse since the function does not exist there.
I've also tried adding "debugger;" to the function (without the quotes), but that did not do anything. I have ensured t...
I'm splitting up one of my larger apps and introducing a 'cdn' url to house common objects like CSS, javascript, and images to avoid duplication. What I need to do, though, is have separate URLs for our dev environments, so I may have:
http://cdn-dev.example.com
http://cdn-qua.example.com
http://cdn.example.com
depending on what envir...
I'm using Facebook Connect in my app. I have it working pretty well, but in the Safari Error console, I'm seeing errors like this:
Unsafe JavaScript attempt to access frame with URL http://...#... from frame with URL http://www.connect.facebook.com/extern/login_status.phpapi_key=..&extern=2&channel=http...xd_receiver.htm.
Domain...
Hi there,
currently setup vs 2008 and been doing "PURE" javascript debugging with eclipse... so i wanted to give vs 2008 a try and debugging "PURE" javascript... I have vs2008 sp1 and i have unchecked the "disable ie client sscripting" in the IE8...
I now set my breakpoint (in a .js file) and Attach process. and mark Internet explorer...
I keep seeing 60-80% opacity on tables on websites. They look really cool, but I'm not sure why they are doing it. Is it Javascript, or is it an image?
How do I change the opacity of a table?
...
I have been looking at JSONPath and though it seems pretty well done, I wonder if anyone has worked with it and can comment on its usability, or can recommend alternatives? What would be really slick is if there was a plugin for JQuery that did something like this. I have been searching the plugins and coming up empty handed. Anyway, ...
The follwoing code loops over a json object to place marker on a google map. Which works fine.
function displayMarkers(data){
for(var i = 0; i < data.Lat.length; i++){
var point = new GLatLng(data.Lat[i],data.Lng[i]);
marker = new GMarker(point);
map.addOverlay(marker);
// here's the problem
GEvent.a...
So I'm using CSS :hover to replace a submit button background. When I mouse over the button the old background image disappears (so it looks like nothing is there) for a moment and then reappears with the new background. I thought that perhaps the button image file size was too large but its only 1.4kb. Is there a way to prevent this,...
Is it possible to create a cookie after a user has deleted his/her browser cache (+cookies) entirely?
E.g.
Predefined variables loaded into memory
var userID = 1337;
var IP = 222.222.222.222;
var trackingUID = 'LaughingAtDancingFooBars';
If the above method of storing the data doesnt work, perhaps storing the data inside the document...
I can call a function directly (I'll use alert as an example) like so
alert("Hello World!"); // pops up an alert window
However, when I put a function in an object, calling it no longer works:
d = {func: alert};
d.func("Hello World!"); // doesn't do anything
d["func"]("Hello World!"); // also doesn't do anything
I figured maybe...
First off, I'm a PM and the dev team is already mad at me. So I'd like to take a shot creating the solution to the question below.
We have a static maintenance mode html page that displays "Please check back soon" in 24 languages. Right now we are displaying all 24 translations at once and the page is pretty ugly.
I've wrapped each t...
I'm a beginner and this is my first time encountering problem like this.
I'm iterating a class using the each method provided by jQuery. The page have many class with the same name. So we can expect that it may be 15 iterations.
Each iteration have different value.
$(".book").each(function(n) {
var result = $(this
I have to get ...
I have inherited an ASP.net codebase and I have very limited ASP.net skills. I am struggling to understand why something works and also why it only works in IE.
The following code appears in a page :-
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="map.aspx.cs" Inherits="Romtrac.auth_map" Culture="auto" UICulture="auto" %>
<!DO...
Hi, I have user preference (colour, locale settings) on example.com that I would like to migrate to example2.com
I'm wondering if I can use AJAX or a hidden iFrame to pass the cookie information from example.com to example2.com which will then set another cookie with the same information on example2.com.
I know I could do this easily t...
I have some functionality on my page that JavaScript is currently handling. I want to make my page compatible with non-Javascript users. Is there a way I can say "If JavaScript is enabled, use my JavaScript routine, otherwise do a Postback and let the server-side handle it?"
...
It has worked for over a year and started opening in a new window. I am not aware of anything changing.
I made it following the guide at Stunnware.
The code in the page is:
<html>
<head/>
<body class='stage' onload='resultRender.submit()'>
<FORM id='resultRender' method='post' action='/ALI/AdvancedFind/fetchData.aspx' target='resultF...
I have two listboxes in asp.net. On the click of a button I want to load a list box with the elements of the selected items in the other box. The problem is that this has to be done on the client side because when the button is clicked I don't allow it to submit. I want to call a javascript function onselectedindexchange but that is serv...
Is it possible to pull a bunch of .jpg pictures form a local file and throw them into a list?
Sorry, I was very vague
Pulling from a directory (relitive to the index) like.
I want to list them in an image tag, sequentially.
...
Greetings.
I'm working with Avenza Mapublisher (an extension for Adobe Illustrator) to create an interactive map.
When exporting the map it creates a series of flash swf files, an html file, and some javascript code. The above link shows the non-formatted version. As you can see the map loads very slowly because by default all the lay...