html

Javascript / CSS solution required for a div with unknown width

Hi, This is a followup to this post (www.stackoverflow.com/questions/1389029/two-divs-with-unknown-width-and-dynamic-scaling). Here's the illustrated requirement (/www.creativesplash.net/images/2.gif). Here's what I've achieved so far. On browser resize 2 things should happen: The tabs should shift to below (already achieved) The ...

Display an entire html documention into a frame

I have an entire html document contained in a javascript string variable and I need to render it into a portion of my page. Have I to use frames? How to do that? ...

Setting html text to Description of VCALENDAR

Hi, I want to set the html text in the description of the vcalendar. How to do this , Please reply !! Thanks in advance !! ...

Spaces in textfield from text-variable: php+html

Hi guys, i have a strange problem... I'm getting string-data from db: $siteDesc = strval( $configHandle->getConfigValue( 'SITE_DESCRIPTION' ) ); var_dump( $siteDesc ); It returns: string(19) "Some description..." But in code: <input type="field" name="site_desc" value="<?=$siteDesc;?>" /> There is a lo of spaces in textfiel...

How to copy contents of a textbox to another textbox using javascript?

I have two text boxes t1 and t2 in an html page. I'd like to copy t1 content to t2, using javascript on every keystroke done in t1. ...

How do I place a non-tab item in a jQuery UI Tab Bar using valid XHTML?

I am creating a standard jQuery UI tab bar, nothing special except for the following: I would like to include a hyperlink on the right-hand side of the tab bar to serve as a log-out button. I know that I can accomplish this using invalid XHTML by writing the tab container like this: <div id="tabs"> <ul> <li><a hr...

HTML tag replacement regex not quite working correctly

This is a follow up to another question of mine. The solution I found worked great for every one of the test cases I threw at it, until a case showed up that eluded me the first time around. My goal is to reformat improperly formatted tag attributes using regex (I know, probably not a fool-proof method as I'm finding out, but bear with...

Centering a javascript graphics window

I am very new to javascript and I need to figure out how to make a javascript applet that is centered in my webpage. Can anyone link me to a resource that will show me how to do this? ...

Setting the width of inline elements

Hello You can set the width of inline elements like <span>, <em> and <strong>, but you won’t notice any effect until you position them. a) I thought the width of inline an inline element can’t be set? b) Assuming width can be set - we won’t notice any effects ( thus the width we specify ) until we position inline element. Posit...

How to Convert a Website Created in FrontPage to standard HTML

Does anyone know of an easy way to take the website created in MS Frontpage and convert it into working standard html without all of the goop that FP puts in there? I've got a site that was created in FP which renders fine in IE (of course) but for which the links don't work in any of the other browsers. I've been brought into this afte...

When margins of adjacent inner and outer element collapse

Hello I’ve read that if one element is nested inside another and they both have margins, then they could collapse ( assuming their vertical margins are touching ). a) Under what conditions would their vertical margins be touching? Perhaps only when a parent element has a fixed height, while inside elements take more vertical space...

WYSIWYG HTML editor for custom cms

Hey guys, Am looking for a good and easy to use WYSIWYG HTML editor that i can integrate into a CMS that am currently developing for a client. Am developing the CMS in PHP and is web-based. The editor will have both visual and code view. Thanks for ur help. ...

CSS Form Frameworks?

I have been looking at a couple html/css form frameworks like Uni-Form and Formy. They provide easier management of html forms. I was wondering if anyone knows similar ones. I am not looking for css grid frameworks nor Yahoo's YUI. ...

How do I inline the contents of an external HTML document using XSLT?

I have an XSLT that I input to a 3rd party application. This application displays the result of that XSLT as a web page in their application. I have a dynamic HTML document that I want to display in that application. How can I "read" the HTML document via an XSLT document such that whenever the html document is updated, the XSLT will ...

I'm having trouble trying to select a <textarea>

HI, Any ideas why I can't highlight the text in the "blurbedit" or "headlineblack" divs? I think I did a bit of sloppy coding to get the footer divs to line up horizontally, but that then meant that the top divs can't be selected, which isn't great when one of them is an input field! check out this example to see what I mean: www.ghe...

How can I retrieve the class of an element using jQuery/javascript?

Hi, I have a bunch of inputs like this <input id="someId" type="button" class="SomeClass" onclick="determineClass(this.id, event)" /> From javascript I would like to get the class, it's different for each input. function determineClass(id, e) { var elementClass = //Somehow get the class here } It can be using jQuery or just pl...

Displaying images in Entourage 2004

We're sending out HTML newsletters, which display reasonably well in a number of desktop and web-based email readers. Entourage 2004 refuses to display images, even after clicking "To protect your privacy, some pictures in this message were not downloaded. Download pictures". The images are classic <img src="some-valid-url" width="wha...

HTML application checking for updates

I created a HTML application and I want it to look to see if it's the latest version and then if it is not then show a link. I'm a beginner to javaScript so if you could tell me how to fix this code that would be great. <script type="text/javascript"> var thisVersion = 1.5 function checkForUpdate() { document.getElementById("versi...

How to append <tbody > to <table> of parent window with jQuery?

popup.html is popped up by script from parent.html: window.open('popup.html', '', 'width=520, height=300,left=500,top=0'); Is it possible for popup.html to operate parent.html? ...

Automatic href Link click

Hai i want to generated an automated click event. I am working in php server, i Know Javascript. Below is my Code <script language="javascript"> function autoClick() { var elm=document.getElementById('thisLink'); elm.click(); document.getElementById('thisLink').click(); } </script> </head> i put this on inside the body ...