html

Separator line in ASP.NET

Hi, I'd like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can't manage to find how to do it.. 10x! ...

Getting all css used in html file

I have to get what are all the css styles used in html file using javascript. <html> <head> <style type="text/css"> body{ border:1px solid silver; } .mydiv{ color:blue; } </style> </head> <body> </body> </html> if the above code is my html I have to write one javascript function i...

Regex to replace ampersands, but not when they're in a URL

So I have this regex: &(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);) That matches all &'s in a block of text However, if I have this string: & & & & & <a href="http://localhost/MyFile.aspx?mything=2&amp;this=4"&gt;My Text &</a> ---------------------------------------------------------^ ... the marked & also get's targeted - and as I'm using i...

Alternative for SIFR

I wish to know if there is an efficient alternative for SIFR. We are facing performance challenges with SIFR and we wish to replace it. One option is that we just use system fonts. Can someone please provide any direction in which we can research and solve the performance issue that we are having with SIFR. Even a replacement suggestion ...

Iframe issue in displaying java object.

Hi all, Is it possible to display a java object(by pointing it in iframe src) obtained from a servlet(In a jsp page) in an Iframe? Here is what I've tried. I'm storing a pdf file in mysql database as blob type. In the Hibernate bean class I have declared the corresponding variable as Byte[]. Now I'm trying to display the object throug...

how to check with javascript if all 'SELECT' values == 1 inside a form ?

Hi. Is it possible to check if all select values inside a div, inside a form equals 1? I dont want to write hundreds of if statements. Reason for this is that I am trying to validate the form, and want to check so that the user has selected something. Standard value in EVERY select list is 1 (not selected anything). <form name="m...

Where can I find a simple JavaScript based HTML syntax highlighter?

Where can I find a simple JavaScript based HTML syntax highlighter? Simpler is better, and I don't need any line numbers or tricks, just added colors. If it is the same colors as dreamweaver, even better! ...

Some more help to get this loop to work please?

This works but only if ALL SELECTS == 1, as soon as I change one SELECT to something else, this returns true... why? BACKGROUND: To validate a form. I am getting all SELECT values inside a div (which contains more divs) and compare them to the number '1', and if they == 1, then an error div shows up for the user. some code for getting ...

Jquery .next IE6/7 issue

I've been having nothing but problems with this script for a simple hide/show gallery of testimonials. I think the java is somewhat self explanatory... When the page loads, I tell it to show the first testimonial in the line up (as the css is display:none) and gives it a selected class name. Works fine in across the board. On click I ...

No able to acess xml element in VS 2008 after mounting the xml file "note.xml"

not able to access many xml element after mounting to the XMLDOM in VS 2008 it is not showing up in intelligence here is the code written in default.aspx <html> <body> <h1>W3Schools Internal Note</h1> <p><b>To:</b> <span id="to"></span><br /> <b>From:</b> <span id="from"></span><br /> <b>Message:</b> <span id="message"></span> <script...

textarea has no value?

I am sure my javascript works, because it works with other form elements. But I cant get it to work with the textarea... Textarea.value doesnt seem to work... I read someplace textareas dont have values, so how would you solve this. Im trying to validate a form and checking if value is empty doesnt work. Thanks UPDATE: some code: ...

How can I extend a div to bottom of page?

How can I extend a div to the bottom of the page? Let's say I have a div that starts at the top, and has a background image I want repeated to the bottom of the page. How would I go about doing this? Live example found here: http://mibsolutionsllc.com/ecgridos/about/ with the #content div. ...

string termination problem

When I try to run this script i get error in IE: Unterminated string constant <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head runat="server"> <script language="javascript" type="text/javascript"> ...

how to show section of a CSS sprite within a set position on the whole html body

hi there. I use sprite sheets for my css, adn they work great, however i want to have a section of my sprite sheet on the footer it is like a curved block and the left hand content boxes will come over the top of this a little. however i cant seem to get a section of a sprite as a background positioned at the bottom. now normally you ...

Can't seem to change a label in a modalpopupextender / asp.net

I have javascript onclick that shows the modalpopupextender and sets a normal html label in it to a different value - however it doesn't update it on the screen. I tried setting innerhtml, innertext, value, text, outertext using the javascript, but none of them work. I assume this has something to do with the way modalpopupextenders wo...

Positioning divs with z-Index in Internet Explorer 7

I have two relative positioned DIVs A & B. a has a DIV as child element called A' which is absolute positioned and has a z-index of 1000. DIV B' is a child element of DIV B and positioned absolute as well. Firefox renders this as expected: A'-B'-B-A(from nearest to farest from the user) However, in IE7 I get: B'-B-A'-A Please can someo...

Alignment and padding for asp:CheckBoxList

I have an asp.net checkboxlist as follows: <asp:CheckBoxList ID="CheckBoxList_Genres" runat="server" RepeatColumns="3"> <asp:ListItem Selected="True">Action</asp:ListItem> <asp:ListItem Selected="True">Comedy</asp:ListItem> <asp:ListItem Selected="True">Classics</asp:ListItem> <asp:ListItem Selected="...

Positioning divs with z-Index in Internet Explorer 7

<div style="position:relative;"> OUTERFOO <div style="position:absolute; z-index:1000;">FOO</div></div> <div style="position:relative;">OUTERBAR <div style="position:absolute;">BAR</div> </div> I want FOO to stack over BAR without OUTERFOO stacking over OUTERBAR! This works in Firefox, but not in IE7. Can someone post a workaround? Th...

HTML/CSS: Floating element in H2 element

This is the HTML: <h2> Log in <a onclick="doSomething()" href="#" class="float-right">&nbsp;</a> </h2> This is the CSS: .float-right { float: right; background: url(img.png); width: 10px; height: 10px; text-decoration: none; } So this should make the .float-right element float to the right of the text in the...

alternative to html top.document inside iframe

Hello, We have a web application where we're using "top.document" since this application uses iframes and sometimes we must reach the top document. The problem started now since we need to integrate this application in a website and we put it inside an iFrame in this very site. Since the application uses "top.document" it is reaching t...