Most of the examples you find on the web, of using javascript from ASP.NET pages puts the javascript in the markup file (*.aspx). This is, of course, a really bad idea(tm), for all but the simplest uses of javascript.
What we want, of course, is to wrap the javascript up into a class, and to instantiate an instance of that class and ti...
I was on Facebook and realised that when I change page the page address changes but the page does not redirect but loads via ajax instead.
You can tell because the console does not clear when you click the link but the URL changes.
Weird, but anyone know how it is done?
...
I'm working on prettify'ing some auto-generated emails that often have code snippets in them. I want to use Google's prettify project to syntax highlight the code snippets.
How can I invoke prettify on the server, before sending out the email, such that users will still see the highlighted syntax when javascript is disabled in their m...
I can get the icon to show up, and it fires a simple alert if I place the javascript line in the href but I cannot attach a dialog object to the link id.
I am using "elmsuffix" to get the html there:
This works:
{name:'name',index:'name',width:100, editable: true, formoptions:{elmsuffix: "<a id="companysearch" href="javascript:alert...
Hi,
Is it possible to detect when the share button is clicked in the pop windows when using fb_share ?
I used the new SDK and got it working using the response but I cannot seem to get it working when using the simple share button.
...
I have the following bean method signatures:
public String foo();
public List<String> getList(String bar);
public String getName(String baz);
The following works for me:
$("#div_id").append('<%= beanId.foo() %>');
The following is what I would like to do, but is a little more complex though, and I can't get it to work.
var...
How do I modify the style of the li element using DOM?
<div id="tabbed-boosts">
<ul>
<li>test1</li>
<li>test2</li>
<li>test3</li>
</ul>
</div>
getElementById('tabbed-boosts').childNodes will get me to the UL, how do I modify the LI?
Also needs to work in IE6...
...
Hi I want to achieve zoom in/out feature which is available in chrome and IE
For instance in IE I can easily set the zoom, percentage by using the following javascript code
document.style.zoom="20%";
How can I achieve the same in Firefox and Opera, any help,guideline is really appreciated.
...
When you put this in your browser it opens a simple notepad to type in.
I don't know enough about javascript to alter it but I would like to make it so it DOESN'T open in a new window but rather in the current window or another tab.
Is this even possible?
javascript:pwin=window.open('','_blank','menubar=yes,scrollbars=yes,location=no,...
Hi
I have a user control "SettingsControl" containing an ajax:CollapsiblePanelExtender which in turn has a GridView (gridView) and checkBoxes. On top of GridView we have two LinkButtons "Select All" and "Clear All". I have written to enable select all and clear all functionality. Select All should select all the rows in the grid by call...
<script type="text/javascript">
$(function() {
$("#resizable").resizable().draggable();
$('#resizable').append('<iframe id="rte" width="100%" height="100%" ></iframe>');
myeditor = document.getElementById("rte").contentWindow.document;
myeditor.designMode = "on";
$('#rte').bind('keypress', f...
I am trying to make a debugger that will be dynamiaclly created with some variables. The names on the left div need to show a div for the corresponding variables Description,Variable ID, and initial Value as well as another div that will show history and lock status when variables are updated later. Where I am having trouble is properl...
I've got the script below
<script type="text/javascript">
$(document).ready(function () {
var ChildMenusFound = $(".menu_Child").hover(function () {
//Mouse Over
alert('ok');
$(this).toggleClass("menu_hover");
}, function () {
//Mouse Out
...
I have an iframe I'm using to pull in some content hosted by a 3rd party vendor to our website. We are trying to determine the height of that content to adjust the iframe height but I'm getting cross site scripting errors. I wasn't aware that sub-domains count as a cross-site. Is there some way around this without having to keep them on ...
I'm builing a project where I'd like to use an embedded Google Calendar (http://www.google.com/calendar/embedhelper) where my users can view a set of events and then click on an event to choose it.
Is there anyway that I can trigger a JavaScript funktion when clicking on an event?
I've looked through the Google documentation on this b...
I have div layer with overflow set to scroll.
When scrolled to the bottom of the div, return function
...
Just because functions are first class objects, there are closures, and higher order functions, does Javascript deserve to be called a Functional Programming language? The main thing I think it lacks is Pure Functions, and it doesn't 'feel' like other functional languages, like lisp (although thats not really a good reason for it not to...
Is there an easy way to save ajax requests into a browser's history so that when you use the back button it will preserve the last state of the DOM?
Websites like twitter and digg that use an ajax pager have a usability flaw where if you click next page several times then click away from the site and then return using the back button, y...
i want to supress the chrome error message
Failed to load resource: the server responded with a status of 404 (Not Found)
it appears when a picture is not found. i catch that error and replace the image with a notfound.jpg pic. but i want the browser not to not this for the user...
thanks
...
We're using Fancybox to throw up essentially an interstitial ad. The page loads, then Fancybox loads over it, and displays our ad content. For most ad content we've put up, this has worked (hand-coded links/images, DoubleClick content, etc). But ads from Burst Media seem to cause no end of headache.
As soon as Fancybox loads, the Burst ...