html

Marquee Text When Text Overflows

Hi all, well heres my problem. Lets say i have 3 div tags, all are 100pixels wide: <--- DIV WIDTH ---> Text in div 1 Text in div two, it overflows Text in div three <--- DIV WIDTH ---> Now, currently i have this css for the divs: width:100px; overflow:hidden; What i want to do is if the text overflows, it scrolls like a marquee so ...

Reading UTF8 chars using innerHTML returns 0xfffd for all chars

I'm reading an HTML document that contains UTF-8 chars but when I access the innerHTML of the document, all the "bad" chars show up as 0xfffd. I've tried it in all the major browsers and it behaves the same way. When I alert() the innerHTML it shows those chars as a "diamond with a ? mark". Surprisingly the following works perfectly, co...

HTML and CSS programming

I am working with the following code: <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <style type="text/css"> td.one { align="center"; colspan="3"; bgcolor="lightgrey"; style="font-size:15px;font-weight:bold;" } </style> </head> <body> <table border="1" cellspacing=...

CSS To Add Underline After Header Content

Problem I am working on a project to theme a website, but I am not allowed to change the HTML or JavaScript. I can only update the CSS stylesheet and add/update images. Requrements I need to style a h3 tag to have an underline/border after the content. This h3 will be used multiple times on the page, so the conent length can vary T...

ASP.NET and Javascript Error

I am upgrading a project from ASP.NET 1.1 to ASP.NET 2.0. In my aspx page, I have a hidden field, like this: <input type="hidden" name="__TabControlAction" /> And I have the following javascript function: function __tabStripPostBack(key) { var theform; if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) { theform =...

js/jquery/html: getting a div from an iframe

How can I grab a div from an iframe into a JS variable? Doesn't necessarily have to use jQuery. ...

Keep formatting of textbox after a postback?

I am building a HTML scrubber basically an internal tool for scrubbing a problematic html page. I am building the tool as a web app using ASP.NET 3.5. It consists of a button and two multiline textboxes. I am programming it so you paste in the HTML you want scrubbed into the top box. Hit the button and the scrubbed HTML shows up in t...

Software Development Track vs Web Design Development Track

I'm currently a student. I just finished intermediate c#. Wow. It was interesting, but I've found myself becoming more interested in the javascript and html world as I've started to see the potential for variety with web applications and scripting. My question simply is for your best answer on the benefits or negatives of either track ...

jQuery css() function changing 'a' property not 'a:hover' property

Hi, I'm having a bit of trouble with the jQuery css() function at the moment. It is changing the css value of the anchor element's border-top-color instead of just the anchor element's border-top-color when hovered. Below is my code. $("#header #headerlist li a:hover").css("border-top-color","rgb(225, 149, 79)"); Any ideas why it cha...

Best way to show of different projects on a portefolio

Hey, i have been browsing the jQuery webpage for cool ways to create a webpage-portefolio and am looking for cool ways to show of my work on my webpage. Please give me some examples of this, so I can make the best possible experience of my website :) Wordpress as a Portefolio 10 steps to the perfect portefolio Examples of a good porte...

Printing from servlet, why does this not work

I want to print from a servlet. I believe I have the correct syntax. But I get the message "delete these tokens" in Eclipse. PrintWriter out = response.getWriter(); out.println("<html><head><title>Woohoo</title></head><body>\n" + "<form id="report_form" name="report_form" method="post" action="AgReportServlet">\n"+ "<table bo...

Automatic HTML simplifier tool?

Whenever I see a problem that would be shared by others, with a solution that would be fun to implement, it usually turns out to have been solved already. I think it's best to stop myself and do a search before I dive into the coding. Here's the situation: You can copy and paste sections of an office document into the visual studio HTML...

Div vertical scrollbar show

Hello, I am wondering how its possible to permanently show the vertical bar of a div (greyed out if there is no scrolling) similar to our regular bars. Basically I am trying to place an entire website in a div (like gmail/facebook), so if the page is not long enough the whole page shifts because of the lack of the vertical scroll bar. ...

replace image with a video embeded

Hi I'm trying to modify a web page so that it loads faster. Since I have some videos embeded (blip.tv but can change it to youtube if it helps) I was wondering if you could load an image where the video should be and on click replace the image with the video and start playing (without reloading the whole page). I think I've seen this be...

CSS: Div position:relative alignment problem

Hi guys, I have a problem about div position relative alignment. I want the second div to be fixed in position even if I remove the first div. The problem is that the second div adjusts its position when the first div is removed. My question is how can I retain the position of the second div even if I remove the first div? Thanks :) ...

Access the control from another file

Hi friends i am doing a project in that i need to disable some controls from antother page. For example i have a button named "View profile" in Mainpage.html . i want to disable the button from Profile.html . please help me to fix this problem. Thanks in Aadvance. ...

Dhtml Transitions

hi everyone, Is it possible to move the slide from left to right.when the user click the button. i am using progid:DXImageTransform.Microsoft.Slide(slideStyle='PUSH', bands=1).it moves from right to left as way i need to move from left to right. anybody knows ? it an urgent. Regards Ravi ...

valid html header

Is there any way to write a valid header/link/image? Something like <a href="index.html"><h1 id="logo">Company name</h1></a> (with an image set as background and the text moved way to the left so its not visible via css) ...

Write JavaScript in Other Languages

I have some clients who are not English speaking. They would like the JavaScript I write for them to be in another language. Can browsers understand other languages, or am I limited to non-English comments? navigateur.nomApp.indice("Microsoft") Instead of : navigator.appName.indexOf("Microsoft") ...

IE8 won`t submit on enter when you have multiple forms

if you have 3 forms (shown below) and you set two of forms to not to display (display:none;) and you use javascript to toggle through each form, the forms that were set to hidden, when you set them to visible and you try to submit a form by pressing enter, it won`t submit. the only form that will submit if the first form that is visibl...