html

I have two problems about tcpdf

Hi i am using tcpdf in my application and i have two question about that.I am able to get pdf output of a html page when i click specified button. My first question is:How can i download that html's pdf output when i click that button?($pdf->lastPage() didn'work). My second question is:How can i set character encoding for Trkish?(I am us...

How to create an HTML button that acts like a Link?

I would like to create an HTML button that acts like a link. So, when you click the button, it redirects to a page. I would like it to be as accessible as possible. I would also like it so there aren't any extra characters, or params in the URL. How can I achieve this? Update: I am currently doing this: <form method="get" action="/spo...

Click to make body text larger | JavaScript

Please note this is just an example: <img src="img/normal-font.png" onclick="javascript:document.body.style.fontSize = '13px';" /> &nbsp; <img src="img/medium-font.png" onclick="javascript:document.body.style.fontSize = '14px';" /> &nbsp; <img src="img/large-font.png"onclick="javascript:document.body.style.fontSize = '15px';" /> The...

Is it valid to have two input elements with the same name?

i.e.: <form 1> <input type="hidden" name="url" value="1"> </form 1> and <form 2> <input type="hidden" name="url" value="2"> </form 2> Is this allowed and valid? ...

how do I hide certain part of form

I have a form and it contains dropdown box and different div items. Based on selection from dropdown box, I show those div items. But some of the text in those div items are shown when the form is loaded and not when I select the option from dropdown box. The code is somewhat like this <form> <select id=""> <option value...

Multiple Noobslides on one page

I am trying to add Multiple NoobSlides onto one page. From the sample page listed here: http://www.efectorelativo.net/laboratory/noobSlide/ I have sample 8 and want to add two Sample 5 slideshows side by side on the same page, but when I try it, the second slideshow events don't trigger. ...

Determining default browser styles for various tags

I want to determine the default styles for various tag names. For example, I want to know what would be the default font-size of an h2. Is there a way to do that in Javascript ? The context : I am trying to build a live CSS editor that would let users play with the styling of the various elements on their page. For the initial configu...

What javascript/jquery tree view plug-in is most used?

What javascript/jquery tree view plug-in is most used? ("Treeview" seems to come up often in searches.....) Thank You. ...

Have a div cling to top of screen if scrolled down past it

I have a div which, when my page is first loaded, is about 100px from the top (it holds some buttons etc. for the page). When a user scrolls past it, I would like the div to "follow" the user in that it attaches to the top of the screen. When the user returns to the top of the page, I want it back in its original position. Visualizati...

Is there a way to loop through all fields in a fieldset?

I would like to change the class for all the fields in a specific fieldset. Is there a way to loop through the fields in a fieldset? ...

how to print background image on printer as watermark

i have one image background of table with following syntax style="background-image(URL)" the problem is when i print it on printer it did't print. can you please tell me how to get this image background also get it printed on paper as watermark. i need any code not to ask every user to change the browse settings. Thanks ...

How can I remove the border style from a text input on mobile safari?

If I have a normal input element it will show a rounded border with what appears to be an inset shadow. Any ideas how I can remove this shadow? ...

How I can put " within an HTML attribute value

I wish to have the following: <span title="This is a "good" title.">Catch me in the rice.</span> It is obvious that this is not rendered well by the browsers. Please provide me with information of what escape sequence or encoding like " I must use? ...

Best way to layout in HTML forms?

I want to display an HTML form containing labelled text fields, like this: First Name: [_____________] Last Name: [_____________] Date of Birth: [________] My obvious approach is to use a <TABLE> and simply place the labels and text fields in its cells, but is there a better way, e.g. a CSS-based approach? EDIT:...

Make HTML tag in PHP

Hello, I have some php code $_SESSION['username'] and I need to display it using html with something like <p>the username here</p>. I heard you might be able to do this using echo in PHP but Im not sure how. Thanks for any help. ...

Balanced text wrapping in HTML

In HTML, is there a way to evenly distribute text that is broken across multiple lines? E.g., I don't want: Here is some really long label that ends up on two lines. I'd prefer: Here is some really long label that ends up on two lines. ...

jQuery scroll on Mobile Safari

I'm developing and website and I need it to scroll to an anchor. It needs to be animated, so I decided to use jQuery for that. I tried this: function goToByScroll(id){ $('html,body').animate({scrollTop: $("#"+id).offset().top},'slow'); } It works perfectly on the desktop. On Mobile Safari it first goes to the top of the page, th...

Selections and radioing - JavaScript

I have a list like this: <ul> <li id="adm-thumb" onclick="javascript:addBanner('bowling.jpg');"> <div class="adm-tick"></div> <img src="img/banners/bowling.jpg" /></li> <li id="adm-thumb" onclick="javascript:addBanner('kcc.jpg');"> <div class="adm-tick"></div> <img src="img/banners/kcc.jpg" /></li> ...

Extra characters Extracted with XPath and Python (html)

I have been using XPath with scrapy to extract text from html tags online, but when I do I get extra characters attached. An example is trying to extract a number, like "204" from a <td> tag and getting [u'204']. In some cases its much worse. For instance trying to extract "1 - Mathoverflow" and instead getting [u'\r\n\t\t ...

why do people still use tables, inline css, et al?

When you learn HTML and so forth nowadays, the mantra is always "Clean code = better code". So why do sites like Mobile Me and Google and Facebook all use huge amounts of tables and other not-semantically correct code? Thanks! ...