html

Javascript asynchronous calls stepping on one another

I'm using AHAH (as outlined here http://microformats.org/wiki/rest/ahah) to make two calls to populate HTML on a page. The calls happen after the document is ready and are fired off one after another. The result, every time, is the first call gets overwritten with the last calls response. So I'll have two of the same chunks of HTML on th...

Bold and regular font in dynamic text under a mask In Flash with AS3

Hi all ! I have this text "my text is <b>bold</b> and regular". I want "<b>bold</b>" to be... well, let's say... bold ! I have a mask layer under which there is a text field. The text field shows htmlText, and i must embed chars. If not embedded, it doesn't display because of the mask. So the solution of importing 2 user fonts ( one ...

Extract divs with at least one class in BeautifulSoup

Supose you have a web page with a lot of this: <div class="story cid-8797378263432 l-es headline-story thumbnail-true"> where cid-nnnnnnnnnnnn class can vary. How would you get all the divs with BeautifulSoup? I tried: soup.find('div', {'class': 'story'}) but that didn't work. Seems to look for the divs with ONLY the story class. ...

How to handle Html inputs in the TextBox

Hi Experts, I have a requirement that user can input HTML tags in the ASP.NET TextBox. The value of the textbox will be saved in the database and then we need to show it on some other page what he had entered. SO to do so I set the ValidateRequest="false" on the Page directive. Now the problem is that when user input somthing like : <s...

Div : A Table Less Coding

I am a web Developer. Even I do web design but I use the TABLE method for HTML, I want to learn Tableless coding (Div based). Can anybody suggest me Few Best sites for learn Div Based Coding. ...

Eclipse Basic Web Development?

I want to start doing web development with Eclipse. Not Java, tomcat, axis2, or anything else anymore complicated than basic XHTML / JS / CSS development, at this time. Problem 1: I realize that it can edit those files, but its trying to manage my HTML docs as part of "my workspace", and all I want it to do is manage the files as part...

How to fix unwanted overlap of windows,JS ?

In my website I have a question/anwser script where you may anwser questions posted quite like you are using now, but when you click over 1 question it shows the anwser boxes for all of them and I do not want that.I want it so it quits the other Anwser boxes and shows the right one without any overlapped windows. Example... http://bcsy.h...

How do I make an html radio button display as selected at launch time when the stored value="on"?

Hi guys, Using Javascript and html: I have a list containing radio buttons that is dynamically loaded at launch time based on stored data. Even though the stored value of the radio is "on" the radio at launch does not display as selected. I cant figure out what I'm missing. if (defsales !== undefined) { $('.defsales', newRow).val...

I'm trying to get my website to display who's logged in, (i.e Hello Mike, or Welcome Mike) in PHP

as above when a user is logged into my website, I want it to say hello or welcome "user" i'm using the code below: [code] <?php $user = $_GET['session_is_registered']; echo ('$user'); ?> [/code] but the php just displays "$user" what am I doing wrong? thanks ...

Lightbox scrolling issue with IE7 & 8

The lightbox that i am using works great with all browsers except for IE. In IE, its giving me triple scrolls. http://obliqueinteractive.com/demo/monster/ CSS code for the iframe: #wrap { float:left; width:800px; height:500px; overflow-x: hidden; overflow-y: scroll; } #content-wrap { float:left; width:700px; padding-left:50px; } Why...

Hide Radio Button but Show Label?

Hey guys I'm tryng to hide radio button while showing label image. <span id="js" class='info'> <label><input type="radio" name="vote" value="0" size="<?php echo $row['id']; ?>" onclick="js(this.value, this.size);" /><img src="something.jpg"/></label> <br />No: <label><input type="radio" name="vote" value="1" size="<?php echo $row[...

Why doesn't SVG work on local HTML files?

I'm confused. If I point by browser (Chrome or Safari on OSX) to this web site, it shows all the SVG perfectly: http://emacsformacosx.com/ Now, if I view source on that page, copy it, and paste it into a new HTML document on my desktop, then view that with either browser, I get no SVG at all. Why the difference? Why does SVG work on...

What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState?

What is ViewState? How is it encoded? Is it encrypted? Who uses ViewState? ...

Whats different between including and addressing a javascript file

Whats Different between <!--#include virtual="JS.htm" --> //note that in this method all JS files imported like below in JS.htm and <script src="myjavascript.js" type="text/javascript"></script> ...

How do I create a single-click upload control for a web-app using JS/HTML/CSS/PHP?

I know how to do the traditional "Select File..." and then "Upload" mechanism for uploading files. I would like to know if there is a way to do this using single input control. Part of the motivation for this is that nobody selects a file without wanting to upload it, so why should people have to two-step the process? I know that there ...

Jquery datepicker css problem

Hi, I have a problem with the CSS of the datepicker, I downloaded a default template for the UI, but it's different when I use it on my page. I've read that the template uses em so that the size is relative to my page. What can I do to make it the size of what is in the demo without changing the css in the theme that I downloaded? ...

What Happen If ViewState Disabled

I have a large application which Just afew Pages of that uses ViewState. I want to know whats happen if I Disable ViewState in MasterPages and enable it in pages which really using it. ViewState Contents are too large in my application and cause to in crease page size. I want to reduce page size with disabling ViewState, Is it a good s...

PHP DOMDocument, finding specific tags

I'm looking to find a specific attribute of a specific tag in an HTML document using PHP DOMDocument. Specifically, there is a div with a unique class set, and only a single span inside of it. I need to retrieve the style attribute of that span tag. Example: <div class="uniqueClass"><span style="text-align: center;" /></div> For th...

All About.... Z-Index?

This property make me confuse. well.. i searched in google: What is the z-index? The z-index property specifies the stack order of an element. An element with greater stack order is always in front of an element with a lower stack order. Note: z-index only works on positioned elements (position:absolute, position:relative, or position...

Website design question

Is it too confusing for users, to have the right sidebar on your main page, and on all others left sidebar ? Thank you ...