html

Simple script issue?

Hi, for some reason I cannot get any form to work correctly on my website, I even went to w3school and copied a simple test form to see if it works, and it does not, here it is: welcome.php: <? Welcome <?php echo $_GET["fname"]; ?>!<br /> You are <?php echo $_GET["age"]; ?> years old. ?> form: <form action="welcome.php" method="g...

Regular expression to remove <br> from <pre>

I am trying to remove the <br /> tags that appear in between the <pre></pre> tags. My string looks like string str = "Test<br/><pre><br/>Test<br/></pre><br/>Test<br/>---<br/>Test<br/><pre><br/>Test<br/></pre><br/>Test" string temp = "`##`"; while (Regex.IsMatch(result, @"\<pre\>(.*?)\<br\>(.*?)\</pre\>", RegexOptions.IgnoreCase)) { ...

why the height of a frame is not constant in ie7

i was developing a page which has two frames, the left frame is a treeview file, when click one of the file it will display on the right frame.the main page code is below <frameset id="main_frame" cols="210,*" rows="*"> <frame src="FramesetLeftFrame.jsp" id="treeframe" noresize="noresize"/> <frame src="" id="ba...

Creating three-column table with CSS only? (No table element)

Hi, I'm creating templates for a Django project, and I need to create a three column table in HTML, using just CSS, rather than a <table> element. The reason, apart from any ideological opposition to tables, is that the report needs to be viewed on both desktops as well as handheld devices such as BlackBerry. On handhelds, rather than...

Best practice: Use same form for creation and update

Hi everyone, I'm just curious and was wondering how you guys handle it if you want to use the same html form and as far as possible the same php code to create and update an item. Example: On one page you can create a database entry with name, email address and age. On a different(?) page you see the form fields filled with your data a...

HTML line break formatting in VS is not working?

I've adjusted my VS 2010 HTML formatting settings to do line breaks "Before opening, within, and after closing" for many tags such as the <a> and <li> tags. But this only renders as the following when formatting the document: <ul> <li> <a href="#"> Item 0</a></li> <li> <a href="#"> Item 1...

Capitalizing Lower-Case Letters

For the code below, how could I make $row["title"] and $row["displayurl"] display in capital letters even if they contain lower-case letters? echo '<td class="sitename1"><a href="http://www.'.$row["url"].'" TARGET="_blank">'.$row["title"].'</a> <div class="dispurl">'.$row["displayurl"].'</div></td>'; ...

API's on website

I have never used an API as part of a website, I have always coded things myself, but I am now thinking about maybe looking at starting to use some, I mean why re-invent the wheel!? So, my question is, where do you start, how do you integrate, how do they work, what do I do, will they fit seamlessly into my site/design? Any pointers, a...

How to highlight table cells after checking a condition using javascript function whose values are fed by XSLT

Dear all, I am a new to JAVASCRIPT and I want to highlight table row if the values are not the same throughout the row knowing that I use a loop to extract the values from the XML file using XSLT. How can I do that? <xsl:for-each select="./projects/project"> <td> <xsl:value-of select="weight"/> <xsl...

Html Input boxes must be in the same line.

Do you see the rec tangled red text box which is under "Acil Durumda Aranacak Kişi", I want that text box just near "212" since they are both for telephone number... How can I do that? PS: All the html text boxes, and inputs are created by c# code... ...

Font Size different in Photoshop to my HTML

Hi, I have done some headings for a web page and i have decided to change them to HTML instead of an image however i used the same size of 20pt in photoshop and its huge on the website. Is this normal is there any way to get them the same size? I'm a backend developer usually not a front end developer, this is why I ask. Thanks in Advanc...

Correcting the sliding animation of a custom carousel

I'll even share my code with you! Basically, I have a carousel that I built from the bottom up - Now, it works fine when there is more than one product being shown. When there is only one product shown, then the animation jumps in IE (surprise...). Anyone have and idea how I could fix this up? My jQuery for the sliding: $(leftButton)...

PHP Variable in Select Statement

Hey, first sorry that i had written it in german. Ok in english: i've written this PHP-Script which is working, and now i want to change the rowname into a variable to (not sure if row is correct), i mean the "name" from the select name... I've tried near everything, but nothing gave me the right result. I know that the normal thing ho...

How to avoid display of HTML tags in mail function

I have a mail function, and it works fine, I get mails. But the problem is that I also get the HTML tags as it is. I have code as follows: $from=$_REQUEST['id']; $to = '[email protected]'; $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers = "From: $from \r\n" . ...

CSS, overwrite height of all select dropdowns?

Hi, how would i reference, so i could overwrite, all of the select boxes so i can overwrite the default height? I'm familiar when i create elements using a class, but im unsure on this? ...

How to force a file to download in PHP

I have list of images and I want a "Download" link along with every image so that user can download the image. so can someone guide me How to Provide Download link for any file in php? EDIT I want a download panel to be displayed on clicking the download link I dont want to navigate to image to be displayed on the browser ...

Print a website without printing the link locations?

Hello, I'm invoking the navigator print function using a simple window.print(); call. It prints perfect (I want to print the same I see on the screen, so I don't really use a special CSS to print) but it showing the link locations next to the text link, something like: Homepage (http://localhost) To be clearer: I don't want to h...

jQuery does not run the second time when a page is called via ajax

I am using jQuery to load the search results from a php class when the user enters a search term. The problem is that jQuery runs and executes the functions as required the first time round on the main page, but when the user enters a search keyword and the results are loaded from the class file on the same page via ajax, jQuery does not...

HTML scrolling div layout problem

Hi, I'm trying to design a HTML page with the following requirements: a fixed header (headerBox) and footer (footerBox) element (should not scroll) the content area contains a top (width 100%, contentBoxMap) element that can be expanned over the whole content area a left (contentBoxLeft) and right (contentBoxRight) content element ben...

Mobile Safari Text Area Background

A text area that's working well in all other browsers is breaking in mobile Safari. See the image below to see the breakdown in action: The default background is appearing over what I've specified in my stylesheet, and on focus some real weird stuff is happening. http://gettinderbox.com/blogdesign/i/safarimobile.PNG Here's the CSS and ...