Hi,
I have used the following pattern for the regular expression for the phone number
pattern="[0-9 -+]+$";
The phone number may contain numbers, hyphen(-), space and plus(+). It works when i use numbers only. When numbers and alphabets are used it does not work.
What can be the problem, please do let me know.
Thanks in advanc...
using something along the lines of:
background:url(data:image/gif;base64,R0lGODlhIwAhALMAAAAAADQ0NENDQ25ubouLi6ioqLa2ttPT0/Dw8P///wAAAAAAAAAAAAAAAAAAAAAAACwAAAAAIwAhAAAIpQABCBxIsCCAAAYTKlw4cECCAQwjMnSY4KHEiwQpVrSIUaLGjRw7Kvy4EYEAkSNBljyJ0iDJiiZbulQJk6XMhjQTxLyJk+ZOngBe6rTJU+jPojmTKqXZc6nTpAKFPp0qsMDUqyoHWsWKleBWrk8LfgV5AKjYnGXNakWrdi3Nt...
Hello, I'm adding some new functionality to a Firefox plugin that is recording actions user does in the browser. The problem is, the click handler is a little bit broken - it doesn't add anything to identify a button if it has "image" type. I want to make it add a relieable piece of data to help identify the exact button user has clicked...
Hello, I want to change a Firefox extension. What I've done is found it in the Firefox profile folder, renamed the .jar to .zip, unzipped it, made the changes in a .js file (I didn't make a mistake in JS code), zipped it back and renamed to .jar. So now the button to start that extension has disappeared from the menu in Firefox :) What i...
I have fairly large script within an .svg file and I'd like to get it out of the CDATA section into an external file. How to achieve this?
The HTML regular does not work:
<script type="text/javascript" src="Track_animation.js" />
The documentation I have been able to find only concerns with JS embedded within the SVG itself. Is use o...
When right-licking on a HTML page in IE6 (our company standard), there is an option "Export to Microsoft Excel". Can this option be fired via javascript?
...
Hello,
I can manage to get values from mysql using select box in php, but i can't make it with two-level chained select box.
Anyone have some example code or idea for that?
Thanks.
...
Hi
I would like to count the number of calls made to eval in our javascript application.
I came up with the following, but it generates errors. These errors are hard to track, and my knowledge of the app is limited.
Can you tell what is wrong with my code ?
increment = function (){
var me = arguments.callee;
if (!me.count) me.co...
I need to dynamically set which id a javascript call uses, as I have multiples rendered on each page, I'm trying to use
<p id="add_rider_link_section_<%= section.id %>"><%= link_to_function("Add a Rider",
"Element.remove('add_rider_link_section_' + <%= section.id %> + '' ); Element.show('add_rider')") %></p>
It's failing on
"Element....
I'm making a jquery plugin to create 'spindowns', you can locate the project at http://github.com/c00lryguy/jquery.spindown.js
The plugin works perfectly, but the only way I could figure out how to save which elements were expanded was to save an array filled with the expanded elements inner text.
Now, there are obvious downfalls to th...
I am using the jqDock from wizzud.com/jqdock and I was hoping that someone here had some experience with it.
Here is what my dock looks like:
My first issue is that my client is INSISTING that the dock should fill the entire width of the page, but nothing that I change makes that happen. The dock stays the same width no matter what ...
Hello
I am facing the following problem: I have a HTML document where I want to print basic status/debug/etc messages.
So, the HTML document contains an empty pre-element whose id is out:
<body onload='init () && main();'>
<pre id='out'>
</pre>
</body>
</html>
The init() function assigns the pre element to a variable:
var out_d...
i have a javascript function
function alertMe(len)
{
var fu1 = document.getElementById("FileUpload1");
var fu2 = document.getElementById("FileUpload2");
var fu3 = document.getElementById("FileUpload3");
var fu4 = document.getElementById("FileUpload4");
var myCars=new Array(fu1,fu2,fu3,fu4)
var l=0;
...
I'm trying to get the html inside several elements like this:
<div class="option s12 pointer"><img class="fl mt2" src="http://web.iboomerang.com/icons/fff/magnifier.png" /> Trainings by date</div>
Is there a way to strip the tag (like PHP's strip_tags does) and leave only "Trainings by date".
Note: I need to avoid using functions li...
I'm allowing the user to select text contained within <div></div> and change it to bolded text. In other words from <div>this is some text</div> to <div>this is <b>some</b> text</div>. All is working except that when I change the div.innerHTML to this is <b>some</b> text, the <b>some</b> tags are shown to the user rather than being rend...
Why can't I use Array.filter() in Rhino?
The code is like this:
var simple_reason = ["a", "b", "c"];
print(typeof simple_reason.filter);
var not_so_simple_reason = new Array("a", "b", "c");
print(typeof not_so_simple_reason.filter);
Both cases output "undefined".
...
Possible Duplicate:
What do you use to minimize and compress JavaScript libraries?
Sometimes you'll see two different files like "jquery.1.3.2.js" and "jquery.1.3.2-min.js". The "min" version has all the whitespace and comments removed.
Is there a tool that will do that for me or do I have to do it manually?
...
How to rearrange javascript function execution order independent of include order.
A question that assists, but doesn't completely answer my question: Can you have multiple $(document).ready(function() sections? (The answer is yes, and they execute in the order that they are added to jQuery.ready()).
I am trying to make my javascript ...
I'm creating a style element like this :
function createMyStyle(selector , rule){
j$("head").append('<style type="text/css">' + selector + '{' + rule + '}' + '</style>');
}
Now, I don't want to create this element every time, but to find out
if this element was inserted already, and then use something like this to add my rules to ...
This is probably a no-brainer, but how can I make this happen:
var name = otherObject.name; //"string"
var o = {
name : otherObject
};
alert(o["string"].name);
Thanks in advance!
...