Is there any way to fire an event when an object of a certain type is created?
I have an <div> element with editableContent="true" and when the user presses enter within the <div>, a new <div> is created that takes up just that line. Is it possible to have an event fire whenever a <div> object is created within my original <div> object?...
I get the error below when converting to PDF with flying saucer. I've removed the ampersand charector and it worked, so this seems to be the problem. How do I include ampersand's in my PDF documents? Thanks in advance.
ERROR: 'The entity name must
immediately follow the '&' in the
entity reference.'
...
I have two submit buttons and one form. How do I check what submit button was selected in my jquery code?
<% using (Html.BeginForm("UserInfo", "Home", FormMethod.Post, new { id = "formNext" })) { %>
....
<input id="submitHome" type="submit" name="goHome" value="Home" />
<input id="submitNext" type="submit" name="getNext" value="N...
I am not the programmer, I dont have access to the Code Behind.
I just style the pages and whatnot.
PROBLEM: I am trying to hide/show elements of a page based on the language selected.
Some of these elements are server controls and a couple of them have specific id's and graphics associated.
I need to change the graphics to the lang...
I've noticed that if I apply a transform on a select box focus (i.e. select:focus) in Firefox it first focuses the select box then you must click the select box again for it to actually drop down. Anyone else experience this? I tried looking for a bug at Mozilla but didn't see anything.
Webkit browsers (tested in chrome) act appropria...
I have a code to declare a variable and then an IF statement which uses that variable to either display, or not display an image.
This code is before HTML
<?php $contents = file("textdocument.txt") ?>
This code is in the HTML
<?php if ( $contents = 10 ) {
echo '<img src="image.png" name="image" border="0">'; }
else {echo "wrong num...
Hi, I found an odd error when I was splitting up my code into a new page (and reorganizing the questions). Sorry if my code is sloppy, I've done alot of re-learning as I begin to incorporate CSS and jQuery into my knowledge base...last time I made a website was with tables back in high school.
Anyway, the problem I have is the hidden in...
I'm looking to have a full page image with a section of the image that, when hovered over, changes the image to a colored version of the original black & white image. I tried doing this with image maps & onMouseOver, but didn't have any success. There are only two images being used, a color and a black and white one.
I just want to hav...
I would like to create a list-like form for a web application. Elements are added to, modified and removed from the list, and the user clicks "Submit" to send the list to the web application for further processing.
I would like to have two INPUT fields that I can add data into, click an "Add" button, and the data is added to both the DO...
In the options page of my Google chrome extension, the user defines a URL destination which saves to LocalStorage["dest"]
Can't get the code to work in the popup.html file though
<script type="text/javascript">
url = localStorage["dest"];
document.getElementById('site').src = url;
</script>
<iframe id="site"> </iframe>
What am ...
I'm pulling my hair out over this. I have this bit of javascript that asynchronously fetches data for an events calendar. Basically when you click on a day of the month a little UI pops up and a text area gets populated with the data that gets retrieved. On this UI are two submit buttons: one to save changes, and one to delete the event ...
Hi, i'm trying to write a very simple wysiwyg editor, where users can simply add bold text, hyperlinks and bullets, after selecting part of the text.. actualy just like CKEditor.
But as far as i know there is no way to add formatting to a textarea. So I would like to know, how do other wysiwyg editors like CKEditor solve this.
...
Looking for ideas / recommendations on finding and replacing a link in all pages of a site, and using Dreamweaver (ick) is not an option. The site consist of 100s of static pages.
...
I am a non-coder and am very good at HTML. I am going to self-teach myself Ruby & Ruby on Rails because I hear it's a good skill to have but especially because it may be an easy first language to learn with my HTML background.
I would like to create my webpage, which will catalog my photographs, using Ruby on Rails. For a non-coder-HTML...
Ok this question may sound a bit convoluted, or at least esoteric, but I'll try my best to elucidate.
In my charting application I have a div which is used as a popup tool tip. This tooltip appears when you hover over a datapoint and gives you some information. I used z-index to make the tooltip render above the underlying chart div. H...
My plan was to use jQuery's .data() method to store my table row information in a hidden div element.
Then, upon clicking an Add or Remove row button, I would modify the jQuery data in the hidden div, clear the table div contents, and then regenerate the table's rows from the data stored in the hidden div.
To start with, my project han...
Is there a project (open source) that takes the widgets and plugins for jQuery UI but allows us to use them without setting up any HTML?
Kinda like Ext-js and Sproutcore, but without the acidental complexity and lack of fluidity, and more like Cappuccino, but without requiring a Mac and the horrible load times from Objective-j (which al...
How do I maintain scope with this?
Original
var Base = new function() {
var canvas;
var context;
this.init = function()
{
console.log("Canvas: " + $("canvas")[0])
this.canvas = $("canvas")[0];
console.log("Context: " + this.canvas.getContext('2d'))
this.context = this.canvas.getContext...
I have the following HTML:
<html>
<body>
<h2>Title</h2>
<div id='large_div'>
blah.. blah.. blah..
</div>
</body>
</html>
How can I make the large_div take up the rest of the page height?
Here is the CSS for the page:
html { height: 100%; }
body { height: 100%; }
#large_div {
/* ??? */
}
...
Say I have a like so:
<table style="margin-left: auto; margin-right: auto;">
<tr>
<td>
</td>
</tr>
</table>
The margin-* attributes instruct the table to center itself within its parent element.
Is there a similar way to center the element vertically?
...