html

iphone contents of html>string

How do you load the contents of a local html file similar to this (simplified) <html> <body> some text and <p>'s and stuff here </body> </html> into a UIWebView on the iphone? The html code is stored in a .html file and the UIWebView is called contentLabel I have tried : [contentLabel loadRequest:[NSURLRequest requestWithURL:[NSUR...

IE loses automatic UTF-8 encoding in iframe form target

I have an odd problem in IE. It has to do with how IE detects the encoding of an iframe based on its parent content. My application wraps the content of a page in an iframe, and sets the encoding of the parent window to UTF-8 through the Content-Type header. The content of the iframe does not set the encoding through the Content-Type, an...

adding a Marquee in the middle of an ASP.net Page

I have an ASP.net page with dynamic content that are inside Controls, some of them custom controls and some of them regular ASP.net controls. Is there a way to get those controls inside a Marquee? maybe an HTML Marquee? These controls are mostly built in this sense: sometext sometext sometext etc. Thanks! ...

Wan to display pdf using base64

Hi Guys I want to display PDF in browser but the point is my pdf is stored in database in blob format I want to display it in client side using base64 I am using java as backend and GWT as frontend Please suggest me.. Thanks ...

Get the a part of content from NSString

Hi, everyone, I want to ask something about the NSString in objective C. I use the following code to retrieve some of the HTML content. NSHTTPURLResponse *response = nil; NSError *error = nil; NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&response error:&error]; NSString *data = [[NSString ...

HTML row table heigth on Firefox

Is there a way Firefox keeps the row height, so if data doesn't fill all the body heigth it keeps an empty space below last row? IE behaves this way, so all rows stay on the top. I want to code a scroll table with fixed header; sometimes there's not sufficient data on table content to fill the fixed table height. A sample code: <!DOCT...

Filling values in table cells in an HTML Page using Javascript

Hai, I have one HTML page with Javascript functions included in it. In that HTML page, I have a table with 2 rows and 2 columns. Also I have an array with 4 values. What I need is, when the user clicks on one table cell, a value from the array should be displayed inside that cell. Can any one post some sample code here? Thanks. ...

Linking to another page

Using HTML I want to use 2 checkbox, when i click the check box 1 then it will redirect to another page, when i click the check box 2 then it will redirect to another page. How to make a code in HTML Need Code Help ...

How to make HTML file upload control to select dialog only image file types like jpg,png etc

i want to select only image files only ...

IE cross browser compatibility problem.

i have a problem in using IE. Everthing is good in using firefox but IE 6 seems to be creating more trouble for css. so i used <![if !IE]> <link href="ie6.css" rel="stylesheet"> <![endif]> To fix a problem but it doesnot work. Anything wrong in this code? Because when i altered this css nothing has changed in IE. ...

Extra padding inside a div

Hello! I m having problem to determine from where extra padding is added to a div. The div containing the text "Video Title" has too much padding added to it. Which is very much unwanted. And i have no idea from where this extra padding is coming. I have added the styles, the html codes and the link to a page using this sample page. ...

Which is the better way of injecting javascript into my application?

Hi, Based on user's preferences I inject into my application a jason_encoded(translation array) which is later converted to javascript object and used by the application. Which, in your opinion, is the better way to do it? Solution 1: <head> <script type="text/javascript" src="lang.php"></script> </head> Solution 2 (code is execu...

Ruby: retrieve contents of URL as string

For tedious reasons to do with hpricot, I need to write a function that is passed a URL, and returns the whole contents of the page as a single string. I'm close. I know I need to use open-uri, and it should look something like this: require 'open-uri' open(url) { # do something mysterious here to get page_string } puts page_string ...

how do i show a jqueryUI at a dynamic location

I want to show a jquery dialog next to a button when its clicked. i have: <input type="button" name="test" value="i" onclick="$('<div></div>').html('test message').dialog( {title: 'Test Dialog',modal: false, width: 200, height:140, resizable:false});" /> i dont think I can make a function call within a json definition? I can get t...

How to open a network/file related webpage from a website itself

I have the following markup from my webpage(say test.html): <html> <body> <a id="link1" target = "_new" href="http://www.yahoo.com"&gt;Go to Yahoo</a> <a id="link2" target = "_new" href="http://www.google.com"&gt;Go to Google</a> <a id="link3" target = "_new" href="file://///server01/localWebPage.html">Go to Local webpage</a...

which html tags can use class attribute example: <i class="myclass">text inside</i>?

Hi, Which HTML tags can use the class attribute? (In which standards — e.g. HTML/XHTML/HTML5 etc. — and in which browsers.) For example, is the following legal or not? <i class="myclass">text inside</i> Thanks. ...

Multiple radio buttons naming problem.

Hi guys, i have a bit of logical problem here. I have a catalog of products that have unique ids and options that are displayed to the user through radio buttons. Now my problem is that a user must be able to select different options (from different products) and to submit them to a PHP script that handles this request (via POST). The p...

conditional statement for resolution?

I would like to use a conditional statement to attach a different stylesheet for: if the clients resolution is <= 1024*768 I'm pretty sure this is possible, but have never seen the code for it before? ps. I am not looking for a javascript solution ...

Jquery Showcase how not to return to the first item on finish

I have a bunch of images being shown using JQuery Showcase. Everythin works just fine except one thing - I need it continue sliding when after it shows last item - so it keeps going from right to left showing the first item etc after last item shown. Now it visualizes all the previous items sliding them from left to right to the first it...

HTML/CSS: How to make the sidebar and content follow each other

I need a way in HTML/CSS with code only, without javascript or images, to make a sidebar and a content to follow each other, so if I write more text in the sidebar the content's height will be equal to the sidebar's height but the text in the content will remain on the top of the content part and inverse too. ...