html

iPhone uiWebView - 'didImageWasClicked' like event?

Newbie Question. I have a UIWebView that I push HTML code into. In the HTML code is an image. Is there a way to get informed that image #3 or image with name 'bob' was touched ? Some event like 'didImageWasClickedAndHereIsTheIDOfTheClickedThingy' perhaps? ...

how to download local network file via browser

Hello exprts I want to give a link of network local file in browser, where users can open from there. link would be like this file.xls In IE6,7,8 it doesn't work. Any idea ? ...

Is there an easier way to add menu items to a wordpress navigation menu?

I'm new to Wordpress or CMS's for that matter but I'm used to the way Joomla's menus work. I have downloaded this Wordpress theme that had a navigation menu with 4 pages. So I thought I'd create a new page and select the main page as the parent. But after I go to the site the navigation doesn't show the link to the page. So I took a lo...

Problem using the JPlayer audio player.

I'm trying to use the JPlayer (http://www.happyworm.com/jquery/jplayer/) jQuery plugin and having some trouble using it when it falls back to the Flash SWF. In that case I hit an error m.fl_play_mp3 is undefined which I've traced back to possibly a problem with the path to the SWF file. However, I've put the full path to the SWF direct...

Changing the highlight color when selecting text in an HTML text input.

Hey folks! I've been looking for this throughout the web and can't even find anyone else even asking this, let alone a solution... Is there a way to change the color of the highlight area within a a text input when text is selected? Not the highlight border or the background, but the portion that appears around the text when you have t...

Weekly view built on HTML/AJAX/JQuery

Any recommendations on a good eye candy HTML/JQuery/AJAX weekly view that can be taken for use? ...

Using TinyMCE for sites with a dark background

I'm using django-tinymce in my Django website. Through the admin interface one can edit a SimplePage object which has a tinymce.models.HTMLField. The website visitor will then see the html rendered in the content area of the page. Problem is, the website itself has a dark background, and the TinyMCE textarea has a white one. By default ...

Change number of HTML Input fields with Javascript

Hello. I'm working on an HTML form that will post data to my Webserver for storing into a database. I have no problem with the PHP and SQL code, but I want to have a small feature on the client side form: There is to be a dropdown (select) that asks how many rows of a certain type you want. Then, a small JavaScript should produce these...

Designing/Implementing MVC from Scratch

Hi, I want to create my very first web app using HTML, MySQL, PHP and the Model View Controller. It will be very simple for starters: a couple of pages that allows users to input/delete data to/from the database and display the contents of the database. However I am new to MVC, and I really wish I could have found MVC tutorials approp...

Button Style has thick border on page load when multiple buttons are on a page.

Hello, this is my first question asked here a stack overflow. I have a problem that has been bugging me for a bit now. When I have a page loaded with multiple buttons on the page the first button in the HTML Markup seems to get this think border around the button. I'm sorry if this has been asked before but I've read many forums that ...

Farsi/Arabic number to be outputed properly.

Ok, may be you think this dup question but I swear its not. lol You have a file that outputs as such: <div id="first">1</div> 2 <div id="third"> <? $i = 3; echo(i) ?> </div> Which outputs: 1 2 3 Now if I want to have an output as below: ? ? ? Well, I was hoping I could put Arabic/Farsi version of 1,2,3 instead of '?'. This ...

HTML/JS/CSS Isometric Grid with semi-transparent click-through tiles

Hi. I'm trying to create a web app/game that uses a side-on 'isometric' view and transparent tiles. I can display them ok (but not great) using a PHP formula that just sets each div (each tile) as position:absolute and set the top and left parameters. The problem is how do I catch clicks on a tile and let tiles with transparent bits clic...

How do you force line breaks between words only in css/html?

I have just a regular piece of text in a <p> tag inside a <div> tag. But only Firefox displays it correctly. Firefox breaks the lines between the words. All other browsers break the line mid-word which makes it difficult to read. Here is an example of what I mean: Firefox (working): This was busy in it was I was here. Let him as bei...

jquery , selector, find, text

Hello! I have one very interesting question (for me :) ).. I'm using jquery and I want to find in HTML the first tag after my reference one . For example my HTML : <a href="#" class="A" >A</a> <table> ..... </table> <a href="#" class="B" >A</a> <table> ..... </table> <a href="#" class="c" >A</a> ...

Posting a link as Submit Button

<form method="POST" action="auth/signin"> Username: <input name="username" type="text" value=""/> Password: <input name="password" type="password" value=""/> <a href="auth/signin">Log In</a> </form> How do I post the parameters when the "Log In" link is clicked (instead of using the submit button)? ...

How to change to color of a link with mouse over effect?

I have a link in blue color. I want to it to be in black color. Then when a person rolls his mouse over it, it should change to black link with the underline. ...

How can I implement Stack Overflow-like watermarks in forms?

Hey people. I remember seeing a tutorial somewhere that talks of how to style your input forms in a more “usable” way. Essentially, you have a placeholder value and when you enter the input, it hides the hint so to speak. Now, just to be clear: I don't want the hint (placeholder value text) to disappear on focus, but rather to go ligh...

What is the actual meaning of seperation of content and presentation?

What is the actual meaning of separation of content and presentation? Is it just mean to avoid inline css? Does it mean that the design should be able to manipulated without chaning the HTML? Can we really make any change in design from CSS only? If we want to change the size of images then we will have to go to in HTML code If we w...

Slicing or some other way to only write part of a Spry XML record

I'm trying to import items from a XML RSS feed and use Spry to show recent blog posts in a blog on a site. It works fine, but I want to show just the first 30 characters followed by an ellipsis. I can't seem to find a way to shorten the spry element since in the region, {description} will not be evaluated before the surrounding code so I...

How t make a href="#top" from iframe to parent window

hi I using parent window and one iframe my html code is given below Page1.html <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>New Page 1</title> </head> <body> <a name="logo" href="Page2.html">dsd</...