html

Conditional Statements in PHP code Between HTML Code

Hi ! I'm having a bit of an issue by using Conditional Statements in PHP separated by HTML code. This is the type of code I'm trying to write. This is a profile page and it should only be seen by the user whose profile it is (i'm using session variables for checking that) : <?php if(check if user is logged in) ?> <display users profile...

showing newline in label

I want to show new line in label using c# but it's not working in every browser. I want to show in xml format in browser. My Code as below lblSaleData.Text ="" + "\n" + "" + eml + "" + ""; ...

Width of a <td> is narrower when I use a <br> in it on a fixed width <table>. Why?

I have this HTML code fragment (in a valid document using strict doctype): <p>Without &lt;br /&gt;</p> <table border="1" width="220"> <tbody> <tr> <td>lorem</td> <td>ipsum</td> <td>lorem ipsum</td> <td>lorem</td> <td>ipsum</td> </tr> </tbody> </table> <p>With &lt;br /&gt;</p> <table borde...

Are there any basic standards and practices for making human readable code?

More specifically making HTML, Java, and python more readable? Does anyone have suggestions for this programming student? ...

Confused on where exactly i should test my ie code. the tester is bugging me

Hi there, ie6 has been bugging me up from a very long time from now. and i am feeling so frustrated. however here is the problem i am facing. i have written the XHTML markup , html and css code. i want to test the cross browser compatibility, i know there are lots of tools out there to do it, and i am already using some of them. i am ...

vertical repeating resizable border images using css

Hi, I am making a web page for a friend and at the minute I have the layout as follows: there is a 10% border, 80% center area for the banner and content, and another 10% border on the right. Now instead of having the left and right areas empty I would like to have an image repeating down as far as the page goes (which will probably ...

How can I show special characters like "e" with accent acute over it in HTML page?

I need to put the name of some universities on my web page. I have typed them as they were but in some browser or maybe some computers they appear differently. For example, "Universite de Moncton" should have the 2nd "e" in Universite with an accent acute over it. Could you please help about it. ...

How to read stream video from IP cam

Hi, I am trying to read the streaming from a Network IP Camera. I can connect to the IP Camera (web server) by proprietary web interface and I can watch the video (h.264 format), but I need to read the video stream and put it in a web page that I am developing. How can I read only the stream video ? I think I have to authenticate in so...

What is the most convenient way to convert HTML to plain text while preserving line breaks (with JavaScript)?

Basically I just need the effect of copying that HTML from browser window and pasting it in a textarea element. For example I want this: <p>Some</p> <div>text<br />Some</div> <div>text</div> to become this: Some text Some text ...

Get value from ASP.NET MVC Lambda Expression

Hi, I am trying to create my own HTML Helper which takes in an expression (similar to the built-in LabelFor<> helper. I have found examples to obtain the value of a property when the expression is similar to this: model => model.Forename However, in some of my models, I want to obtain properties in child elements, e.g. model => mode....

I'm using Ajax to populate my web page, but the populated HTML isn't working

I'm using Ajax to dynamically populate a DIV. I have each page content stored in XML files as CDATA. When a user clicks on a link from the navigation bar, the Ajax loads the XML for that particular page, parses it, and populates the DIV with it's content. Everything is working GREAT, except for one thing. I have a jQuery modal popup who...

Anchor link containing multiple headings?

According to the W3C wrapping multiple elements in 1 anchor tag is invalid. I was wondering is there is a neat CSS solution for combining multiple heading and image tags into 1 valid clickable anchor? I'm building a property listing site, and I want my 'mini listing boxes' to only have 1 anchor. Here's my invalid code: <a href="listin...

How to resize DIV with its component using Javascript

Dear All, I have created a html page of two DIV with tab component using jquery. Tab component is resizable and have min/max width. There is a scrollable divider between DIV. But the problem are the components of the div, which are not resizing according to the resized div position, it is overlaping on the other div. Any suggestion o...

Loading an image to a <img> from <input file>

I'm trying to load an image selected by the user through an element. I added a onchange event handler to the input element like this: <input type="file" name="picField" id="picField" size="24" onchange="preview_2(this);" alt=""/> and the preview_2 function is: var outImage ="imagenFondo"; function preview_2(what){ globalPic = n...

Check if javascript is enabled in browser

I have this code which checks if js is enabled and redirects: <noscript><meta http-equiv="refresh" content="0;url=http://www.domain.se/act.html"&gt;&lt;/noscript&gt; However, I wonder if this is SE friendly... This because I have added my website url to yahoo recently, and instead of the title appearing in the search results, the tex...

how can we avoid the shake when we hover over an element and set its font to be bold

How can we avoid the shake when we hover over an element and set its font to show bold? Here is a sample of the code I wrote: http://jsfiddle.net/8v4Ag/ Is there a technique to avoid the shaking? Suppose I hover on LogOff, the font goes bold, but that line of text moves a little to the right due to the text getting emboldened. If we ho...

Python in my webpage?

If I want to write a webpage in Python, where do I begin? Do I save my file as "index.py"? Can I mix Python and HTML? what does that look like? EDIT: I want to learn how the Python process works on the web. I want to know if I can put Python into an existing webpage and having it render the Python code. I'm not asking about framewor...

I am writing a scraper that downloads all the image files from a multiple pages across the same site and saves them to a specific folder.

the pages have only one variable which changes, and each page only holds one image. (example: http://www.example.com/photos/ooo1.jpg ...http://www.example.com/photos/1745.jpg) I'm currently building the script with python and beautfulSoup but am having a problem creating a loop with the changing variable. I just getting started with ...

jarring toggling effect

I have a fixed height div which looks like following. 2 issues. 1 - when I click the 'on_click"show_hidden_div' it does show the div but since the parent div is fixed height, I just get a scrollbar and now the user has to scroll down, any way to automatically scroll down when the hidden div is show? 2 - When the hidden div is hidden ag...

Convert HTML website with Facebox to .NET for form handling

My website was designed without any backend in mind. Facebox was the chosen plugin for the screen pops for features like logging in, registering, searching, etc. What is the easiest way to convert this to .NET? I don't care if it's web forms or MVC (I suppose I would prefer MVC). Most of the Facebox div's are in separate .html files. For...