html

Open a new window from a button ?

hello, i want to open a new window from a button, but in this new window I retrieve an address from my servlet (Action) <html:button property="bouton" styleId="bouton" styleClass="boutonYellow" style="border: 1px solid rgb(0, 38, 97); width:200px;cursor:default;" disabled="true"> <fmt:message key="name"/> </html:button> ...

Html to Word long document

Hi guys, I can create an extensive word document using html including a cover page, header & footer, page numbers etc. But my problem is; when my document is too long (like 100 pages or more) and I open the doc with Word 2003: the document can be loaded and I can see the cover page. but when I try to scroll down a little bit to examin...

Short question: Any good way to view a forms querystring?

I have a form which uses the "GET" method. This might be a stupid question... I would need to view the full querystring somehow, of the form when submitting it? I have Firebug if that would help somehow... Thanks ...

Wordpress Issue: Sidebar is allowing for link to expand into the footer.

I am not sure how to phrase this as it is boggling my mind. I have a sidebar widget that is setup to show some images and a link. It has a div and it is closed within the actual widget. Below I am pasting the actual code I can see when I inspect the element via Chrome. </a><li><a href="/socialmedia/"><img src="/wp-content/themes/newsc...

Check Entire Website's Links

I know similar questions have been asked, but I'm not sure about the answers (and I can't easily test all of them), so before I go crazy continuing to search, I want to ask: Is there an easy way to crawl all the pages on a website and check them for broken and invalid links automatically? Prefereably I'd like a solution that does not re...

Best possible SEO way of forcing the iframe'd page to reload as parent.

<html> <iframe src="iWantToBeTheParent.html" /> </html> I think this is a JavaScript task, it would be nice to handle the redirection with htaccess though since my code will inside an iframe I'm looking for a method that initiates from inside the iframe source which would make the iframe url load as the parent. I only have access t...

How do you position a div at the bottom of a table cell?

I have some tabular data. In the last column, I have 2 divs, one that shows the vote-data, and one that shows the save-data. I would like to first div to stick to the top of the table cell, and the second div to the bottom of the table cell. Setting the table cell {postion: relative;} so I can use {position: absolute;} in the divs has...

How to test CSS selector performance?

How would I go about testing the performance benchmarks of different css selectors? I've read articles like this. But I don't know if it is applicable to my website because he used a test page with 20000 classes and 60000 DOM elements. Should I even care,does performance really get downgraded that much based upon the css strategy you ta...

Stripping whitespace out of smarty templates from PHP

Is there a way to tell Smarty from PHP that you want it to strip all the whitespace in your templates before sending to browser, as if all your templates were embedded in {strip} tags? Some sort of Smarty object parameter or something? ...

How come css changes a div when I add a block-styled element inside it?

When I remove the display:block from a p inside a div, it ignores the top-margin or it's own hight or something like that. It snuggles up right next to the element above it. Does anyone know why? The div is floated, the element above is not. ...

Playing audio file in jsp

Hello all, 1) Is there a way in java to stream an audio file from ftp on my jsp page? 2) How can I play an audio file in jsp without audio file being download on client browser (like live stream) - temporary internet files please help with some code example ...

Force a refresh/reload of the page when the user navigates "back"

You know how when you're in some type of online banking and you press back and you get a white screen with the text saying you have to do a resubmit on the page to do a complete refresh? I want to do that in one of my applications. How does one do it? I've tried the following meta tags, but it's not working: <meta http-equiv=expires c...

How to get htmlunit to recognize dynamically updated html code

So I have a page in Windchill 9.1 that has a dynamic popup of a drop-down menu with a z-index of a 100. And for some reason the popup doesnt show up in the source code. Using firebug I can see that the html code is being dynamically added onto the page and when I close out from the menu, the code becomes a lighter shade in firebug (may...

Request is not considered a postback even though …

a) In Asp.Net we can check whether a request is a postback or not via Page.IsPostBack property.But where does this property get its value from? Thus, where in the incoming request does browser put this value? b) As far as I can tell, hitting a reload button also causes browser to send form data back to the server. Thus, is under the h...

How can I code a textarea similar to Stackoverflow, FB, or OKC?

How does stackoverflow implement the "comments" section of this site? I'd like to create something similar to a FB Wall or okcupid.com profile edit. My goal is to create a wiki of sorts that has editable regions like each of these sites. It's important that I can associate the user's cookie with the edit on the serverside so I can mai...

how do I make HTML links show hover style?

I have some HTML markup in my ASP.NET master page representing a basic navigation menu. THree words that link to three pages. My CSS and HTML are included below for your reference. When I load the page, the links appear with the correct color (red). If I hover over a link, the link changes to the correct color (blue). So far, we're good...

if i want to add CSS where would i paste it?

here is the page where i need to add CSS: http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg since there is no body and header, where exactly would i paste the css? here is what it looks like currently and it does not work? somestyle.css <style> #tt { position:absolute; display:block; background:url...

XML not allowed at start of document

i am getting this error on this code: <style> #tt { position:absolute; display:block; background:url(images/tt_left.gif) top left no-repeat; } #tttop { display:block; height:5px; margin-left:5px; background:url(images/tt_top.gif) top right no-repeat; overflow:hidden; } #ttcont { display:block; padding:2px 12px 3px 7px; ma...

What is the jQuery equivalent of the Prototype function .activate()

Prototype's activate function Gives focus to a form control and selects its contents if it is a text input according to the Prototype website. i.e. $('my_element_id').activate(); What is the equivalent function in jQuery? ...

Iframe Scrollbar css

How do i go about changing the css of an iframe scrollbar? My problem with the current scrollbar in my iframe is the frame is not very wide and the scrollbar appears bulky in it and takes up too much space... Using "scrolling="no" makes the scrollbar disappear but then the user cannot scroll... By the way, My browser is Google Chrome... ...