html

jQuery iBox (lightbox clone) and IFRAMES

Hey there you lot, is there a way that I can open a lightbox (in this case iBox) from within an IFRAME and have the actual lightbox open in the Parent page? sigh I am confusing myself here! ...

optgroup class gets applied to all sub-options in FF, why?

I have an optgroup like this: <optgroup label="Eller välj Län" title="Eller välj Län" style="background-color:#FC9;"> <option value="Blekinge Län">Blekinge</option> <option value="Dalarna Län">Dalarna</option> <option value="Gotlands Län">Gotland</option> </optgroup> Problem is, only in Firefox, the class applies to all options i...

IE6 HTML control wrapping

Is there any way to prevent wrapping across controls in IE6? For example, I have a label and a single select box. The select box width is dynamic (depending on the content). I want the label to always be to the left of the select box. Right now the problem I am having is the select box drops below the label. I have tried using the <...

3D transformations on rendered HTML in flash?

I'm trying to figure out if this is possible to execute on a dynamic page. http://salesdemo.unicast.com/vla/asset/demo/604_150148/index.html Basically, after all the page has been rendered, Flash needs to take the rendered page and apply 3D transformations to it, and at the end, restore the original rendered page. How is this possible?...

Making input buttons act like <a>'s without JavaScript

I know that I can assign an onclick action to <input type="button"-style buttons. But is it possible to let it behave like an <a> without using JavaScript? I ask because I'm in a situation where technically I'm better off using <a>'s, but buttons look nicer. ...

shell script output in html + email that html

Using Solaris I have a monitoring script that uses other scripts as plugins. Theses pugins are also scripts which work in difffernt ways like: 1. Sending an alert while high memory uilization 2. High Cpu usage 3. Full disk Space 4. chekcking the core file dump Now all this is dispalyed on my terminal and I want to put them in a HTML f...

Clever "add tag" javascript help needed

I have this function for adding options to a Select list: function addOption(selectbox, value, text, cl ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; if (cl==1){ optn.className = "nav_option_main"; } selectbox.options.add(optn); } I have just discovered the "optgroup" tag, but I don't know h...

<a href> instead of <input submit> button

Hello all! Quick question I originally had a submit button. <input class="submit" type="submit" class="input" value="Add" name="command" /> but now I would like to use a <a href> instead. The issue is, the value="Add" is very important. I'm currently making the <a href> like this. <a href="javascript:document.register.submit();">...

How to remove named HTML Tags and Contents from a String?

I've tried to understand a few examples, including questions here so I apologise if this seems to me a duplicate but I cannot find a RegularExpression I can understand. I have some HTML to parse using an XML parser - but I want to strip out the <head> </head> tags from this content as the rest is valid enough for normal XML Parsing. The ...

Producing a static HTML site from XML content

I have a long document in XML from which I need to produce static HTML pages (for distribution via CD). I know (to varying degrees) JavaScript, PHP and Python. The current options I've considered are listed here: I'm not ruling out JavaScript, so one option would be to use ajax to dynamically load the XML content into HTML pages. Edit:...

Html link parametrs for download

I want to include link to download file in my html-page like this <a href="file_folder/myfile.exe">MyFile</a> but when I click to my link I can see binary code of my file in browser instead redirect to download file. How I can fix it without change settings of my web-server? ...

html help frameset

hey.. i'm working on my html project, and everything is going well. now i'm doing the same project with framesets, but i descovered that the page in a frame set won't scroll as a whole page (you can only scroll each frame at a time).. how can i solve this?? please help ...

Is there an efficient way to figure out the headers, cookies, and get/post data being passed to a site?

More specifically I'm looking for something, perhaps an add-on for firefox, once enabled it logs all of this information as it's passed to and from the server. I'm doing some web scripting and this would be really handy. If anyone is wondering specifically what I'm doing currently I'm trying to make a script to repost my craigslist ad ...

Z-Index problems with IE6 and html <select> element

I have a <div> that opens up on a jquery hover event (display goes from hidden to block). Sometime it's opens up over some form elements. And of course it works fine in all browsers except IE6. <select> boxes bleed through as if there z-index is higher than the <div> tag. I've tried setting the <div> tag with a higher z-index, but it...

two tables with position:absolute issue

Hi, I'm having two table elements, both with position: absolute style. First table is responsible for some kind of layout stuff, has width: 100%, while second displays a few input controls, and has width: 400px and is centered. In IE I run into issue: first table seems to cover second table, for instance I can't set focus into my inpu...

CKEDITOR - Is there anyway to prevent formatting code in SOURCE mode?

I've spent the good portion of my day trying to figure this out, and I figured I'd finally just give in and ask. How can you prevent ANY automatic formatting when in SOURCE mode? I like to edit HTML source code directly instead of using the WYSIWYG interface, but whenever I write new lines, or layout tags how I would indent them, it al...

Setting overflow:auto, yet not horizontal scrollbar is displayed

Hi, Why doesn't div with id "shouldHaveScrollBar" doesn't display a horizontal scrollbar: <div style="overflow:hidden; width: 300px; height: 300px; background-color:blue; color:white"> <div>Some stuff</div> <div>Some other stuff"</div> <div id="shouldHaveScrollBar" style="background-color:grey; ...

php if statement not working in internet explorer

Hi everyone, ie does not render my php if statement well, any ideas? I say this because it works well in firefox. <input type="image" src="Images/submit.png" value="REGISTER" name="command" /> if($_REQUEST['command'] == 'REGISTER'){ print "test"; } else{ } It is not printing "test" ...

A little javascript help needed here (easy).

function addOption(selectbox, val, txt){ ...... } addOption(list, "Cars", "Cars"); I need to add this in front of the text of the function: &nbsp;&nbsp;&nbsp; So that there is space coming in before the option text...Never mind what it is for, it is just confusing... I just don't know how to insert it into the js code. I...

How do I simulate a hover with a touch in touch enabled browsers?

With some HTML like this: <p>Some Text</p> Then some CSS like this: p { color:black; } p:hover { color:red; } How can I allow a long touch on a touch enabled device to replicate hover? I can change markup/use JS etc, but can't think of an easy way to do this. ...