html

[Java] Connect to website and keep session?

Hi, I'm trying to connect to a website (source code below) that requires login and then browse it to download some files. I've managed to do this for another website using this code: public void initConnection(String _path, Map<String,String> _parameters) throws IOException { String data = convertMapToParams(_parameters); // ...

Best way to hide a form input field from being accessed using firebug?

I have a form which is posted to an external API. There is a parameter called customer_token which is passed as an input field. It is used for authentication by the API and every customer is assigned one token. The input field is visible in Firefox's Firebug (even though it is a hidden field). How do I hide it? Options *Using javascr...

How to specify vertical offset in the url path

Can I specify an y offset in the url path when I use bookmarks ? Let's say I have this path: mywebsite.com/mypage#bookmark I would like to center the bookmark section in the middle of the page and not in the top. I was wondering if I can specify something like ..mypage#bookmark&y-offset=100 maybe i can use javascript to get that valu...

How to make HTML page a Search Engine?

I am developing an HTML page that I want to convert in Search Engine. I just have put a Textbox & Search Button. I am just allowed to use JavaScript. How do I convert it in Search Engine ? ...

DOCTYPE CSS problem

When I added <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; line to the top of my html file, my css rules disappear in firefox. Also i can't see them with firebug. Do you have any idea about this problem ? ...

Encoding problem while trying to read and write in html file with Java

I'm trying to read some text from an html file, modify it in a specific way and write the result in a new html file. But the problem is that the text is not written in English and as a result some characters are replaced with black and white "?" marks. In my html file, I have < meta http-equiv="Content-Type" content="text/html; charset...

Equal height columns with no background

Here is an example code http://paste.ideaslabs.com/show/kmGATPRovx. How can I make the second block looks like the first one with more content in .front-content block? The most problem is the position of .front-description's bottom border. ...

HTML/CSS 960 layout, 24 column grid system

Hi, I was having a chat with a designer about how to make my life easier to build site templates. They showed me a page layout overlaid with 24 columns and I can see that everything fits very nicely within the the 24 columns but I fail to see how this can help me build templates more efficiently and accurately. My preference is for th...

Why isn't my JQuery working properly? (scrolling news ticker)

I did everything in this tutorial: http://www.gcmingati.net/wordpress/wp-content/lab/jquery/newsticker/jq-liscroll/scrollanimate.html It should be pretty simple. <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"&gt;&lt;/script&gt; <script language="text/javascript" src="http://www.gcmingati.net/wordpress...

To change a scroll bar Styling

Can we change a scroll bar styling, Instead of default scroll bar, I want to place a image on it. ...

Search for input name

On my form, I store inputs in this way: <input name="tokens[0][A]"> <input name="tokens[1][B]"> <input name="tokens[2][A]"> etc. Is there a way, using javascript or jquery, to easily grab all the inputs with [A] as their final index? All I actually need to do is count the number of inputs with an [A] index. ...

PHP single quotes regex

This topic is a remark for http://stackoverflow.com/questions/3510535/php-get-image-src So we have a variable with code inside (only image): $image = "<img src='http://www.gravatar.com/avatar/66ce1f26a725b2e063d128457c20eda1?s=32&amp;d=identicon&amp;r=PG' height='32' width='32' alt=''/>"; How can we get src of this image? We should t...

Define dynamic JSON-Array

Hey, i've got a new problem. I know how i have to define a static JSON-Array, but now i must make this dynamic so i could add items with a loop. this is the static version: $json = array(array('field' => 'name', 'value' => $name), array('field' => 'nummer', 'value' => $numbers));...

How to change Image & content using JavaScript?

I just have an HTML page with an image & Content. <table> <tr> <td height="240" valign="top" colspan="3"> <img id="image" class="newsimage" src="D:/Search/images/search.jpg" alt="search" height="120" width="50%"/> <div class="imageContect">image Content</div> </td> </tr> </table> Below it I have 2 links of previous & next. <a href="#...

How to change focus out of iframe?

Got some code which loads an input box, and then below this is an iframe with a textarea... Problem is I want the focus to be on the input box when the page loads, but it always jumps to the textarea because the iframe loads second... How do I keep focus on the first element in the page? ...

ASP.NET MVC with DOCTYPE HTML 4.01 strict makes self-enclosing-tags from empty elements, why?

My master page has doctype: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; In this page I want to use empty elements like: <input name="X" type="hidden"> After opening the page in my browser I check the source and see that all empty tags are closed like so: <input name="X" type="hidd...

how to set all links in iframe to "google.com" by javascript or jQuery ?

how to set all links in iframe to "google.com" by javascript or jQuery ? ...

Which html element is semantically most appropriate for displaying a group of emails?

Hello. I have a group of emails (I hesitate to use the word list, as it may prejudice you answers), which I want to display in a tabular manner with columns of Subject, Content, Date, Action (whose value may contain a Delete button, for example). Semantically speaking, would you use a list (<dl>, probably) or a <table> for this data? My...

How can I run this in HTML?

var theNewParagraph = document.createElement('p'); var theBoldBit = document.createElement('b'); var theBR = document.createElement('br'); theNewParagraph.setAttribute('title','The test paragraph'); var theText1 = document.createTextNode('This is a sample of some '); var theText2 = document.createTextNode('HTML y...

Apply space between divs

The below two divs appear one next to other, the content of which are populated dynamically and the data is very long in both the divs. My question is that how to add some space between the two divs? <div name="qt" id="qt" style='width:50%;float:left;display:inline;overflow:auto;height:500px;border:1px solid #ccc;'> </div> <div ...