html

how do i increase the size of this SVG?

http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg is it possible to increase the size of this map? ...

How can I get a <ul> to be evenly spaced across the content area it exists in?

I have a List that I'm using as a list of tabs: <div id="SearchForm"> <ul class="TabControl"> <li> <a href="/search/Funds">Funds (60)</a> </li> <li> <a href="/search/Companies">Companies (4)</a> </li> <li> <a href="/search/Groups">Groups (1)</a> </li...

Hide a table and change some text

I need to write a little Javascript to hide a table (by adding the hidden style class) and then change the text of the link to represent the state. The hiding part works but the changing of text does not. Here's the javascript... function toggle(idToHide, hiderID) { var element = document.getElementById(idToHide); var hiddenCla...

Anyone know about Rhomobile?

I read about http://rhomobile.com/ and I found this is great but I want to ask whether the application built with that would run in Browser or Natively on the device as this requires HTML and Ruby? ...

printing "<html>" using html

How to print "html" tag ( including '<' and '>' also) tag using html without using text areas and javascipt also ...

compare "array of words" against textarea with php

I asked this question yesterday: http://stackoverflow.com/questions/3495735/compare-array-of-words-to-a-textarea-input-with-javascript Now I want to do the same thing with php... Is there any easy code for this? Thanks UPDATE: I would like to test the textarea input against the array, and if match of bad words found, die(); Thanks ...

div ,get css attributes from java script

hey there i want to change some css attributes from javascript but i cant access css values for that div here is what i have in my css file #sidebar { float: left; width: 160px; padding: 25px 10px 0 20px; } #sidebar ul { margin: 0; padding: 0; list-style: none; } here is my html code for that div <div id="sidebar"> <%@ incl...

page size as screen size and scrollable frame inside

Here's the scenario: I have an asp.net webpage which displays dynamic data in a gridview. I'm using a master page to display the header and footer of the page, and this gridview is being displayed inside a div in the contentplaceholder. The Problem: What I want is that the size of the page that is displayed remains constant for a user ...

Short Question on Case sensitivity; Php

This tests a textarea input agains bad words... $bad_words = array('bad', 'words') foreach( $bad_words as $bad ){ if( stristr($posted, $bad) !== FALSE ) { $contains_bad_words = TRUE; } } Now is there any way to make this match 'bad', 'BAD', 'Bad', 'BaD' etc without having to write it into the array in all different cases (La...

connection beetwen html, js and cocoa by webkit

hi. i have cocoa app with embed webkit, which show simple html with <input id="first_name" type="text"> and <input id="start" type="button"> and i want this: when you click #start button, show up a regular cocoa NSAlert with #first_name value. Well, i need to somehow organize a connection between html,js and cocoa. it it possible? ...

nothing happens when clicking on my submit button no _POST values

Hi. For some reason nothing happens when a user click on my submit button. The html look like this: <td colspan="3"> <div align="center"> <input name="Decline" id="Decline" value="Decline" type="submit"> | <input name="Accept" value="Accept" type="submit"> </div><input name="place"...

window size - div inside td elements - scrollbars

I have following html <table> <tr> <td class='tclone' id='clone'></td> <td class='loader' id='loader'> <div id='tdiv' style="height:630px; width:835px; overflow:auto;"></div> </td> </tr> </table> I open this HTML in a new window and JavaScript append contents to tclone and tdiv. tdiv sp...

Edit HTML with returned jQuery html() content

I want to edit some HTML I get from a var I saved. like: var testhtml = $('.agenda-rename').html(); console.log($('input',testhtml).attr('name')); Also tried console.log($(testhtml).find('input').attr('name')); But i get undefined? I figured it'd work like an $.ajax, $.get, $.post? How else can i do it? ...

How to reset the style properties to their CSS defaults in javascript?

On a php generated page there are several elements like this: <td class="defaultTDStyle" style="color:userDefinedCustomColor" id="myTDId"></td> So there is a default style and I apply several extra styles that override the style defined in the CSS. Is there a way to remove these added styles from javascript? It seems the obj.style.co...

jquery, move an inner element to the first position?

Lets say you have a list of items: <ul id="ImportantNumbers"> <li id="one"></li> <li id="two"></li> <li id="topNumber"></li> <li id="four"></li> </ul> Every five seconds these list items get reordered. Using jquery whats the best way to keep #topNumber, at the top of the list during the reordering. ...

designMode or contentEditable on mobile safari

I'm trying to make an iframe editable in mobile safari. Works fine in all browsers (including safari) with both contentEditable and designMode=on, but on mobile safari i can't get any of them working. Is there a way to make it work on mobile safari? ...

Sliding menu problem

I have a navigation menu that has submenus slide down on hover. The menu is structured like so: <ul class='nav'> <li><a href='#'>About</a></li> <ul class='submenu'> <li><a href='#'>Stuff</a></li> </ul> </ul> etc.. What I did to create slideouts was the following: $('ul.nav li').hover(function(){ $el = $(this); $el.nex...

Simplest possible method: html break in XML doc.

I have a c program which outputs a number of lines to another c program which stuffs them in a PHP page which is loaded with AJAX. The problem is that the output is a number of lines, which is fine to look at, but which, when viewed as HTML, lack line breaks. The initial thought I had was obviously to put line breaks in with the output....

How to compare two elements without ids or classes jQuery

I am having a problem with matching elements in jQuery. Basically I have list items, and onclick I want to compare two elements to find out its position within the list, ie. <ul id="someID"> <li>something</li> <li>something</li> <li>something</li> </ul> // here is the script var row = 0, element = $('#someID > li:eq(1)'...

remove an html button using js

Hi I have a bit of code below that creates a button on a html form. When a user has entered some information using the button I want the form to reflect this by removing the button and replacing it with just plain text. I have tried getting the inner html and using divs but nothing is working can anybody help please? I am not looking for...