html

Safari 5 HTML Iframe not working properly with URL + Params

Hi all, I have an URL in IFRAME with parameters like this: <iframe src="http://www.example.com/id=123&amp;place=123"&gt;&lt;/iframe&gt; Works perfectly on FF3+, IE6+ (believe in me) and Safari 4, but in Safari 5 is different. S5 changes the URL to http://www.example.com/id=123 &amp; place=123 Someone knows how can I do a workaround...

Is there a clean HTML way to relate a key press to a dropdown item

I am working on an application in which I want to allow for quick data entry. So I want to make a date field selected by int month value (ie 7 = July). I think I only have 2 options. Prepend the number to the Month (1 -- Jan, 2 -- Feb, ... etc) but this is Ugly Use JS or jQuery to intercept key presses and select the appropriate mont...

slidetoggle, goes to top of page after selecting link

I have a div slide down when you click the link <a href="#" id="related-courses">Related Courses</a> <div id="related-courses-section"> <p>Content</p> </div> $('#related-courses').click(function() { $("#related-courses-section").slideToggle(100); }); CSS set to display:none; for #related-courses-section (to hide it by default) It...

You must have JS enabled message?

What's the best way to implement a "you must have JS enabled" message? My site simply won't work without JS at the moment. Should I use the <noscript> tag? Should I hide the entire page's content, put a message about needing JS enabled, and then hide the message and show the content with JS? -- This might cause the message to be tempor...

Html newsletter in gmail

Hi, Im coding html newsletter and faced up with strange thing in gmail. Code: <table cellpadding="0" cellspacing="0" width="700" height="122"> <tr> <td valign="top" colspan="3" width="689" height="8"><img src="http://www.url.com/img/product_top_border.gif"&gt;&lt;/td&gt; </tr> ...

Extract cell index of clicked HTML table using jQuery - Please help!

Hello! I am looking for a way to do the following with a normal HTML table using jQuery. Extracting the index of the clicked cell and the index of the row it belongs too. Highlight the selected cell and remove the highlight when it is clicked again. Keep track of which cells that are selected so that I can save them into a database. ...

dynamic html forms

I am working on dynamic form. i have a radio button, if a user select a radio button, i want to populate a drop down menu based on the radio button values. eg. if radio button value=value1 show drop menu of 3 items (apple, banana, mango) eg. if radio button value=value2 show drop menu of 5 items (apple, banana, mango,apricot, ornag...

Page not validating because of xml in a script tag

I'm trying to get a page to validate (http://validator.w3.org) and it complains about some xml I have inside a script tag. How can I resolve this? Am I supposed to have something around the content of my script tag saying "don't look at me"? Line 68, column 114: end tag for element "STR_PROCESSING" which is not open >Proces...

Load HTML - Command line

Hi, I have a PHP script that dynamically creates a HTML file. In command line, I would like to load all elements in the HTML file. So let's say the HTML file has these elements: img src="http://www.test.com/image.php" ... iframe name="xxx" src="https://www.abc.com" ... I would like the Web servers test.com and abc.com to actually rec...

hCard address with a 'care of' (c/o) element

Say I've got an address like this: Foobar Widget Team c/o ACME Widgets Inc. 123 The Drive Someplace Town BN1 1AB I want to mark this up as an hCard but I am not sure what class names I should apply to the two organisation names. Foobar Widget Team might be a group of employees who get together and run a local football team,...

Changing the URL facebook displays for a shared page

How do I keep the URL of the content facebook is sharing the same, but change the URL that facebook displays via the Share button to something of my choosing? ...

Click tracking on telephone links for BlackBerry Devices

I'm trying to add click tracking to a telephone link on one of my pages. These links are in the form of <a href="tel:5555555555">call me</a> So my click tracking happens normally by sending the user to an intermediate page that tracks their click and sends them on to there intended url. This works beautifully on the iPhone and Android ...

HTML email newsletters using anchor tags and hover

Is there a way to make anchor tags have no underline as default, and then have an underline on hover that works in Outlook 2007 for an email newsletter? I've tried multiple ways such as declarations, inline styles, etc. Can't get it to work, anyone have an idea or is it not possible in Outlook 07? thanks ...

Finding a string that is split by multiple html tags

I am using Xpath to find a list of strings in an HTML document. The strings appear when you type into a text box, to suggest possible results - in other words, it's auto-complete. The problem is, I'm trying to retrieve the whole list of auto-complete suggestions, the results are all split up by <strong> tags. To give a couple examples...

Highlight text between form inputs?

I have a form that is validated by js when the user submits it. My code detects empty and invalid fields (ex 1 number in phone number is obviously an invalid phone number). I am asked if i could highlight fields missing or in error. I think this would be cool IF i can do it automatically. With HTML like the below how can i make name, ph...

How to read data from a Google spreadsheet for an android app

Hi all, I have a public google spreadsheet with some data in tables. I'm developing an android app which I want it to read these tables and then make a listview with the fields on the spreadsheet. Which will be the best way to do that? Thanks! ...

jQuery - disable input field based on another field selected value

I'm searching for a jQuery plugin that does this. for example: <label><input type="checkbox" depends_on="foo=5" name="boo" ... /> Check </label> <select name="foo" ... > <option value="5" selected="selected">5</option> <option value="15">15</option> <option value="25">25</option> </select> so the checkbox would only be enabled ...

HTML just cannot get focus instead of disabled

Hello, I am currently trying to see if there is a way to not disable an input but not allow the input to get focus. I am doing this because I still need the backend to retrieve the data but just not allow the user to certain times to edit the input fields. Since disabled doesn't return data to the backend that doesn't work. The way I am ...

How to style HTML to display 2 data cards to a printed page?

I have an input document of XML data that will resolve nicely into data cards that can be printed 2 to a page (or maybe 4 to a page, or 9 to a page, or something). What's the best way for me to style the data for them to be printed that way? For example, how can I say "Make this div extend 1/3 of the way down a printed page"? ...

How can I *make* this image refresh after it is uploaded

I am permitting administrative staff on an ASP.NET web site to upload pictures of themselves for display to the users of the site. It isn't hard: just use basic file uploading controls: <img src="<%#ImageFile%>" border='0' width="150" alt="" height="150" /> <-- Displays the image <br /> <br /> Upload Picture: <input id="myFile" type="f...