html

2 Spaces or 1 Tab, what's the standard for indentation in the Rails Community?

I've noticed that most of the HTML/XML/HAML that gets generated from plugins uses 2 spaces instead of 1 tab. I use textmate and have tabs set to 4 spaces for HAML/HTML/XML and 2 spaces for Javascript/Ruby, but I only have to press the tab key once to get nice indentation. Pressing the space bar twice and delete twice seems like too muc...

How do I submit a form from another page?

I have a two page site. Each page contains a header with "tabs" at the top, to navigate between page 1 and 2. When a tab is selected, I need the selected page to re-POST to the server, to quickly refresh before it is displayed. I have a form on each page that allows a manual refresh from that page but need to submit that form from the...

What does this random number do: /javascripts/rails.js?1271798101

I think I remember reading that that has to do with telling the browser not to cache it or something. How does this impact browser caching and application performance in production? When does that number change? <script src="/javascripts/rails.js?1271798101" type="text/javascript"></script> ...

wordpress use in own template

Hi, I've created an HTML page as part of my website which I would like to use as a template for news articles. The page has all the things it needs, it just needs to display the correct news article in it. I installed WordPress on my webserver and now wonder how I can have wordpress publish articles using my HTML page? Is this even possi...

Security of PHP script, embedded or otherwise

Hi all, I am curious about the security of PHP on an HTML webpage where PHP code is embedded (a webpage that would exist on the server as "webpage.php") or on a PHP script that may be referenced by an HTML page (that is, a PHP script that is not actually part of a webpage that exists on the server as "something.php" and is referenced by ...

Help with HTTP Intercepting Proxy in Ruby?

I have the beginnings of an HTTP Intercepting Proxy written in Ruby: require 'socket' # Get sockets from stdlib server = TCPServer.open(8080) # Socket to listen on port 8080 loop { # Servers run forever Thread.start(server.accept) do |client| puts "** Got connection!" @output = "" ...

Right Hand Column Does Not Align Properly in IE6/7/8

Hi Guys, I'm new to this but here goes. I have been developing this website http://www.panelmaster.co.uk and i have managed to solve the majority of design problems but one! If you take a look at the site in IE the right column seems to drop down and is not aligned with the right and centre column. This problem only occurs in IE as up...

Is there any CSS/HTML code to make a cursor work on Mozilla Firefox?

Is there any CSS/HTML code to make a cursor work on Mozilla Firefox? the only cursor code I know is <body style="cursor:url(link.cur);"></body> but that only works for Internet Explorer (and others maybe, I don't know) but what I need is a code that works in MFirefox EDIT: I know some people find this annoying but is for a page cont...

NSXMLDocument replacement on iPhone?

I have an seen how NSXMLDocument can parse and html document, and provide easy methods for returning parts of the html structure. Is there a similar method that can be used for the iPhone, as NSXMLDocument is not available? ...

Whats happening to my HTML?

I am making changes to my website, and I just noticed that things look different. In IE, the content doesnt center, theres a margin on my content, and the font looks bigger in chrome.. I ran it through Yahoo's HTML validator and the error I get is line 1 - Error: character "" not allowed in prolog. I believe that there may be some sort...

PHP drop down which each are dependable

Hi all, I have this problems. using html and php. May I know how to do this. I have 2 drop down, eg A and B. Drop down B is depend to the drop down A. Example, A have these options which will be called from dbase(no prob with this, tq) (Jack, Carol), and B wil have options depend on A: if select Jack(T1, T2, T3), if select carol(T1,T2...

Margin-Top push outer div down

Hello, I have a header div as the first element in my wrapper div, but when I add a top margin to a h1 inside the header div it pushes the entire header div down. I realize this happens whenever I apply a top margin to the first visible element on a page. Here is a sample of the css. Thanks! div#header{ width: 100%; backg...

Java based HTML to Microsoft Word conversion tools

I am looking for a open source library in Java for HTML Microsoft Word conversion. I have found many tools for Word to HTML conversion but not too many for converse. I am not trying to build the RTF document from scratch. I am trying to convert formatted HTML documents to RTF documents. I was able to find a converter for HTML to PDF(Fly...

Keeping a certain row or column in an HTML table fixed

I have huge amounts of data populating an HTML <table> having more than 200 rows and 200 columns. However, when i scroll the page horizontally or vertically to view the data, the header columns (like th for instance) go beyond the page. How can i scroll through the table and still keep the top row and leftmost column fixed so that i wi...

Run an ActiveX through Web

We have a webpage that works fine on the local computer as it uses a COM Object that is only available in the local computer. the program generates HTML code: <html> <head> <script type="text/javascript"> <!-- function ResizeControl(){Y = document.body.clientHeight;if (Y < 1) {Y = 1}X = document.body.clientWidth;if (...

Should a web designer know JQuery?

Hello All, I have been doing web designing for quite some time. My question is: Should a web designer know JQuery at all? Thanks ...

DotNetNuke + XPath = Custom navigation menu DNNMenu HTML render

I'm developing a skin for DotNetNuke 5 using the Component DNN Done Right menu by Mark Alan which uses XSL-T to convert the XML sitemap into an HTML navigation. The XML sitemap outputs the following structure: <Root > <root > <node id="40" text="Home" url="http://localhost/dnn/Home.aspx" enabled="1" selected="0" breadcrumb="0" fi...

Set HTML dropdown selected option using JSTL

In the same context i have another query <select multiple="multiple" name="prodSKUs"> <c:forEach items="${productSubCategoryList}" var="productSubCategoryList"> <option value="${productSubCategoryList}"${productSubCategoryList == productSubCategoryName ? 'selected' : ''}>${productSubCategoryList}</option> ...

Problem with image path of html files viewed by webbrowser control

I have an webbrowser control on my form. I am able display html files in that control. But my page contains some images if i give absolute path to it then images are displayed. But if i give relative path then images are not shown in the pages. I have HtmlPages folder located at bin folder. And i am assigning FileStream source = new Fi...

Loading form values from one IFrame to another

What I want to achieve is the following. A search is made from one IFrame "the form is loaded into this frame via the src atribute of iframe" the search query is then passed to another IFrame that redirects to a url with the query eg. www.test.com/index.php?query=test Is this possible? Currently my code looks as such <iframe src="abc....