html

How to assign class to Columns ...

I have like 100 rows, but I dont want to assign the class abc1,abc2,abc3,abc4 individually... Is is possible to automatically assign the class to TD depending upont the column no i.e Column1 -- abc1 Column2 -- abc2 ..etc <Table> <tr class="odd"> <td class="abc1"> ...</td> <td class="abc2"> ...</td> <td class="abc3"> ...</td...

target a specific page in iframe

hi, I'm running the CMS indexhibit, indexhibit uses an iframe to load it's content. http://www.therussianfrostfarmers.com/ My homepage has WordPress loaded into this iframe, which works ok, i've got some scrollbar issues, but that another problem. Currently, when ppl find a WP post through there search engine, the user is redirected t...

Get actual margins of an html element in c#

I need to get the actual number of pixels that an IHTMLElements margin is taking up, in my c# code. I've looked in it's style and currentStyle members, but the relevant parts are either null or set to "auto". Searching the internet has shown up the getCurrentStyle function in javascript, but I need these numbers in my c# code. Obvious...

HTML/ASPX textbox to store non-english characters to SQL database

I have this textbox on an .aspx page, which when submitted it stores whatever typed in the textbox into a nvarchar column in MS SQL 2005. It works fine, until you try putting chinese characters. These characters are converted to question marks (?) in the database. How do you store non-english characters from a <input type="text"> to da...

Rotating Div using javascript

Hi everyone Here is a link: http://www.avineon.com/ Open this link see on the top. Four images are rotating. I need something similiar using Javascript. Is it possible by using Javascript. Thanks & Regards Ravi Kumar ...

How to use HTML Agility pack

I want to know how to use the HTML Agility Pack as I am totally new to it. My XHTML document is not completely valid. Thats why i wanted to use it. Can any one tell me how to use it in my project? My project is in C#. ...

Check and insert alt attribute for images which miss it

I want to write a Java tool to assess HTML pages of an existing site and if any image has no alt attribute, the tool will insert alt="" to that image. One approach is using an HTML parser (like HtmlCleaner) to generate the DOM then adding the alt attribute to the images in the DOM before writing back the HTML. However, this approach ...

How Dynamically Resized a DIV element's Width to Fit its Text Content?

Let say I have this HTML code snippet: <div id="container"> <div id="textContent">Text Content Te</div> <div id="anotherText">Another Text Content</div> </div> I wonder how could I dynamically resized the div 'textContent' width so that its width fit its text content nicely (neither the text will be wrapping nor scrolling nor trunca...

Disable the text boxes.

I am beginner to html. I have two text boxes say t1 and t2 If t1 is filled with some data then then other text box t2 should be disable. Please let me know hot to do it. Thanks in advance ...

two column layout, left col height constrains right col height, don't know why...!?!

Hi there, I'm a little stuck, it's due to my inexperience with html/css and iframes. Basically, I've got a LH column, which is my menu. and a RH column which house's my content. the RH column is a iframe. The problem is i can't get the height of the iframe to equal 100%, it's constrained by the height of the LH column. See below; h...

Looking for examples of simple web-based form designers...

I have a requirement to implement a "simple" web-based form designer that allows "simple" users to create their own web-based forms. I've come across these things in rich clients, such as Outlook and Acrobat, but my requirements are much simpler and must be web-based. Pretty layout, custom validation, complex fields and types are simpl...

How can i track changes in content on a html page after page has loaded

Hi, I'm wracking my brain on this one. After a html document loads in a browser,I want to be able to monitor the page incase any content on it changes for any reason. Is there a Javascript function with which I can track 'what has changed' on the webpage . This should be irrespective of the type of content on the html page I hav...

JQuery Escaping HTML for Preview

I am making a very simple preview window in JQuery using just an ordered list. I am worried the user will type in < or > and accidentally mess up the code for the page or do some sort of XSS. How can I encode special chars using Javascript to handle this situation? ...

HTML/JSP Doubt, Print date on webpage...

I made a function which displays date on the webpage,, and i uploaded the same onto some server... But when i changed the date of my system, i noticed that the date is dependent on client machine.. Is it not possible to get the date from actual time server and embed that code into my program.. Hope i am able to explain my doubt.. Ple...

How do i put 2 DataSet Table Results in one GridView Column?

I have two results from a data set. I want to add both results in one gridview column. I do not want to merge in the code behind. Is there another way to do that? <asp:TemplateField HeaderText="Entered Date" SortExpression="Date"> <ItemTemplate> <div style="text-align: center;"> ...

Difficult page make-up with centered elastic blocks

I have 3 blocks: one wrapper and 2 other inside the wrapper. Inside-blocks have same size. Wrapper is elastic and its width is being changed during window resizing. 2 blocks inside wrapper are elastic too. Each of these 2 inside blocks has min-width property. When wrapper is wide enough inside blocks are positioned in one line one af...

How may I disable an http-equiv refresh in JavaScript ?

I'm building a status page which should be refreshed periodically. So, I've had a http-equiv refresh in the <head> section in order to refresh the page every minute : <meta http-equiv="Refresh" id="refresh" content="60"/> But, for browser supporting JavaScript, I would like to send an Ajax request checking if the page should be refre...

CSS overflow with long URL

Ok, so I have google ads inside a 160x600 container. New ads are shown randomly on refresh. When an ad pops up with a long URL that doesn't contain any dashes or any characters for it to break at, it overflows out of the container div. Right now I have overflow:hidden so anything after 160 pixels in hidden. The problem is that if ther...

What web sites are there that gives you the "Developer" the ability to block clients from changing html?

I use to know what it was called but it was years ago. The site basically allowed the developer to add an ID or Class inside tags to let the site know the client is only able to make changes to the code between tags with a certain ID or Class. I hope someone knows. This is killing me. ...

How to access an html element in flash?

I have an html page with a flash movie embded in it, that flash movie contains a button. I want to pass the id of an element on the containing html page to the flash movie so that when the button is clicked, I get the text of that element in flash (i.e. innerHTML). So, my question is basically two questions: How to pass something from...