Hi,
Is there a way to spawn a new window via javascript in IE7 that hides the statusbar?
I've added the intranet app as a trusted site. Not sure what else I can use to try. This is my JS
window.open("http:/localhost/start.html", "MyApp", "left=0, top=0, width=" + screen.width + "," +
"height=" + screen.height + ", scrollba...
I am a big fan of the Lightbox2 library, and have used it in the past just not on an MVC project. In the past I remember that Lightbox2 was picky about the paths it scripts, css, and images resided in. I remember specifically have to put everything in subdirectories of the page's path, else it wouldn't work.
In a non-MVC application tha...
Is there any way you can reset the visited status on links?
The scenario is this: On an intranet-site which naturally has a lot of links we want a link to have the status of "visited" for a set period of time only. I am therefore looking for a way to manipulate the visited status of links.
Is this doable? It should be cross-browser of ...
I’ve been using a jQuery to do the whole ajax magic in my web based applications.
But I came to a decision that I don’t need all these amazing features jQuery has, except its ajax functions (like $.ajax(), $.get(), $.post, getJSON() and load();).
Can you recommend a lightweight crossbrowser ajax library/framework (upto ~10 kb)?
Thanks ...
Does anyone know how to print debug messages in the Google Chrome Javascript Console?
Please note that the Javascript Console is not the same as the Javascript Debugger, they have different syntaxes AFAIK, so the print command in Javascript Debugger will not work here. In the Javascript Console, print() will send the parameter to the pr...
I'm trying to get the start element and the end element of a selection and the offset of the selection in each, i do this in firefox as follows:
var delselection = window.getSelection();
var startOffset = delselection.anchorOffset;
var endOffset = delselection.focusOffset;
var startNode = delselection.anchorNode.parentNode;
var endN...
I'm wrapping up a Javascript widget in a Wicket component. I want to let the JS side talk to the component. What I've got so far:
Component in question goes like
talker = new GridAjaxBehavior();
this.add(talker);
in constructor
and then, later on, puts something like
"var MyGridTalker = new talker(" + this.talker.getCallbackUrl()...
I need to change in a text input the character '.' to ',' while typing.
In IE I change the keyCode event property in the keypress event, like this
document.getElementById('mytext').onkeypress =
function (evt) {
var e = evt || window.event;
if (e.keyCode && e.keyCode==46)
e.keyCode = 44;
else if (e.which && e.which==46) {
e...
What's the advantage of passing data as parameters vs part of the URL in an Ajax GET request?
Using parameters:
var ajax = new Ajax.Request('server.php',{
parameters: 'store=11200&product=Meat',
onSuccess: function(myData){whatever}
});
Using URL:
var ajax = new Ajax.Request('server.php?store=11200&product=Meat',{
onSucc...
There are a number of great and not so-great Javascript GUI frameworks out there. I've looked at some (only superficially). And I can't make my mind about any of them
Scroll to the end of this question to see what others say
Ext.js The obvious choice by many since it's one of the most known frameworks.
Advantages: Looks awesome, large...
Hi, I have a "GridView" control in an Asp.net application, that has a <asp:buttonField> of type="image" and CommandName="Delete".
Is there any way to execute a piece of javascript before reaching the "OnRowDelete" event?
I want just a simple confirm before deleting the row.
Thanks!
EDIT: Please Note that <asp:ButtonField> tag does no...
The output of my JSON call can either be an Array or a Hash. How do I distinguish between these two?
...
I have the classical table with expandable and collapsible records that if expanded show several subrecords (as new records in the same parent table, not some child div/child table). I am also using tablesorter and absolutely love it.
The problem is that tablesorter isn't keeping expanded child records next to the parent records. It sor...
Hi all,
I'm trying to get some code working that a previous developer has written.
Yep, his now left the company. :-(
I have a JSON RPC call being made from the JS code.
The JS all runs fine & the callback method gets an object back (not an error object).
But the method on the Java class never gets hit.
The smd method does get hit tho...
function Submit_click()
{
if (!bValidateFields())
return;
}
function bValidateFields() {
/// <summary>Validation rules</summary>
/// <returns>Boolean</returns>
...
}
So, when I type the call to my bValidateFields() function intellisence in Visual Studio doesn't show my comments. But according to this it should. Should it?
...
Nowadays, we have tons of Javascript libraries per page in addition to the Javascript files we write ourselves. How do you manage them all? How do you minify them in an organized way?
...
So I have a control (a map) on an aspx page. I want to write some javascript to onload setup the following:
when mouse stops on control = some code
when mouse moves = some code (but only if the move is longer than 250 mil sec)
This works to trigger code on stop and then on move...
function setupmousemovement() {
var map1 = document...
I am working on a simple notification service that will be used to deliver messages to the users surfing a website. The notifications do not have to be sent in real time but it might be a better user experience if they happened more frequently than say every 5 minutes. The data being sent to and from the client is not very large and it i...
I want to capture the HTTP request header fields, primarily the Referer and User-Agent, within my client-side JavaScript. How may I access them?
Google Analytics manages to get the data via JavaScript that they have you embed in you pages, so it is definitely possible.
...
According to spec, only the BODY and FRAMESET elements provide an "onload" event to attach to, but I would like to know when a dynamically-created DOM element has been added to the DOM in JavaScript.
The super-naive heuristics I am currently using, which work, are as follows:
Traverse the parentNode property of the element back until ...