I am designing a small website using HTML + JSP.
This is my first time using JSP, though previously I have used PHP to make pages. One thing i found was that when i was making separate pages, i was copy + pasting the layout code of the site into each page, and then adding the content. This seems extremely inneficient, and I was wonderin...
I would like to convert flat form data to recursive JSON data in python or javascript. This JSON data can later be interpreted by a template engine (google for tempest, it has django like syntax). There are plenty examples to convert flat data to recursive data, but the problem is it can't be a dict or list only.
I tried to do it in man...
I have created a small menu of new items and would like to have the "facebook like" iframe position in front of them. but when i drop the html code it appears floating above the text/link. i have uploaded a screen shot
http://img294.imageshack.us/img294/9343/likeoverflow.jpg
you can see the text appearing underneath.
What css am i mis...
Hello fellow coders & codetts
I was wondering, if I needed to create a rich text formatted document using html and css, which will be used inside a UIWebView, could I then insert cocoa calls inside HTML tags? I do this in ruby, and many other langs do this as well, but I do not know if possible on the iphone.
My main goal is to displa...
I'm working on an ASP.NET web application. There's a bill page which has two links to different pdfs of the same bill. When you click on one of the links it takes you to a ViewPDF.aspx page that shows the pdf. There's also an option to view both in a split screen so that you can compare them. When you click on this link it takes you ...
I am trying to write PHP code to loop through an array to create an HTML table. I have been trying to do something like:
<div id="results">
<table class="sortable">
<?php $results = $statement->fetchAll(PDO::FETCH_ASSOC); ?>
<?php do: ?>
<tr>
<?php for ($i = 0; $i < count($columns); $i++): ?>
...
I'm trying to fit an image into a <td> that is smaller than the actual image, but I don't want the cell to grow to accomodate the image. Instead, I want the image to float above the cell.
How can I do this?
...
Normally an HTML form sends query parameters as key-value pairs like this:
http://blabla/?something=something&this=that
But what I need is a form that generates a URL with one of the query keys omitted:
http://blabla/?something&this=that
As far as I can tell, a missing or empty name attribute does not quite provide what I e...
Hi,
I've built a horizontal accordion with jquery. I'm having a problem with it. When it animates from one panel to another there's a jump at the right hand edge of the carousel. I've tried everything to get rid of this...adding widths...changing the js..removing whitespace from html etc..any suggestions?
http://boudaki.com/testing/car...
We're using a Html Wrapper supplied by a client, which references a reset style sheet that sets the <p> element's margin to 0px. I'd like to have a normal top & bottom margin with my <p> elements, so can somebody tell me what it should be?
...
I'm using xhtmlrenderer (Also known as Flying Saucer) with iText to convert HTML to PDF. How would I create bookmarks with this? Does someone with have a small example?
Thanks in advance.
...
I'm trying to create a relatively simple page with a that is on the left side, taking up the whole height of the browsers window, with a fixed width (say 200px), and then an that uses the rest of the window width, and also the whole windows height. I want to use CSS to do it, no javascript. I don't mind wrapping the in a if I have to...
languages used: html, javascript/jquery, and php 5.2
So I created this function that onclick creates a "group". For simplicity, we'll say this is a group (aka the response from ajax.):
<div id="group1">Group #1</div>
This is where the groups go: (html page)
<div id="groups">
<!-- groups go here -->
</div>
So the user creates g...
i have these forms:
https://www.mychabad.org/templates/articlecco.asp?aid=1188756&jewish=General-Contributions.htm&lang=en&site=chabaduc.org
https://www.mychabad.org/templates/articlecco.asp?AID=1189379
https://www.mychabad.org/templates/articlecco.asp?aid=1189287&jewish=Shabbat-Holiday-Sponsorships.htm&lang=en&...
I need a regex for following html :
<div xmlns="http://www.w3.org/1999/xhtml"> <p/>
<p/><p/> <p/>
</div>
This comes form a richtext field and obviously this is no meaningful content or means: empty.
I can not say in java: if (richTextConent == null || richTextContent.length == 0) because the richtext field contains somethin...
I have an image that when you click it its suppose to call another function and open a window.
It works the first time you click it but when you close the window and click on it again nothing happens. I've checked the script debugger it does infact get into the method the 2nd time but nothing happens even when i step through.
Markup:
...
I want to append a script tag which executes one line of JavaScript to the head of a document, rather than appending a script tag which is empty and uses the src attribute.
Here's what I've got so far:
<script type="text/javascript">
var scriptContents = 'alert("hi")';
var theScript = document.createElement('script');
theScript.type ...
Hi there - I don't know that this is actually possible with my current setup.
There are three fields: Current pass, new pass, and repeat new pass.
(By request) All I'm trying to get it to do is, when a user wants to update their password but enters identical info in the old and new pass fields, a lightbox pops up asking if they want to ...
I'd like to throw together a quick HTML preview window that takes the contents of a text area and shows it in a modal dialogue with a single close button. The contents should be rendered as HTML.
Not sure how to go about this.. what's the best way?
...
Hello, how can I scroll the page with javascript until the scrolled height will be some predefined number of pixels?
function pageScroll() {
// Next line is pseudocode:
if (window.ScrolledHeight != SOME_NUM)
window.scrollBy(0,50);
}
scrolldelay = setTimeout('pageScroll()',100);
There should be some logical checking of s...