html

Combining Multiple page CSS into a single file

What if i combine all the CSS of the complete site into a single file. would it be cached by the browser or be reloaded every single time a new page is opened. the single css file contains different values for different pages. should i divide the css for different pages or keep it in a single file? ...

Can't work out why I can't format this text

Now, I could be being a bit thick and be doing this the wrong way, but in short, I have a dataset where I run a query to retrieve what a customer has ordered. Specifically, I've picked one with multiple items in for testing purposes. I'll spare you all the code but the specific bit I'm having an issue with is: <script runat="server"> ...

Localize images via css

The site I work on has a lot of images that contain text. This includes buttons and navigation. To support localization I include 2 css-files. One that has non language specific properties (font, colour ...) and one that has language specific properties. There is only 1 language specific file served to the user depending on his choosen ...

IE HTML Escaping

I have a little problem that's driving me mad. I have the following example code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <script> function Test() { document.getElementById("test").innerHTML = "<input type='text' value='ab&apos;cef'>" } </script> <...

How can I make dynamic text scroll on a curve in HTML/Javascript/CSS?

I'm trying to make dynamic text scroll on the page. I want it to scroll on a curved and angled surface just for design sake. Will I have to use flash for this? Because I'd rather not. ...

Safari: Ignoring a lot of CSS

We've began testing our site in different browser and all of them work fine, except Safari (Mac & windows). Edit: Removed url! On our page. The image doesn't float right, and the preface text is not bold. If I add style="float: right;" and style="font-weight: bold;" it works in Safari. The CSS for these elements are: .artic...

How to send more 5000 character to next page

Hi friends, I need to save a content into a file. The content is more than 5000 character. I cant able to send this through url as query string. Its showing Unspecified error. How to achieve this. I am using PHP here. So, i tried to send this content value's through ajax concept to another php file for storing. After a button click i wan...

jQuery Selector Help

Hey Guys, I am pretty new to Javascript and jQuery and getting a little confused with "Selectors". Now I am sure you are all gurus and will find this trivial, so hoping you can help. I have this HTML: <div class="class0"> <div class="class1"> <div class="class2"> <div class="class3">Field 1:</div> <label...

html layout issue when embed a media player

Hello everyone, I am using the following html scripts to embed images, text and video into one page. For video, I am using sl2videoplayer to render it (an open source silverlight media player). Here is the project's URL => http://sl2videoplayer.codeplex.com/. The current issue is, only the top part of video could be displayed. I think ...

Is there a good html parser like HtmlAgilityPack (.NET) for Python?

I'm looking for a good html parser like HtmlAgilityPack (open-source .NET project: http://www.codeplex.com/htmlagilitypack), but for using with Python. Anyone knows? ...

loop through $_GET results

Hi, If I had something like this: ?FormSub=Submit&qty=1&partno=ipod&notes=apple&unitprice=102.99&rowid=1&qty=2&partno=Ear+Buds&notes=Headphones&unitprice=45.99&rowid=2 Is it possible to loop through the GET's to return results into a HTML table and also add to a SQL table? Or would I need to add the rowid to then end of every $_GET ...

What is the purpose of the html file in silverlight web app?

Hi I have a silverlight web app, in the default.aspx there is nothing but when I change the silverlight XAML file, and load the main page it launches the silverlight changes into the default.aspx by itself. How does it know to do this? Is it something to do with the html file? I noted the html file has an object tag pointing to the silve...

Dropping the Unicode markers in Html output

I have a python list which holds a few email ids accepted as unicode strings: [u'[email protected]',u'[email protected]',u'[email protected]'] This is assigned to values['Emails'] and values is passed to render as html. The Html renders as this: Emails: [u'[email protected]',u'[email protected]',u'[email protected]'] I would like it to ...

Use jQuery to check if all div's are hidden

How would I check if all the div's with class test are hidden. And if they are all hidden set wrap1 to hidden. Thanks. <div id='wrap1'> <div class="header">Header 1</div> <div class='test'><a href="#">Test 1</a></div> <div class='test'><a href="#">Test 2</a></div> <div class='test'><a href="#">Test 3</a></div> </div> UPDATE: Thanks ev...

Having problem in puting JavaScript Menu into Asp.Net page

Hello everybody. Before I post my problem here, please be noted that i would really like to leave javascript and css for that menu as it is. Now to my problem. I have a menu in JavaScript that I am having a problem putting into asp.net page, I am having problem to produce the proper html to be more correct. I would really appreciate i...

How to create something in between a marker and infowindow with googlemaps api

I need to create markers for my map that contain html. After looking at lots of tutorials, it seems like markers are made of an image, and do not allow html to be added. InfoWindows half solve my problem, I know I can add multiple instances of them, but my problem is I need to be able to stylize them, and I don't want close buttons on ...

"Smart" way of parsing and using website data?

How does one intelligently parse data returned by search results on a page? For example, lets say that I would like to create a web service that searches for online books by parsing the search results of many book providers' websites. I could get the raw HTML data of the page, and do some regexs to make the data work for my web service,...

clone table row

How can i use javascript (i assume) to clone a table row like ive beautifully illustrated in the picture below? ...

Regex for unclosed HTML tags

Does someone have a regex to match unclosed HTML tags? For example, the regex would match the <b> and second <i>, but not the first <i> or the first's closing </i> tag: <i><b>test<i>ing</i> Is this too complex for regex? Might it require some recursive, programmatic processing? ...

Lightweight markup language for Python

Programming a Python web application, I want to create a text area where the users can enter text in a lightweight markup language. The text will be imported to a html template and viewed on the page. Today I use this command to create the textarea, which allows users to enter any (html) text: my_text = cgidata.getvalue('my_text', 'defa...