html

(HTML + CCS3 Generated Content for Paged Media) to PDF?

Is there any way to render a PDF from a HTML doc styled with CSS3 Generated Content for Paged Media? If there is not an application like that, what can I use as a base to build such a converter? Thanks ...

Return node text (non-recursive)

Hi, I'd like to return a table cell's node value. The method text() however, goes down the whole DOM tree and returns a string of all nested nodes (the table cell may have text and html included). Once I have extracted the node's string, I'd like to modify it and write it back to the node. The modified text consists of text and html. I...

ASP.NET MVC: ActionLink vs bare url

In ASP.NET MVC I see I have handy HTML helpers that I can use to construct form fields and any number of other little things. But then there's 'ActionLinks'. Why use an ActionLink instead of just writing the damn url myself in an HTML anchor tag? In other words, why would I use <%: Html.ActionLink("Back to List", "QuantityTypes") %>...

how to logout from multiple frames

i have a page which has 4 frames the code is as below <frameset id = framset_page rows="30,*" cols="*" border="0"> <frame name="topFrame" id="topFrame" noresize scrolling="NO" src="topFrame.jsp"> <frameset cols="200,50,*"> <frame src="FramesetLeftFrame.jsp" /> <frame src="middle.html" /> <frame src="FramesetRightFram...

Is it possible to send variables from HTML to another PHP file

Well I have a index.html where i wud like to submit some coordinates that can be passed upon to separate php file ; where it cud perform a a query. I am new to this and so any suggestions wud be really helpful html: Xmax<input type="text" name="Xmax" size="15"> Ymax<input type="text" name="Ymax" size="15"> <input type=S...

Why does facebook have random element IDs ?

I have noticed that facebook has random element IDs for every element - including elements that have no unique element id. <div id="__w2_YvdN1r2_loading">blah</div> Any ideas why they do this on every element & how they do this? ...

Dynamic Dropdown List from SQL with JS

Hi All, Please help, I have a dynamic JS table, so you can add and delete rows by clicking a button. One field that I need to add within the row is a select box, no problem so for and I use the following: var cell2 = row.insertCell(1); var sel = document.createElement('select'); sel.name = 'selRow' + rowCount; sel.options[0] = new Opti...

do you hide nav in your print stylesheet?

Hi, would you hide the navigation in your print stylesheet? what are pros/cons? my initial thoughts: hide: uses up paper real-estate not very useful on paper keep: keep look and feel of page helps indicate which (sub-) page is being printed thanks ...

WebKit vertical scrollbar issue on <pre>

I am not able to figure out why this does happen. On all non-webkit browsers I tested the code below with (IE8, FFx 3.x, Opera 10.x) there is no scrollbar on the <pre> area. For both Chrome and Safari vertical scrollbar appears. Of course I do not want it to appear. The code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//...

HTML/Javascript trick needed to set <td> width

I have the following problem: I have to list several items each with several properties on a web page. The listing is done in two HTML tables. One table for the headers and one table for the items. This separation is needed in order to have possibility to scroll only through the list. (It would be odd to have a scrollbar in the header s...

Center Nav Bar Elements

<div id="wrapper" class="hfeed"> <div id="access"> <div id="menu"> <ul> <li class="page_item page-item-2"><a title="About" href="/?page_id=2">About</a></li> <li class="page_item page-item-20"><a title="Support" href="/?page_id=20">Support</a></li> <li class="page_item page-item-22"><a title="Links" href="/?page_...

Font size issue with iPhone

Hi all Im currently working on a mobile version of a website, everything is great, works fine on an iPhone, Blackberry and Android. I have one slight problem, not a big deal but still a little annoying. I have: <h1> tags set to 18px and bold <h2> tags set to 12px and bold <p> tags set to 12px and normal Now everything looks great on ...

Need help fixing expensive website template

Hello All, I bought this website template from dreamtemplate and the copyright text displays on the center of the page ontop of the main body content! I had not changed any code at all. It was like that when I extracted the files. I looked at the code and couldn't find anything wrong, but I guess that doesn't say much since I had to buy...

HTTP post without redirecting user

Hi, I'm trying to push data to a form in ASPX, but I dont want to the user to be taken to the post page. I.e When a user registers on the site I need to push some data to a form and submit the form withtout the user being redirected. Sp ...

Inherit height of div from inner elements

Hello all, How can I inherite height of <div> acting as a wrapper from innter elements? like, Height of wrapper = total height of inner elements ...

Iphone Auto fit to page

Hello Is there a way to get a page to auto fit to screen on rotation of an iPhone? When i rotate the iPhone to landscape the screen zooms in to a certain point of the page and doesnt fit the screen, therefore you have to scroll back out to view the content. Cheers ...

HTML Select shortcut key override

I have dropdown list (HTML select element) which simply contains a heap of dollar amounts. E.g. $50,000 $100,000 $150,000 $200,000 and so on.. An example of one of the option elements inside it would be: <option value="150000">$150,000</option> I want the user to be able to start typing in 1..5..0.. and get it to auto-jump down ...

How to style table with only vertical cell spacing?

Hi, I have a table in my HTML yet I only want vertical spacing as it doesn't look right with the 25px horizontally. I can see no attribute in HTML to do this so is it possible? Thanks in Advance, Dean EDIT: I have a table with cellspacing all the way around of 25px. I would only like vertical cellspacing of 25px. ...

How to put a default value into an 'input' and when user press enter it will disappear?

How to put default value to input and when user press enter it will disappear? My code that is not working: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <body> <input value="default-value" type="text"/> </body> </html> ...

What is the script to to detect mobile devices

Hello, I have to make 2versions of my site, i.e., 1 version for Mobile phone and 1 version for our PC. So I have a script as follows:- <?php if ( stristr($ua, "Windows CE") or stristr($ua, "AvantGo") or stristr($ua,"Mazingo") or stristr($ua, "Mobile") or stristr($ua, "T68") or stristr($ua,"Syncalot") or stristr($ua, "Blazer"...