html

How to set image Tag URLs programmatically inside of an ASP.NET ListView Control?

I know how you can set an tag's url attribute programmatically in c#, but it seems when I try to access the image element inside of a tag I cannot access it. The is residing in the <AlternatingItemTemplate>. NOTE: I am only having this issue inside the <AlternatingItemTemplate> Now the ListView tag is also databound.(this is probab...

Why can't I use relative URLs with IE7?

Hello everyone. I've been Googling for a while and can't seem to find an answer to this question. My problem is as follows: For my jquery, I need my links to be relative rather than absolute. My PHP is set to return relative urls and everything is working fine, until I test it in IE7. For some reason, IE7 keeps changing my relative urls...

Center footer fixed at the bottom IE

I am coding a web interface for a University project and I have been dealing with this issue: I want my footer fixed at the bottom so it is in place no matter which screen I am using or if I toggle the full screen mode It works in all the other browsers except IE7 (I do not have to support previous versions) HTML <div id="me...

sanitizing html user inputs in php codeigniter

I have a user form where users can post comment on articles. i need to allow strong, em and span tags for user inputs. I know this can be achieved through strip_tags function but i also want the other tags not to stripped but be changed using say htmlspecialchars function so that tags can be seen in the page. I hope it made sense. ...

download part (one element) of a HTML page?

Is it possible to only download one part of a webpage, so like one element and its sub elements. If it is how would you do it in objective C? ...

Using window.open() or a hyperlink with a _target attribute, is it possible to force a link to open in a new window rather than a new tab?

Or is that strictly dependent on the web browser's settings? ...

Using document.write in event handler?

I am experimenting with HTML and JavaScript. The following code should print something when entering a keystroke in a textbox: <html> <body> <input type="text" id="commandInput" name="command" size="50" /> <script type="text/javascript"> var commandInput = document.getElementById("commandInput"); ...

jQuery works on local host, but not on website

Using Notepad++ and XAMPP to test stuff, then I upload it to the website over FTP. In the head of my code, I have this to call jQuery and the script: <script type="text/javascript" src="/jquery.js"></script> <script type="text/javascript" src="/portfolio.js"></script> and it works fine locally on my XAMPP server. But as soon as it's...

POST and multiple submit buttons on form (iphone)

NSString *reqURL = [NSString stringWithFormat:@"%@/login",SERVER_URL]; NSMutableURLRequest *req = [[NSMutableURLRequest alloc]initWithURL:[NSURL URLWithString:reqURL]]; [req setValue:@"application/x-www-form-urlencoded" forHTTPHeaderField:@"content-type"]; NSData *myRequestData = [NSData dataWithBytes:[@"username=whate...

PHP - Removing the effect of HTML tags in string - BUT displaying them as well?

Hi. Consider strip_tags() . strip_tags("<b>TEXT</b>"); Output: TEXT But what if i want to nullify the effect of the tags but display them as well? Output: <b>TEXT</b> Would i have to use preg_replace() ? Or is there a more elegant solution available? Thanks :D ...

Passing password value through URL

OK I see a lot of people asking about passing other values, URLS, random stuff through a URL, but don't find anything about sending a password to a password field. Here is my situation: I have a ton of sites I use on a daily basis with my work and oh about 90% require logins. Obviously remembering 80 bajillion logins for each site is d...

JQuery tools overlay opens at the top of page instead of overlaying in IE, works fine in FF/Chrome

Here is the sandbox version of my site: http://truxmapper.appspot.com/ To reproduce the error, hover over to the toolbar and go to Support --> FAQ. In Chrome/FF, this will work as expected. In IE, the background image will quickly move to the center of the page, but when its time to insert the div over the background image, its inser...

Cascading Dropdown List

I am working on a web app and trying to code a form with two dropdown lists. The list in the second dropdown will be dependent on the selection from the first one. The task itself isn’t too complicated except that once the first selection is made, I need to make a database call to pull the data for the second dropdown. This is where I...

Javascript not executed when iframe added to document?

It seems that adding an iframe to my html document prevents Javascript from being executed. In the following code sample the alert will not be shown: <html> <body> <iframe src="http://www.google.com" /> <script type="text/javascript"> alert("test"); </script> </body> </html> What...

How to Implement Grep into CGI script Please?

Hi all! I am having difficulty figuring out how to implement grep into my CGI script. Basically I will receive a value of eg. 1500 from a HTML page. The CGI script then runs and compares 1500 to a text file. When it finds 1500 it prints the entire line and displays it on the webpage. I would like some tips and pointers on how to do ...

textbox disappears in paging - php

i'm calling the search.php page via ajax to search.html. the problem is, since i've implemented paging, the textbox with the search keyword from search.html 'disappears' when the user clicks the 'Next' button [because the page goes to search.php which has no textbox element] i'd like the textbox with the search keyword to be there, when...

Making buttons - <button> or <div> ?

Hi, I'm wondering what html element to use for buttons on a web page - I'd like to style my 'buttons' like twitter does. For example: http://twitter.com/twitter the "more" button at the bottom of the tweet listing - is that a <button> element, or a <div> element? I'd like to know which to use. I think for either <button> or <div> we c...

How can i make a image to fit

Can someone help me please with my problem. I dont know very good about html i have found some code to solve it but i cant use them i dont know where exactly to form them. I want to make the imcage fit to each users resolution and dont appears right and down of their screen white boxes. I want to fit 100% in window. I hope you understand...

html css image alignment

Hi All, I have a question regarding image alignment with CSS. For example I have created a css class as below: .link { background: url("images/image1.gif") scroll right; } and below is the markup <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> <meta http-equiv...

Embed FCKeditor in python app

I have a python application which need a gui HTML editor, I know FCKeditor is nice, so how to embed the FCKeditor in a python desktop app? ...