html

Hiding flash component scrollbars using object/param syntax

Hi all, I'm not sure if this is possible (complete non-flash developer speaking), but we have a 3rd party component that we want to only show a certain topleft hand portion of. I've tried limiting the size of the HTML object container as: <object type="application/x-shockwave-flash" width="600" height="415" data="<url>"> <param nam...

Javascript - Get child's text value

How can I get the text value from an elements's child? Say I have this code on a page: <div class='geshitop'> &#91; CODE &#93; &#91; <a href="#" onclick="javascript:copy(); return false;">PLAIN-TEXT</a> &#93; </div> <div class='geshimain'> <pre><div class="text" style="font-family:monospace;">Code goes here...</div></pre> </div> ...

Multithreaded Html to Pdf conversion via Single-Threaded Qt

Hello, I am using Qt webkit Jambi API's to convert HTML to PDF. My target is to create a jar for above conversion so that it could be used in a multithreading environment, but since QWebPage and QWebframe (QT webkit) are GUI classes, therefore the jar classes cannot be initialized from child threads. So i am stuck as i don't know how ...

Nested DIV elements

I am trying to enclose two DIV elements, inner-1 & inner-2, (dotted red border) inside a wrapper DIV (solid green border) but the wrapper DIV element does not expand to enclose the inner DIVs. What am I doing wrong? <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xm...

HTML Case Sensitive Issues

We have a site that's always been deployed on a windows server with no case sensitivity issues. However we now need to deploy to Linux and know the site has lots of incorrectly cased URL's and references. Are there any applications that could scan the site and fix casing issues? This would need to fix HTML files, CSS files and if possi...

Want to remove my inline JS Event Handle but no idea how

Howdy, i think iam going crazy .. I have an webpage where iam displaying news comments dynamicly , the "Comment" link is connected to an JQuery function wich is displaying the comments for the news (..like show comments from news id = x) But "onClick" handlers arent the best way or? Thats my code in the moment : ech...

HTML email with Javascript

How to include javascript in HTML emails - We need it for expanding and collapsing of the content in the HTML email. ...

Connect links inside an dijit.dialog

Hi , i have some trouble to connect an link inside an dijit.dialog. Iam calling an "other" html file inside the Dialog (dialog.href="xxx.html") inside this file iam trying to connect some links by id, to fire an alert box. But nothing happens ? Possible that this isnt possible ?? Thats the part from my xxx.html file.. <script type="t...

What is the best way to manage duplicate code in static HTML websites

Hello, I am managing a legacy website with a lot of static HTML websites, no server side scripting, just plain HTML/CSS, minimal javascript. I found it a huge waste of time to change the same piece of code numerous times in different pages. For example, when something in the menu changes, since the menu is just static text in each docum...

processing html document structure

Hi all, I was just wondering whether there are any resources that discusses processing html document structures. For example, if i have a page from the New York Times, and for any page, i would like to understand where is the main article, where are the important elements in the page. For some websites, the raw html document gives some...

How to get div's to load on click not when page loads?

Hello, I am currently building an making my new website. It uses one page and uses a jQuery accordian menu to load the content. The content it split up in six different div's and all load as soon as the page is accessed. I want it to load each div when the link to it is clicked on. To decrease the page loading time. You can see this in...

HTML inside node using ElementTree

Hi all! I am using ElementTree to parse a XML file. In some fields, there will be HTML data. For example, consider a declaration as follows: <Course> <Description>Line 1<br />Line 2</Description> </Course> Now, supposing _course is an Element variable which hold this Couse element. I want to access this course's description, so I ...

PHP: Separating Business and Presentional logic, is it worth it?

Possible Duplicate: Why should I use templating system in PHP? I was just curious as to how many developers actually do this? Up to this time I haven't and I was just curious to whether it really helps make things look cleaner and easier to follow. I've heard using template engines like Smarty help out, but I've also heard the ...

HTML IE specific code

Can I use specific html if the browser is IE? (Assuming FF is the default browser) Foe example: html line 1 if IE html line 2 else html line 2 html line 3 html lin3 4 I am aware of using different CSS, but that won't work for this. Thanks. ...

Localize dates on a browser?

Let's say I have a date that I can represent in a culture-invariant format (ISO 8601). I'll pick July 6, 2009, 3:54 pm UTC time in Paris, a.k.a. 5:54 pm local time in Paris observing daylight savings. 2009-07-06T15:54:12.000+02:00 OK... is there any hidden gem of markup that will tell the browser to convert that string into a loca...

How to get usage(progress) bar to display properly in IE

<div class="dd"> <div class="blue" style="WIDTH:$s%">$s%</div> <div class="green" style="WIDTH:$v%">$v%</div> <div class="red" style="WIDTH:$g%"><br>$g%</div> </div> In FF the three different elements are displayed on a single status bar, showing the accumulation of the quantities. However, in IE, it's all messed up. I get separate bar...

Accessing the JavaScript Table DOM in a Java Servlet

I want to write reusable code that takes an HTML table from a JSP and converts it to Excel format to be exported to the user. I want to take advantage of the HTML DOM Table Object rather than parse the HTML in Java to extract the same information. The biggest advantage to this would be inspecting each cell for checkboxes, buttons, etc....

How to replace URLs of links using Java HTMLParser (org.htmlparser)

I am using htmlparser (htmlparser.org) to re-write all the link's in a input String. All i need to do is iterate over all the link tags (<a href=...), that appear in the input String, grab their value, perform some regex to determine how they should be manipulated, and then update the link's href, target and onclick values accordingly. ...

JQuery "floating" tab like GetSatisfaction

I want to create a tab/widget/thingymajiggy like the feedback-thing in this picture: That behaves like this. I just need to redirect on click, I don't need all the other stuff. I have been unable to find a JQuery plugin, that does this - but maybe I just don't know the correct term. ...And yes, I could just pillage getsatisfaction, ...

Pass querystring parameter to second page

I have web page which is passing a querystring parameter to page 2: <a href="Page2.aspx?WONumber=12345"> On page 2 I want to have an href which passes the same parameter value to page 3. I tried: <a href="Page3.aspx?WONumber=" + request.querystring("WONumber") > but that gives me a VS2008 error "attribute 'request.querystring' is ...