I dynamically assign a textbox value in JavaScript:
var html = '';
for( var s=0; s++ ; s<10){
html += '<input type="hidden" name="hfstepDescription'+s+'" id="hfstepDescription'+s+'" value="'+ sstepDescriptionHTML +'">';
}
sstepDescriptionHTML's conntent may like this
<input type="hidden" name="hfstepDescription11" id="hfstepDescr...
Has anyone ever worked with a system of passing back say, some JSON data and using a javascript routine to generate the HTML to save on bandwidth?
What methods are there and are there any templating systems available?
...
I am working on an authentication system for an online game programmed using PHP and I would like to make sure it is secure. To help with this, I think logging would be useful (and good practice for me as well as a good test for a system logging class). I dont want to use the web server's logs, but I would like to know what would be impo...
Hi,
I am creating a webpage and I am trying to put a png (buttons) over gif files.
When the page renders, it makes the png file appear after or under the gif file.
I tried using and tags but neither work. I have also tried using various CSS padding, alignments etc. but it doesn't seem to work.
Is there a way (code) to get images to a...
I want to author an anchor tag that executes some javascript and then proceeds to go wherever the href was taking it. Invoking a function that executes my JS and then sets window.location or top.location to the href location doesn't work for me.
So, imagine I have an element with id "Foo" on the page. I want to author an anchor similar ...
Hello, I have a jQuery scrollbar in a static html page. The code works fine when it is standalone, but when placed inside a div in my webpage, it doesnt work properly.
When you go to click and drag the scrollbar it doesn't select the scrollbar and it doesn't even let you drag and scroll. However, the up and down arrows allow you to scro...
Is it permissible to have both class AND id attributes in the same HTML tag?
<p id='a' class='b'>
I know there are are rules about one id per page, and multiple classes are allowed in a tag, but I haven't seen anything about having a class AND an id.
...
Hello!
For some reason my paragraphs are displaying line breaks when there is no <br/> tag being used! So if I type content into the HTML and hit return a few times it gets formatted that way.
How can I prevent that? Can I not just get it to flow?
...
Hi,
I have a web app, part of which accepts user uploads of csv files. There is a prospective client in China trialing the site. They report that when they try to upload a file the page 'hangs' ie the 'Please wait etc...' graphic which shows while the file is uploading is staying on their page and the file doesn't get uploaded. I have...
Hi,
I want to know if it is possible, with pure html and css (no javascript, htc files, ...), to create a menu that has a sort of dropdown effect for subitems.
It doesn't have to slide or anything (I know thats impossible), just show on hover.
Edit: It has to work in IE.
Thanks!
...
Does anyone know of an extension for Firefox, or a script or some other mechanism, that can monitor one or more local files. Firefox would auto-refresh or otherwise updated its canvas when it detected a change (of timestamp) in the files(s).
For editing CSS, it would be ideal if just the CSS could be reloaded, rather than a full HTML re...
Is there a way to get a div to always be at the bottom of the window, and another div to change its height to fill any space that it leaves, and that div will scroll if its content is too long. (I never want the window to scroll).
This is best illustrated by a picture:
The green div will always put itself at the bottom of the window,...
I have recently downloaded an app I have been looking for, for quite some time. It basically spiders a website and shows references to dead links, pages etc:
http://home.snafu.de/tilman/xenulink.html.
I am finding this very useful for quality assurance of the websites we publish.
I was wondering if anyone uses a application that spide...
If you look on this page here in Firefox (I'm on 3.5.2 on a Mac) and scroll up and down, you should see random lines show up in the table. They are horizontal lines that almost look like underlines that go all the way across the table. Sometimes they are thin and black, sometimes they are thick and blue. If you don't see them, scroll u...
I'm trying to load some content into a table using insertAfter(), but the content I'm trying to load is html (output from an asp.net page) that I'm getting using AJAX.Load().
From my understanding, insertAfter() works like this: $("htmlcodehere").insertAfter("selector"). AJAX.Load() works like this: $("selector").load("Html/file"). ...
I've seen this question asked but I can't seem to apply the answers to my own menu. My suckerfish menu basically is this (http://htmldog.com/articles/suckerfish/dropdowns/example/vertical.html), I've made some of my own adjustments color-wise/font-wise/and clearing the border from the table. How can I make it so that when you move throug...
I'm trying to display some large images with HTML img tags. At the moment they go off the edge of the screen; how can I scale them to stay within the browser window?
Or in the likely event that this is not possible, is it possible to at least say "display this image at 50% of its normal width and height"?
The width and height attribute...
emacs has taken my image src text and made it followable. how do I turn that off so I just have plain text.
<img src="index_new_menus_files/menu_bg_2.gif" alt="" border="0" height="55" width="150">
should be
<img src="images/menu_bg_2.gif" alt="" border="0" height="55" width="150">
the first is clickable and opens the image file, t...
I am trying to use jquery's parents/siblings to find particular input elements but I cannot seem to get this right.
I have the following HTML:
<div id="ExtrasOptions">
<div class="selectItem">
<div class="selectPrice"><span>Qty: <input name="qty" type="text" value="0" maxlength="2" id="qty" class="AccessoryQuantity" /></span></div...
I'm writing a JSP that sometimes needs to format a Java Date that comes out of the request. I'm doing it like this:
<fmt:formatDate value="${attribute.value}" pattern="yyyy-MM-dd HH:mm:ss"/>
and it works beautifully on Java Dates.
However, there are times that the request attribute field with the exact same name (attribute.value) is ...