html

What is the process of turning HTML into Postscript programmatically

I am trying to understand what the process is of turning HTML into a PDF/Postscript programmatically All Google searches turn up libraries to do this, but I am more interested in the actual process required. I know you could just set up a Postscript printer and print directly to that, but some of these libraries appear to create the ...

Non-breaking parentheses?

In the footer of a flexible-layout website I've noticed that IE tends to line-wrap on parenthesis characters (in a phone number in this case). Is there a visually equivalent non-breaking parenthesis, in a similar vein to non-breaking spaces and non-breaking hyphens, that I can use instead? ...

Javascript Alert Return value / Event

Hey, The question is pretty simple, but i'm not the big AJAX/JS coder, so I have no clue if it's possible. Is there any way that I can check whether or not an alert() was executed on a remote site? Like if I inputted an alert("Welcome to this site"); through a get variable, is there any way to check if it that alert() was actually exec...

JavaScript getting complete code of element when mouseover or onclick

How can I get the complete HTML code of the element I'm mouseovering or clicking? Using document.onmouseover = function(e){ can I get the full underlying HTML code of the element which triggered the event? Right now, I am able to get the tag name or id or whatever. What I would like is the whole code. For example; if I'm mouseovering a...

Parasing HTML to find specific links (Without Keywords)

I posted about this sort of earlier, but I am not sure how to post back to my original question as I can only comment or answer my own question. Anyways, I need to get 4 links from a website, the latest stable build links for windows and linux, and the latest development build links for windows and linux (4 links total) within my C++ ap...

How to handle huge table ?

I would like to display to user a table which contains ~500,000 rows. The table should be calculated based on a file (i.e. the table is known at the beginning, and does not change). I guess that building the HTML text of this table is not a good idea in terms of memory performance. So how can I build such table ? I would like user to be...

Dynamic content with jQuery ui, unique tab active state

Hi guys, I would like to create a jQuery menu with dynamic content using the jQuery ui. My question is, I have images for tabs, and each one is different, so each one's roll over is different, how could I design it to display each unique tab's active state when that specific tab is clicked? Thanx in advance! ...

Changing an iframe's background when loading.

I have an iframe on in a div, with a background colour. When the page is loading, the iframe placeholder turns white. Is there any way to change the background when an iframe is loading? Thank you in advance. ...

How do you get the width of an element without a defined width?

How would you find out the width of a element that is wrapped by 20 odd other elements, but the only fixed width I know is the main wrapper's which is 800px. All child elements are generally blocks, floating or not, with different paddings and margins. I don't really need the answer to a specific case, I'm just wondering if there are too...

passing string to a AJAX/JSON function

I’m having trouble getting a AJAX/JSON function to work correctly. I had this function grabbing value from a drop down box but now I want to use an anchor tag to set it's value. I thought it would be easy to just use the onClick event to pass string to the function I was using for the drop down box but it doesn’t do anything. I’m stumpe...

copying html page with mysql data in php

I am trying to copy a file into a folder called profile. I got that working, but I need the page to be .html. I also need data from MySQL to put in the .html page. How do I go about that? ...

Is there a tool that can scan an asp.net project and build a sitemap?

I'm looking for an automated way to inventory all the links within an asp.net project that I inherited. ...

JSON onFailure issue

I’m having trouble getting a AJAX/JSON function to work correctly. I had this function grabbing value from a drop down box but now I want to use an anchor tag to set it's value. I thought it would be easy to just use the onClick event to pass string to the function I was using for the drop down box but I get the alert in JSON onFailure ...

how to transform xml with xslt preserving <br /> and not preserve other tags in a text

This question is quite similar to this one. Except that I want to preserve only <br /> and some <img> tags (with class="visible"). I.e from: <example> <text> Some text with <br /> and <img src="source" /> then text .... <img class="visible" src="source" /> </text> </example> To have: <div class="example"> <p>Some text...

Need an option to go back to a previous web design.

I'm creating a website for a client in which he wants a link that people can click on to go back to the previous website design and go to that design every time they go back to that website. How would I go about doing this? Would I need to create a cookie and if I do how do I do that? Thanks for all your help, I'll come back to this...

Linking how PHP/HTML

Hello. Alright so im done doing pages with frames, and know i splitted up my design to top.php and bottom.php. In top.php it's linking to style.css and ajax_framework.js and such.. Now this works great until i tried to include top.php & bottom.php in videos/index.php (another dirr), i did like this: include "../top.php"; <-- and the ori...

HTML/CSS set div to height of sibling

I have 2 div's contained in a third. One of the contained div's is floated left, the other floated right. I would like the 2 sibling div's to always be at the same height, but am having a problem with this. So far I am only viewing the page in Firefox, and figured I'd worry about any cross-browser issues after I get it working in at l...

ingenious idea needed: how to declare different sizes for different fonts? @font-face?

I've never seen this done, but i get a feeling that there's gotta be a clever way of doing it. css font-size-adjust looks like it was never meant to be, but when i look around I'm seeing some really ingenious css techniques going on. Take this on nettuts yesterday for using @font-face for vector icons. my challenge (notice the 2 diffe...

Proper syntactic to add server side tags in HTML

Im trying to get a value server side. <web:Column Caption="" ColumnName="View" HyperLink="CatalogItems.aspx?UsgSvcID={0}&DisplayInactiveService=<%m_aServerSideVar %>" HyperLinkField="UsgSvcID" ></web:Column> I'm not sure if I can do this or I need to create a function to do a redirect. Thanks Brad ...

How to create url preview in JavaScript?

Can someone help me with creation of a url previews in JavaScript? What I mean is this: Say I have a link on my site, I want the user to be able to mouse over the link, and have an image pop up that shows what the target of the link looks like. Don't worry about the css, I got that working, I just need the actual script to show the im...