HTML Input field force numbers
Is it possible to create an input field that sets the default input character set to numbers on a mobile phone? For example to make it easier type in a telephone number into a HTML form. ...
Is it possible to create an input field that sets the default input character set to numbers on a mobile phone? For example to make it easier type in a telephone number into a HTML form. ...
I have a SELECT list that I populate based on the results of an ajax call, then select one of the options based on a previously set variable. This works great on IE8, but on IE6 it does not. Here is the original function: function LoadCategories(jdata) { var options = ''; for (var i = 0; i < jdata.length; i++) { op...
I created a method and pass the element type, id, and any inner text that instantiates a new html element. The last statement: Me.Controls.Add(element) adds it to the end of the page, but I would like it to be inserted in a specific position (between 2 divs within a form). What I am describing is very similar to this post on SO here, alt...
jQuery(function ($) { /* fetch elements and stop form event */ $("form.follow-form").submit(function (e) { /* stop event */ e.preventDefault(); /* "on request" */ $(this).find('i').addClass('active'); /* send ajax request */ $.post('recycle.php', { followID: $(this).find...
I had this idea... let's say I have a DIV that contains some text. <div id="myDIV">Testing testing lorem ipsum</div> If I change the content of this DIV by doing something like $("div#myDIV").html("New text New text New text New text New text New " + "text New text New text New text New text New text New text New text " + "New t...
Hey all, I'm working on a Firefox extension and am out of ideas on how to implement a floating button. I need a button that is overlayed on my page that I can show/hide and dynamically position just about anywhere on my page. I thought I could do something like a fancy CSS tool-tip except replace it with button functionality, but that i...
The alert is showing, but the value is not changing.... why? <html> <head> <title>Test EuDock</title> </head> <body > <label id="labelID">test</label> <script type="text/javascript" > document.onkeyup = KeyCheck; function KeyCheck(e) { var KeyID = (window.eve...
So there are a few things I want to do. I have a section of HTML that I would like to be displayed on the page by default (i.e. the first time it loads). <div class="viewport"> <ul class="overview"> <li><img src="images/1.png" /></li> <li><img src="images/2.png" /></li> <li><img src...
i'm trying to use page peal to hide my current tweets until it's hover'd over // for some reason, when the page first loads (( i'm using chrome )) the text displays until it's hover'd over. not really sure why.. here it is // any ideas ?? ...
I styled the <a> element as follows a:link {color:#FF0000;} /* unvisited link */ a:visited {color:#00FF00;} /* visited link */ a:hover {color:#FF00FF;} /* mouse over link */ a:active {color:#0000FF;} /* selected link */ In the following using Firefox, Opera, and Chrome <a href="mailto:[email protected]" >send email</a> All the c...
Hello. I apologize if the title of this question is a bit misleading, I could not come up with a better name. I got the following HTML: <div style="height:200px;overflow-y:scroll;"> <table>.....</table> </div> With this setup I'm somewhat mimicking the expanded <select> control with @size attribute defined. So, that a user could ...
I have some javascript which will create some sort of widget on a page. I will be giving this snippet to clients so I want them to have to do very little. The most obvious solution which I have work right now looks something like this: <div id="divContent"></div> <script type="text/javascript"> MakeWidget('divContent'); </script> ...
Supposing I have some random block of text in a single line. Like so Lorem ipsum dolor sit amet, consectetur adipiscing elit. But for whatever reason (width settings on the containing element, use of text-zoom etc.), on the viewer's screen it displays as two or more lines. Lorem ipsum dolor sit amet, consectetur adipiscing elit. or ...
Using the JavaScript sample found in this stack overflow post you can have a button that automatically selects a table. This selected table can then be copied to the clipboard. My users will be copying this data into an Excel template and do not need the header information (<th></th> or <thead></thead>). My table looks something l...
I'm building an auto-rotating image-carousel with jquery and I'm trying to get the images to rotate infinitely rather than when it reaches the last image, it 'rewinds' back to the first image and starts again. Unfortunately, I'm rather new at the jquery game, so I'm having some trouble getting this to work. I've tried piecing together ...
Each parameter in a URL can have multiple values. How can I separate them? Here's an example: http://www.example.com/search?queries=cars,phones So I want to search for 2 different things: cars and phones (this is just a contrived example). The problem is the separator, a comma. A user could enter a comma in the search form as part...
I have a web site that mostly displays images that contain text. It is heavy with JavaScript. In a noscript tag we have the usual "You must have JavaScript enabled" message followed by the text extracted from the image. My problem is that Google indexes the "You must have JavaScript enabled" message. So when you get a hit on my site, thi...
hey, i know there's lots of tutorials out there but none seem to be working for me. I have this : <textarea name="forum_link" type="text" style="width:630px; height:90px;"> [URL=http://www.site.net/video/<?=$_GET['id']?>/<?=$_GET['tag']?>]<?=$video->title?>[/URL] [URL=http://www.site.net/video/<?=$_GET['id']?&g...
Looking at many forums this seems to be the solution, however, it doesn't seem to work for me: function update() { alert("hello world"); var test = document.getElementById("<%=InCL.ClientID%>").value; alert(test); } and the asp/html is: <asp:TextBox ID="InCL" runat="server" Text="" value="" onchange="u...
On my website, I have a div beneath my header with some quick links. I am using http://davidwalsh.name/persistent-header-opacity to keep that div on-screen at all times. However, I want it to show at the top (position:fixed;top:0px;, but only once the original place has been passed. In other words, I don't want it sticking to the top ...