I realize this question has been asked quite a bit on StackOverflow; hoever, after looking through a number of them, I believe my question has one more requirement. I want to transform a regular html table, into a table that can be scrolled both vertically and horizontally, while the the header remains at the top. The width of this tab...
I'm using the following Java Script Code:
function activeTr( row ) {
row.bgColor='#F1E1D1';
document.body.style.cursor = 'pointer';
}
function inactiveTr( row ) {
row.bgColor='transparent';
document.body.style.cursor = 'default';
}
Respective the following HTML:
<table>
<tr bgcolor="transparent" class="" onclick=...
I have a div that I want to write to a popup window (for printing).
I'm grabbing the contents of the div's I want on the page using jQuery's html() function like so:
function printOptions() {
var printwindow = window.open('', 'Report', 'height=600,width=600');
printwindow.document.write('<html><head><title>Report</title...
I have an input box that that is part of a form . depending on some circumstances I want to add an Onfocus element to my form but i want to do this using js and only if needed. I have listed the html code below . Can anyone tell me how I can add the onFocus element using js ? thanks
<input name="associate" id="associate" type="text" s...
I'm generating some simple XML via javascript, and then using doc.open, doc.write, and doc.close to write the xml into an iframe.
My problem is that in the iframe, it is not being rendered properly. It's as if the xslt renderer is not kicking into gear and it tries to render as html(just showing the text node values).
The xml itself is...
hi my dear friends :
i have a Softhink Menu In My Asp.net web app and every thing is ok.
i want to force this menu to change it's width when the browser width changes (or screen resolution changes).
i mean i want this menu with 100% width in my page.
how can i do that?
thanks in future advance...
best regards
...
My team has come to conclusion that in order to highlight certain text we will use !!! as special symbol. Long story.
I love !!!JavaScript and jQuery!!!.
should get transformed into
I love <span class='hl'>JavaScript and jQuery</span>.
Do not worry about the edge cases. We are developing a system for school children and they don't ...
I'm trying to take a javascript widget hosted on widgetbox and use it in a standard FBML page. Is there a way this can be done using flash? I've tried to use fb:swf and replace the widget ID in flashvars but it's not pulling in the widget once i do it.
<fb:swf
imgsrc='http://img36.imageshack.us/img36/2045/playbuttonm.jpg'
swfsrc='...
I was wondering if anyone had any ideas if a plugin or other script existed out-of-the-box to do this kind of functionality:
User opens up a lightbox/modal dialog
User clicks some action
The previous lightbox slides out and a new one slides in
I'm trying to do this as a more graceful way of handling multi-level modal navigation than st...
I want to combine a content slider with a fancybox, lightbox type plugin. Does a plugin like this exist?
...
Hi everybody. I have a strange problem with hover in Opera browser.
Here's the test case:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>opera hover issues</title>
</head>
<style>
.item {
background-color:pink;
border:1px solid red;
color: maroon;
height:100px;
width:300px;...
I have this HTML:
<div class="info">
Some Text Boom A <a onclick="menu('id1');">Link</a> | More text
<a onclick="menu('id2');">Another Link</a> | more text
<ul id="id1" class="submenu">
<li><a href="dfhdfh">A1</a></li>
<li><a href="aetjetjsd">A2 This is Long</a></li>
<li><a href="etetueb">A3</a><...
I'm posting this again, this time including the code that works.
I have a form that has a block called "Product", containing text inputs. Inside that block, the user can press "add item" and have the JS show one more field. Till now everything works.
I've tried to add a function for adding a new "Product" block but no luck. Do you have...
I want to make an element dbl clickable, and when they do it, it selects text which is a little ugly. Is there a way to deselect text with JavaScript (or jQuery) or just make it not select text in the first place? Its on an <h1> element by the way.
Also, some have suggested:
$.fn.extend({
disableSelection: function() {
...
I'm using the JQuery getJSON function to get some JSON-formatted data.
The data will be used along with the YouTube JavaScript API: http://code.google.com/apis/youtube/js_api_reference.html
The JSON data is not pulled from YouTube. It's a simple, hand-written list of YouTube Video ID's and Titles which are listed on a CSV. I'm using PH...
I'm trying to get the "Added contacts" on this page:
The data is injected with an Ajax call, and I used Wireshark to capture the call which I think gets the data:
POST /dwr/call/plaincall/UserActionAPI.getRecentlyTitleChangedContacts.dwr HTTP/1.1
This posts a bunch of variables and a cookie, and so I made a curl call with the followin...
I'm trying to use JS to access data in OpenGraph meta tags. It works fine with meta tags that have the standard attributes (name="x" content="y"), but for OpenGraph tags, the meta tag reads
<meta property="x" content="y">
I haven't had any luck accessing the contents of the "property" attribute using JS. The .name attribute is just...
I need to embbed a bitmap editor in one of my site pages. Is there a good option out there?
...
I'm updating some older code that used the v2 API for Google Maps. On domready, it would use a statement like
if(google.maps.BrowserIsCompatible()){
// load the map
}
Now that I'm loading the v3 API, I get an error
google.maps.BrowserIsCompatible is not a function
I've read a ton of threads in the Google v3 api groups, but haven't...
When I put a smilie (image, vertical-align: middle, 15px height) of 15px in a text with a line-height of 17px, everything is okay.
But when i make the lines 16px, a smilie can change the line-height.
Its for a simple chatbox, and it is really annoying that if you type a smilie it changes the line-height.
So how can i put smilies withou...