html

Is there #Region code for HTML

In VB and C# there are #Region ... #endRegion and have it collapsable. Is there a similar way to do this in HTML? Right now I just have comments blocking where the different elements are on my HTML page, but I would like to have a single collapse point instead of all of the <tr> <td> and <div> tags collapsed. ...

how to have the text under the logo css

hi i'm attaching a jpeg file here, and I'm wondering how you can have the text also under the Logo: http://yfrog.com/cbpic1qp This is the code, and I couldn't find where I can have the text under the logo. Thanks Now this is what I got: <html> <head> <title>*|MC:SUBJECT|*</title> <meta http-equiv="...

How to implement gmail like file upload/attachment using HTML 5

I remember some options where Ajax like(No post back world) file upload was supported, Hidden iframe Using flash object (Though i still have curiosity of why SWF is used ? and what advantages it offer ?) However by looking at blogs it appears that HTML 5 is promising, i tried some small examples and it really works :) But recently ...

images not appearing from javascript

Hi, On my home page, I have four boxes, and when you click on them, javascript expands them (gradually), and when you click again, it makes it smaller. The one thing I can't figure out is that in the top left hand corner there should be a closebox icon. This isn't displaying for me. I'm not an expert in javascript but I think this is...

Javascript that creates an Iframe.

Hello. I was wondering how you use a javascript tag in HTML to create an Iframe. I've see it around, for example the 'Share This' button that everyone wants in there site is a script tage that then turns it's self into an Iframe. How do you do this. I would rather give the client a line of script as opposed to an Iframe tag (so I can ...

creating an iframe for a page

I have the url that i retrieve for an item and for each record i need to create an iframe to house them Example http://www.videoapt.com/tabid/53/VPID/119/VP/AMLI7thStreetStation/Default.aspx how do i do this and whats the syntax for creating an iframe and does this iframe size to the url size. ...

html css layout. Fixed total width, 3 columns, dynamic middle column

Is this at all possible? Sometimes the left menu is not there, so i want the middle col to take up that space too. Sometimes the right menu is not there, so middle should take its space too. All should be wrapped in a container with fixed width (1000px). ...

Redirecting to single frame page from two frame page

I have jsp page which contains two frames: the menu and the content. Once menu is dynamically created for a particular user there is no need to recreate it again during each request, hence I'm using frames. The problem ouccurs when user session expires. Instead of redirecting me to one frame login page, the login page is displayed in the...

HTML - Displaying text with <> in.

I've run into a problem that with HTML if I want to show some text which is in between arrows, for example, <UIKit/UIKit.h>, it won't be displayed because it thinks it's a tag not text. I have tried: <p><UIKit/UIKit.h></p> But that doesn't work either, how do you get around this? ...

Usage: Escape HTML problem

I ran into an interesting problem. In our webpage a user can write their own description. We escape all text to make it easy to write (<3 shows up properly and isnt the start of a tag). This also avoids any problems with trying to inject their javascript code or hide something or do anything with html. A side effect is when a user writ...

Loading two Iframes is failing

I am trying to load two iframes one on top of the other and i only see the top one visible <iframe src ="http://www.videoapt.com/tabid/53/VPID/119/VP/AMLI7thStreetStation/Default.aspx" width="700" height="500" frameborder="0" scrolling="auto"><br> <iframe src ="http://www.circlepix.com/home3/LWAPPH" width="700" height="500" frameborder=...

How to open a .html file in a smartphone.

Hi, i have a C# program written on visual studios 2008 windows mobile 6. I want to open a html file in the path @"\My Documents\maptoolkit.html" and after that it will open the mini-opera browser display whatever's necessary. It is by default the mini-opera browser if i opened it directly. How do i do it? ...

Correct use of CSS

I have tried to format my page with CSS without too much luck so far. I need to have the big image centered (horizontally) and just a bit displaced from the top. Then I need to put some text on top of it , and also a small image (on top of the big image as well). I am trying to do this using div but every time something slips me. Any h...

My code can not find the field (Delphi - Webbrowser)

Hi , i'm using this code to fill out fields of some WebPages , using WebBrowser control : procedure TFrmMain.SetValue(const document: IHTMLDocument2; const formNumber: Integer; const fieldName, newValue: string); var form: IHTMLFormElement; field: IHTMLElement; begin form := WebFormGet(formNumber, document); field := form....

Joomla interaction with php script is problematic / the "action" attribute in forms

I have made a personality test. It is a set of multiple choice questions that when the user submits, gives a personality description as output. The test questions are placed in a Joomla "Article", so the owners of the test can easily change them, and the output is then via the form handle passed to an external php script. Like this: <f...

Firefox Bug With Paste + Dynamically Resized Textbox

I am having an issue with FF (surprisingly, IE works) with pasting into a dynamically-resized textbox (using a text shadow). http://pastebin.com/ZzbQdSh7 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <t...

Firefox Extension to Summarize CSS Selectors on a Page

I have Google'd this nine-ways-to-Sunday, but can't seem to come up with anything that fits my needs... I'm looking for a Firefox extension (and or Eclipse plug-in) that does the "opposite" of what SitePoint's handy Dust-Me Selectors does. Briefly, I want to be able to go to a page and get a summary of all the class and id attribute val...

Regular expression to match closing HTML tags

Hello! I'm working on a small Python script to clean up HTML documents. It works by accepting a list of tags to KEEP and then parsing through the HTML code trashing tags that are not in the list I've been using regular expressions to do it and I've been able to match opening tags and self-closing tags but not closing tags. The patter...

Is there a better way populate HTML widgets than building strings and setting innerHTML?

With XML XSLT, it is possible to build a nice template in HTML, convert it to XSLT and use xml data coming from the server to dynamically populate widgets on the client side. JSON and JSONP are great for interacting with the server side and manipulating the data in JS. When it comes to rendering the JSON data, most examples I've seen u...

Wrap DOM element in another DOM element in PHP

I originally asked a question along these lines using Regex but was recommended to use the PHP DOM library instead...which is superior, but I am still stuck. Basically I want to wrap the contents of an <a> in a <span> if it is not already wrapped in <span>. <?php $input = <<<EOT <html><head></head> <body bgcolor="#393a36"> <a hre...