html

Can HTML be executed while being read from or inserted into a textbox?

Hello, I have a question regarding ANTIXSS implementation. If I was to read values from a textbox on a page and store it into a database directly and then read value from the database and insert it into a textbox, then is there a chance that the tag or similar could be executed in the process ? Regards, Andy ...

Is there a way to use use text as the background with CSS?

I would like to use dynamic text as background of certain elements in my tag. Because of this, I can use images (dynamic text). How do I do it with just CSS or JavaScript? ...

wmd - markdown editor - how to assign it to an arbitrary text field?

If any of you have ever used wmd markdown editor (which is like the editor that stackoverflow uses) then maybe you are able to help me out: WMD by default assigns itself to the first textarea found on the page. However, I have a page with an arbitrary amount of textareas appearing before the one I need WMD assigned to. WMD provides o...

Code for a simple JavaScript countdown timer?

I want to use a simple countdown timer starting at 30 seconds from when the function is run and ending at 0. No milliseconds. How can it be coded? ...

jquery redirect on enter press within a form?

I have an html form and within the form I have a <button> element. I am using jquery to redirect the page upon clicking the button (essentially I wanted to nest form elements but since its not valid xhtml I used a javascript workaround). Furthermore, clicking the button grabs text from an input field, appends it to the query string the...

How to remove a piece of HTML tags in a HTML page using PHP

I have a situation. I read in a html page using php using this piece of code $body = file_get_contents('index.htm'); Now in the index.htm file is a piece of html code like below that I sometimes need to remove/depends on criteria, so sometimes it needs to be removed and other times not. <td><table><tr><td></td></tr></table></td> How ...

horizontal Ul navigation not consistent across broswers on zoom-out

I'm experimenting with a horizontal navigation menu by adding a second line (brief description of link) of text inside span tags, which are inside each li anchor. It behaves as I expect in firefox & IE8, but not in chrome. In chrome,when I zoom out (ctrl -) the far right li drops down below in the ul, increasing the presented ul height...

radio button align style properties

i m working with a form and putted some radio buttons followed by some textareas in a table.... the problem is the radio button is appearing towards the botttom of textarea.... and i want to position them towards the top of textarea <table align='center' valign='top' border='1'><tr><th align='center' > qno)1</th></tr><tr><td><textarea ...

Javascript same origin security issue

Hello everyone, I learned the Javascript concept of same source of origin, which means Javascript code could only access the host where it is downloaded from. My confusion is, I have developed Javascript code, store the code locally into a .js file and call Javascript code from another local html file. When I use IE to open the local h...

Why is http://www.shlomifish.org/ Displayed Wrong in MSIE 8?

Hi all! I maintain a personal web-site at http://www.shlomifish.org/ . It is displayed fine in Firefox 3.5, Opera 9.x, Konqueror 4.3 and Internet Explorer (MSIE) 7. However, with MSIE 8 ( 8.0.6001.18702 ) it is displayed completely wrong: there's a large whitespace at the top and I cannot see the left navigation menu. The page valida...

A "_" every-time i use a <a href code

... <a href=""http://localhost:8888/PhpProject1/php.php/Php.php">&lt;img src="/PhpProject1/vital1_top_logo.jpg" height="180" border="0px" > height="180" border="0px" " ></a> type="text/css" rel="stylesheet" /> ... </head> Every time i use this tag appears a "_" on the right of the image ...

WordPress side panel

I have been trying to get the WordPress menu inline and below my side navigation but FireBug is not helping and I cant see where I am going wrong! The doe for the side nav is blow but if you go to http://bradburyembroidery.com/houses4cash/blog/ you will see how it moves out of line! <?php /** * @package WordPress * @...

Find the number of <input> in an Div tag

Hi Friends, I need to find out the number <input> tag within a <Div> tag.. How it's possible.. For example the code will be like this.. <div><li ><a>Jayan</a><input type="checkbox" id="c21" onClick="fcheck(this);" ></li> <li ><a href="#">Reshaba</a><input type="checkbox" id="c22" onClick="fcheck(this);" > <ul> <li ><a>crescent</a>...

Margin left- px

Can I use any tag that will allow me to place a line <hr /> on a specific left margin size ...

Browsers not updating code changes?

While working on HTML I and testing offline, you know changing the code and refreshing the browser, nothing is happening anymore. Both Firefox and Safari seem to not care about refreshing to reflect the changes. But Opera does... Even if I upload the new file to the server and refresh in FF it is not showing the new code styles, I have ...

Position fixed and Internet Explorer

Hi, this is my css. It is working fine in firefox but not working in IE. #Createinner { position: fixed; width: 400px; height: 280px; margin-left: -200px; margin-top: -140px; top: 50%; left: 50%; background-color: #ccc; } How to solve this. Thanks in advance ...

HTML and CSS possibilities when wrappeded inside 'select' tags

I need to display options present in a select region (allowing multiple select) in form of tree. This tree needs to be collapsible/expandable. I have implemented it such that it looks and works as intended in FF. - 1 - 1.1 + 1.1.1 - 1.1.2 - 1.1.2.1 - 1.1.2.2 - 1.1.2.3 + 1.1.3 I have achieved t...

WordPress comments form

I have removed the border of form items on my site but I want them on my blogs comment form! http://bradburyembroidery.com/houses4cash/blog/hello-world/#comments I have tried: #commentform input { border:thick; } but firebug keeps thinking its saying border:thick none; Can anyone point me in the right direction? Thanks ...

How can I access style properties on javascript objects which are using external style sheets?

I have an external style sheet with this in it: .box { padding-left:30px; background-color: #BBFF88; border-width: 0; overflow: hidden; width: 400px; height: 150px; } I then have this: <div id="0" class="box" style="position: absolute; top: 20px; left: 20px;"> When I then try to access the width of the div: alert(document.getEleme...

Scrolling a div with jQuery

Hi, I am attempting to create a div in a container within a container which is scrollable with up and down arrows in jQuery. The only thing I can find which I wish to use was http://www.dynamicdrive.com/dynamicindex11/scrollc2.htm I would've started attempting to convert that to jQuery, however it apepars to use tags like ilayer and l...