html

Call PHP function from an HTML table which displays a PHP Table ...

I have a PHP page, which builds up a table in the php code, and then previews the table in the HTML code, like this basically: <?php $display="<table><tr><td></td></tr></table>" ?> <HTML> <?php echo $display; ?> </HTML> Now, I need to call a function INSIDE the php script again, whenever a button is clicked. Thing is, ...

PHP / Javascript Dilemma

I have a dilemma, I have a classifieds website, and whenever an ad is clicked a php page shows up displaying all details. Here I want the pictures to display also, but the thing is, I want the user to click on whatever thumbnail and the thumbnail will get resized to its real size. The coding for this is no prob. The problem is, how sh...

HTML / CSS Setting for Opera

body { padding:0px; background:#2786f4; position:relative; margin:0; color:#818181; text-align:center; } <!--[if IE]> <style> #Right { width:202px; background:#f1f1f1; ...

Popup and change location at the same time...

Basically here is my code (Authenticator.jsp): window.location.replace("Login.html"); // replace method also takes care of history window.open ("Main.html", "Welcome logged in user"); Expected behaviour: We basically open the Main.html in a popup once a user has logged in. The current window must point to Login.html and main should ...

Hide Addressbar

how to hide address bar from popup window opened with window.open? ...

How to make a div top center?

I'm now doing it this way,which is not centered: $div = $('<div style="background-color:yellow;position:absolute;top:0;"><b>Loading...</b></div>').appendTo('body'); ...

controlling file types in HTML file input/upload dialog

Hello, Is there a way to specify the file types which can be accepted by HTML File Input/Upload dialog? <input type="file" value="Upload XML file"/> I wish to control that only certain file types are visible in the dialog based on their extensions. ...

Where can I get a list of all countries/cities to populate a listbox?

Kind of a programming question... You create a sign up form and their address is taken from a list of countries and cities. Is there somewhere on the interwebs I can grab these lists from to stick in my listboxes? ...

How to make a div to show scrollbars (without fixed height)?

I have a page with two divs on it which should fill the entire screen. Both of them have width = 100% The upper one's height should be defined by its content (the minimal possible height that fits all content) and never show any scrollbars. The lower one should fill the rest of the screen. However, if its content does not fit the div,...

ClickTag in Expandable Banner (2 swf's)

Hey, I'am making an Expandable banner in flash. When you move your mouse over the smalle banner, it loads an author large banner. Now the problem is, that I specify in my HTML the ClickTag only for the small banner (because the large banner isn't loaded when you load the page). And when you click the banner, you click on the large banne...

problem embedding flash in webpage

Hello, I am not sure whats going wrong but when I am using a flash file in the web page when I am setting size style="width: 445px; height: 386px" white strips are embedding sideways automaticaaly,, while using the same page with size width="450" height="440" no white strips appear. It might be the problem associated with the asp...

window.open with popup blocker

Hello, I am trying to open a certain page from my default page. All the code there is in the default page is: <script type="text/javascript"> window.open("StartPage.aspx", "", "fullscreen=yes"); </script> The problem is that the browser's popup blocker blocks this and I need allow the browser to open it. I want to avoid th...

Hide Text From Printing

Hello, I have a print page here: http://www.souq4cars.com/ppreview.php?id=611111161&amp;u=10064&amp;t=users%5Fcars How do i hide the links at the bottom saying 'Close Window' and 'Print Page' from being printed on the printed page? ...

remove default tab selection and also add scrollTo effect

var tabLinks = new Array(); var contentDivs = new Array(); function init() { // Grab the tab links and content divs from the page var tabListItems = document.getElementById('tabs').childNodes; for ( var i = 0; i < tabListItems.length; i++ ) { if ( tabListItems[i].nodeName == "LI" ) { var tabLink = getFirstChild...

UIWebView - scaling image independently from text

I would like to diplay HTML in iPhone UIWebView. My HTML looks like text text <img src.../> text text How can I cause the component (via JavaScript or Objective C) to fit the image size to a window - i.e text size will remain the same but image will be reduced/enlarged proportionally to prevent horizontal scrolling ? Thanks ...

Whats the best way to name id & classes in CSS and HTML

When naming classes and ids for CSS what is the best method to use. In this case I need there to be some kind of naming convention so that other people can pick up rules and understand how to name their own ids and classes using the same pattern. Any suggestions? Some of the sites we create can get pretty complex but use an overall struc...

Render html in Swing application

I have a swing application that sends commands to server and receives result in XML format. I need to transform this into HTML via XSLT and then display result HTML on the panel. The problem is that the only Swing component which is able to display HTML - JEditorPane - takes either URL or javax.swing.text.StyledDocument as a source. Opt...

Win32.: How to scrape HTML without regular expressions?

A recent blog entry by a Jeff Atwood says that you should never parse HTML using regular expressions - yet doesn't give an alternative. i want to scrape search search results, extracting values: <div class="used_result_container"> ... ... <div class="vehicleInfo"> ... ... ...

Muli-line button in IE

I'm currently in a horrible situation that requires me to style an input of type "button" over two lines. Having a fixed width on the button causes the text within the button to wrap onto two lines in all other browsers except IE. My question is therefore, how do I specify that an input with value="Button to Wrap" wraps onto two lines i...

Control logic using HTML::Template

Just a couple of quick questions. If I'm writing CGI programs to create web pages via HTML::Template, then do I have to write separate tmpl files for each distinctive screen (the control logic to be in the Perl code)? Also, (and in a similar area) is it OK to put url links to the other screen CGI programs within the tmpl files? For exa...