html

Detecting HTML code in XML file in XCode (iPhone)

There's this XML file for an RSS feed which has a body: <description> <div> <img width=120 src=&#039;http://enjoythebest.ph/photos/news/150/57_1_100204125514.jpg&amp;#039;&gt; </div> <![CDATA[Hey come to Manor tomorrow night yo! featuring performances by BEATPHONIK X ADDLIB with KABAYAN KRUMP MOVEMENT an...

Trouble moving Inline Javascript to the very end of my html file.

Is it possible to move a remote inline javascript widget to the very end of my html, and then, once the DOM is ready, inject the widget inside a specific element. I see inline javascript as a candidate for poor performance. Thanks in advance. ...

How to dynamically plot various graphs

Hi All, How to dynamically plot different graphs using javascript in html pages. At runtime the value will be got from some function. Also comparison of different parameters to be done. Please help me out. ...

redirect a user accoding to his browser

Hello, I have a customer that requires a flash intro in the index page, what I would like to check if the user accesses from a mobile phone, and if so to redirect the user to the main page without the intro. All help is welcome, Adnan ...

Div above div positioning using CSS

I have this code that I don't really understand why it works: <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> #divWraper { position: relat...

echo javascript with single quotes

hello i got this thing <? if (mysql_num_rows($say) == 1) { $a = "cicişsin!"; } elseif (mysql_num_rows($say) == 0) { $a = "<a href='javascript:LaunchPopup('a2.php','250','1');'>ciciş yap</a>"; } ?> but i cant echo second $a.. its exits at "javascript:LaunchPopup(" single quotes not shown what can i do? ...

problem with image scaling in safari for fluid design

I'm trying to make a fluid website where you can see the website full screen on different size monitors, for images I'm using height:100% and Width:100%, everything looks ok in firefox,IE8 but in Safari and Google chrome the image gets distorted,does anyone know why this happens? thanks <div id="main_wrapper"> <img id="main_bg" src="...

Add event to button with javascript

Hello! In this page there's a way to dynamic add html (textbox,input button and radio elements with javascript my questioon is how can i add an event to the button, imagine that i only want create the button, not the textbox or the radio element. UPDATE I'm having problems here... I have tried some of the solutions provided but it ca...

Scalable Background HTML CSS Javascript

Hi there, Does anyone know of a way to have a background image scale to the dimensions of the browser window it is in? I know CSS3 allows for background width, but I need something more compatible. Many thanks, Elliott ...

ASP.Net ImageButton stealing Enter key press

I have an ASP.Net page with a usercontrol on it. The submit button for the page is within the usercontrol. There is an ImageButton on the page itself (outside of the usercontrol). Whenever I hit the enter key to submit the form, it always executes the ImageButton click instead of the submit button within the usercontrol. I'm using a Mas...

How do you add drag-n-drop upload ability from Outlook to a Web form?

I am looking for a way to allow users to upload Outlook emails to a web-based system in a simple manner. I can get this to work in a manual fashion for the users. They can drag and drop the email from Outlook to their desktop, which creates a .msg file. This works very nicely, esp. if there are attachments in the email which are als...

Divs, float and align, need some help.

Hi all, I have this nightmare of code, <div style="height:46px;"> <div style="text-align:left;float:left;"> <img alt="Document Logo" src="Images/img1.gif"></img> </div> <div style="text-align:left;float:left;margin-top:5px;margin-left:13px;"> <font size="4"> <b>title (needs to be align to the left,next ...

How to insert new line in the div, which displays changes in texterea with jQuery

Hi, I have a textarea in the form, and I need to see what I type there in the separate div like on this site, when you post qestion or answer. In the textarea I got text from new line when pressing enter, but in the div text stays in the same line. How can I go to new line there? I'm using this: <script type="text/javascript"> ...

Cannot get Favicon.ico to display

Hey guys, I have copied my favicon.ico file to my Apache document root. I had to add an Apache Rewrite exception for it and now it is accessible from www.example.com/favicon.ico. But when I hit my main URL it does not show up. I thought all you had to do was copy the file with the correct permissions into the doc root? Do I need t...

Is the fact that parent collapses when child/children are floating a bug, or is it intentionally?

is the fact parent collapses when children are floating a bug? If so why are newer browsers not fixing it Is it intentionally? for what good reason? I know at least 6 solutions to get around this issue, I am only asking if this is a bug or not. Thanks ...

Prevent Background Scrolling When Displaying Popup

I have a form that is displayed in a popup. After loading, the background is grayed out, but the user can still scroll the background content up and down. How do I prevent the background from scrolling? Example here the 'email this quote' link to the right of the pdf screenshot. Thanks! Joe ...

Text wrapping under IMG vertical-align:middle not working

I am getting unexpected results when using vertical-align on an image with accompanying text. If the text is wider than the container, it wraps UNDER the image like this, instead of simply wrapping to the next line: My HTML is simple: <ul> <li><img .../> some text </li> ... </ul> I have a height and overflow-y:scroll on the ...

What in an HTML page is unique?

My question is about verification more than anything else. What can be used to determine what is unique in an HTML document? (The document can have a degree of being dynamic.) What is able to be used, or generated to recognize that a page is the correct page to an accuracy of say 99%, taking into consideration you can store a "fingerpri...

Viable selectbox alternatives to replace huge lists of items?

I'm wondering if there are any viable interface alternatives to using select boxes where there exists very large lists of data (1000+). For example, in my application, I have a form that shows the details for a single inventory item (it's a pretty basic inventory management application). When an inventory is shipped out, warehouse staff...

PHP won't echo XML child

Here is my code <form method="post"> <input name="hash" type="text" id="hash" style='width: 30%;'/> <input name="Crack!" type="submit" value="Crack!" onfocus="if(this.blur)this.blur()"/> </form> <?php if(isset($_POST['Crack!'])){ $hash = $_POST['hash']; $xml = simplexml_load_file("http://gdataonline.com/q...