Browsing Questions About javascript (1)
Detecting font in JavaScript
Suppose I have the following CSS rule in my HTML.
body { font-family:Calibri,Trebuchet MS,Helvetica,sans-serif; }
How can I detect which one of the defined fonts was used in the user's browser?
Edit for people wondering why I want to do this: The font I am detecting contains glyphs not av…
What JavaScript library would you choose for a new project and why?
There seem to be a lot of choices now for DOM manipulation, Ajax and effects. Has anyone any experience of the different options and their pros and cons?
ASP .Net Custom Client-Side Validation
I have a custom validation function in JavaScript in a user control on a .Net 2.0 web site which checks to see that the fee paid is not in excess of the fee amount due.
I've placed the validator code in the ascx file, and I have also tried using Page.ClientScript.RegisterClientScriptBlock() a…
Triple Quotes? How do I delimit a databound Javascript string parameter in ASP.NET?
How do I delimit a Javascript databound string parameter in an anchor OnClick event?
I have an anchor tag in an ASP.NET Repeater control.
The OnClick event of the anchor contains a call to a Javascript function.
The Javascript funciton takes a string for it's input parameter.
T…
How can I make the browser see CSS and Javascript changes?
CSS and Javascript files don't change very often, so I want them to be cached by the web browser. But I also want the web browser to see changes made to these files without requiring the user to clear their browser cache. Also want a solution that works well with version control system such as Sub…
CSS background color in JavaScript
How can I set the CSS background color of an HTML element via JavaScript?
Capturing TAB key in text box
Here on Stack Overflow, I would like to be able to use the tab key within the WMD editor text box to tab over 4 spaces. The way it is now, the tab key jumps my cursor down to the Tags.
Vote for this feature at UserVoice: http://stackoverflow.uservoice.com/pages/general/suggestions/15889
Is…
MAC addresses in JavaScript
I know that we can get the MAC address of a user via IE (ActiveX objects).
Is there a way to do the same thing in all browsers? (Especially since FF is gaining browser share everyday!)
Javascript troubleshooting tools in IE
I use Firebug and the Mozilla JS console like crazy, but every now and then run into an IE-only Javascript bug, which everyone knows are really hard to locate even though you know theyre there (ex: error on line 724, when your source html only has 200 lines!)
I would love to have a lightweight …
Call ASP.NET Function From Javascript?
I'm writing a web page in ASP.NET. I have some Javascript, and I have a submit button with an onClick event.
Is it possible to call a method I created in ASP with Javascript's onClick event?
How can I turn a string of HTML into a DOM object in a Firefox extension?
I'm downloading a web page (tag soup HTML) with XMLHttpRequest and I want to take the output and turn it into a DOM object that I can then run XPATH queries on. How do I convert from a string into DOM object?
It appears that the general solution is to create a hidden iframe and throw the cont…
Best Debugging Tools for JavaScript/xulrunner Development
In the past few months I began my first serious JavaScript development, as I began developing XUL applications. I use Notepad++ as my editor, but I was pretty appalled to find (as far as I can tell) that Venkman/Javascript Debugger is the tool for debugging. It seems like a poor replacement to Vis…
Http Auth in a Firefox 3 bookmarklet
Im trying to create a bookmarklet for posting del.icio.us bookmarks to a seperate account.
I tested it from the command line like:
wget -O - --no-check-certificate \
"https://seconduser:thepassword@api.del.icio.us/v1/posts/add?url=http://seet.dk&description=test"
and this works g…
Javascript keyboard events primer? (or rather: help me with my custom dropdown)
I need help finishing my custom built ajax [div] based dynamic dropdown.
Basically, I have an [input] box which; onkeyup, runs an Ajax search which returns a bunch of results in divs and are drawn back in using innerHTML. These divs all have highlights onmouseover so, a typical successfull se…
Wrapping lists into columns
I'm using ClodFusion(sic) to populate a template that includes HTML lists (<ul>'s).
Most of these aren't that long, but a few have ridiculously long lengths and could really stand to be in 2-3 columns.
Is there an HTML, ColdFusion or perhaps JavaScript (I have jQuery available) way to do…
Next Page >