html

window opener close issue for javascript

Hi EveryBody, I have a problem with browsers window managament with javascript. I have two page in my proof of concept application. First page contains login information (username, password, login button etc.) and second page is a managament screen. I need that when the user pressed to the login button on the login screen it open to main...

what is the best WYSIWYG HTML editor money can buy?

Hi, I am not looking for 100% standard compliant WYSIWYG editor, cos that is not possible (Well I have not heard about it). I am looking for something that is not DreamWeaver and as close to standard compliant as it can be. My requirement is now that I am doing real-mockup of the project in HTML I just don't want to throw this work awa...

Finding rendered HTML element positions using WebKit (or Gecko)

Hi, I would like to get the dimensions (coordinates) for all the HTML elements of a webpage as they are rendered by a browser, that is the positions they are rendered at. For example, (top-left,top-right,bottom-left,bottom-right) Could not find this in lxml. So, is there any library in Python that does this? I had also looked at Mechan...

Rewriting javascript to jquery for multiple forms on a page

Hello Everyone, I have a question concerning multiple similair forms on one page. Lets say you have a page with two or more polls. The HTML forms in itselves are very similair. Previously the was a soltuion built with inline javascript. Which is of course not the nicest solution. The way it was built is that eacht poll form had its own ...

Show loading gif after submit button is clicked?

I'm trying to show a loading gif after a user clicks submit on a form. I have search endlessly for a good tutorial showing how it done. I get half way there but the gif doesn't hold for long enough, do any one know of a good tutorial or the scripts need to complete this. ...

WPF WebBrowser (3.5 SP1) Always on top - other suggestion to display HTML in WPF

Hello, I've been desperately looking for an easy way to display HTML in a WPF-application. There are some options: 1) use the WPF WebBrowser Control 2) use the Frame Control 3) use a third-party control but, i've ran into the following problems: 1) the WPF WebBrowser Control is not real WPF (it is a Winforms control wrapped in WPF). I ...

Inputting a default image in case the src arribute of an html <img> is not valid?

Though I think it's not possible, it's always awesome to know what the SO Gurus would act if they were me. So, here's my question: Is there any way to render a default image in an HTML <img> tag, in case the src attibute is invalid (using only HTML)? If not, what would be your lightweight way to work around it? ...

A link isn't working in IE6

I'm working on the following page: http://jlecologia.com/index.php I want the whole block at the left to be clickable. In Firefox it's fine, but in IE6 the cursor doesn't even change to a hand. Any ideas? ...

One-row textarea in Firefox refuses to show vertical scrollbar

I've already figured out that Firefox's sizing of textareas is buggy - it always adds one to your rows and cols settings. But I've decided to just ignore that. The problem is that Firefox also refuses to put in the vertical scrollbar, even if I type a friggin' short story into the box. Am I doing something wrong (i.e. invalid)? Is there...

How to post a file via HTTP post in vb.net

Hi all! Having a problem with sending a file via HTTP post in vb.net. I am trying to mimic the following HTML so the vb.net does the same thing. <form enctype="multipart/form-data" method="post" action="/cgi-bin/upload.cgi"> File to Upload: <input type="file" name="filename"/> <input type="submit" value="Upload" name="Submit"/> </form...

Block certain html element from getting indexed by search engines

For styling purposes i want to insert some dummy text on the page, but it shouldn't be getting linked to the actual content. Is there a way to block it for search engines, or do i have to use good old images for that? Or would it be possible to load it dynamically via javascript? because i heard that google will read certain amounth of...

Setting the Max length in a <TD>

I have a column where some users are not entering spaces (i.e.: .........................................) and it is stretching my TD column. Is there a way to force line breaks in html with a simple option? If not, I think I am going to have to break the line up myself, which would not be optimal, as I would have to determine the best...

get template checkbox names

How to get the checkbox names when that form is loaded by html template. in Java Script? ...

Firefox throwing a exception with HTML Canvas putImageData

So I was working on this little javascript experiment and I needed a widget to track the FPS of it. I ported a widget I've been using with Actionscript 3 to Javascript and it seems to be working fine with Chrome/Safari but on Firefox is throwing an exception. This is the experiment: Depth of Field This is the error: [Exception... "An...

How to center html element in browser window?

How to place some html element, say div, in a middle of a browser window (not page, not screen)? Not depend on browser window size, screen resolution, toolbar layout, etc. E.g. I want it to be in the middle of the browser window. Thanks ...

(X)HTML Markup for Book Titles

Should book titles be contained in an <em> tag? If not <em> is there more appropriate markup? ...

How can I parse and normalize HTML from different HTML generators?

This is an extension of this question. I'm trying to parse HTML snippets embedded in an XML backup of a Blogger blog and retag them with InDesign tags. Blogger doesn't standardize the HTML for any of its posts, and the posts can be written in Word, Windows Live Writer, the native Blogger interface, or text editors, resulting in tons of ...

Show all children in Superfish jquery menu

I'm using the Superfish jquery menu system and have a requirement to show all children regardless of level. The menu only shows the children of the selected item. Perhaps someone can help me figure how to modify the code to make it work this way. Superfish menu HTML example of a node: <li class="root"><a href="#" title="Training" cl...

How do I get the entire page's HTML with jQuery?

I used $(document).html(), but that threw an error... is there a way to get everything? ...

My HTML dropdown won't work in IE6

So I'm using an HTML select box with a list of countries and a button to open a small window with more details for the selected item in the HTML select box. Here's how I'm doing this (I apologize in advance for any noobishness here, I'm still pretty new to Javascript): //in header <script type="text/javascript"> function popUp() { ...