I have an input text element being used as a jQuery UI datepicker with a custom date format. The date format allows months to be entered in as JAN, FEB, etc and so the constrained input allows all characters to go through. See this question.
How can I restrict the text entered to match my date format "dd-M-yy"?
Is there a way to use jQ...
Warning: This may be a very stupid question...
I'm currently using <A> tags with jquery to initiate things like click events, etc.
Example is <a href="#" class="someclass">Text</a>
But I hate how the '#' makes the page jump to the top of the page...what can I do instead?
...
I have a website, where I am trying to use Ajax to update some stuff on the page without reloading it. However, there is a good chance that many of my users will be using mobile browsers that don't support Javascript so I am trying to design the page with meta refresh tags, that somehow work only for users without Javascript. Is there an...
I am planning to use a big banner image in my website(976X450).Now in higher resolution monitors the image should stretch to occupy the space. Is there any way to do this with out using different images for different resolution?
...
I'm trying to open up a new window for a chat room on our site. I have the chat room's dimension set to 750px x 590px. This is the link I have to open up the javascript pop up.
<a href="javascript:void(0)" onclick="window.open('http://gamersunite.coolchaser.com/message/gu_chat','gu_chat','width=750,height=590')">open chat window</a>
...
i am think i am using similar code i used b4 but seems like the fonts aren't loading
<html>
<head>
<script src="http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:extralight,light,regular,bold"></script>
<style>
h1, h2, h3 { font-family: "Yanone Kaffeesatz"; color: red }
</style>
<...
I have a small html code base that produces a list of unique links, I want to get each an every link's text value using java script (not the link only the text).
my sample code (doesn't work)
for (var x = 0; x < document.getElementById("folderLink").length; x++) {
alert(document.getElementById("folderLink")[x].innerHtml);
}
H...
I have a jQuery code that works when I insert it inside a script tag within the body. But it doesn't work when I insert it in the head tag or include it as a js file.
...
I was able to disable vertical scrollbars in a grid by setting the CSS property overflow-y: hidden. However, this removed the ability to scroll the contents with the mouse wheel as well.
Is there a way to not show the scrollbars but still allow the contents to be scrolled through mouse wheel or arrow keys?
...
i have a java-script function (in my html page) that uses active code. i searched in google and found out that i need to implement IObjectSafety to my webpage in order to stop the activex propmt saying "Active X control on this page might be unsafe to interact , Y/N ?" .
...
I wonder what would be the best way to catch the font size visible to user in IE. I cannot depend on size related html tags, because they are not inside the html page source code. Somehow I need a way to capture the font visually on browser and determine the font size.
What would you suggest for this?
...
I got a star rating js from http://nofunc.org/AJAX_Star_Rating/
this js works with two colors only,red and blue.
When a person moves his mouse on stars then the original rating gets hidden and new rating is shown on mouse move i.e. if we move our mouse on stars then we cant see the original rating unless we move our mouse away from sta...
Hi!
I got a kind of admin-panel where I want to be able to change customers order status live without refreshing or changing page. I have figured out that I need to use Javascript, AJAX or jQuery for this but since I have no experience for that and have no time to learn all that I'm asking you for help to achive this.
My code:
<form>
...
One of my clients would like a No Copy Script on there website to prevent people copying the text off the page. Is there a cross browser way you can do this? I would probably just look at a JavaScript method. I know this can be turned off by people with a bit of knowhow but will do for most cases.
...
Hi all
I've got the following HTML which has been looped around in smarty template language:
<td><input type="checkbox" name="confirmRelated[{$relatedIP.ipInt}_{$relatedIP.patternID}][confirm]" /></td>
<td><input type="hidden" name="confirmRelated[{$relatedIP.ipInt}_{$relatedIP.patternID}][ipInt]" value="{$relatedIP.ipInt}">{$relatedIP...
what's the best way to force DIV to fill specified width?
I have the following code that generates and assign width to DIV:
function createLabel(str) {
var textDiv = document.createElement('div');
textDiv.style.width = '200px';
textDiv.style.display = 'inline';
textDiv.appendChild(document.createTextNode(...
Please have a look at the following page:
http://www.eddale.co/general/on-reception-the-iphone-4-hysteria-the-real-lifelab-test-conundrum
I want to create a similar form like the one always sticking to the bottom of the page in the link above ...
how do i do this?
...
I have a long text field and what I want to do is that when a user types an '@' character a list of users appear just like a typical auto-complete. However I want the list of users to appear below the '@' character which could be 20-30 characters in from the start of the text box.
I've found many jQuery auto-complete plugins but none t...
I have three buttons inside a td element. Now all the buttons are being aligned vertically. How can I align them horizontally without using nested table.
...
I have downloaded a web banner. I want to put it in my project, certainly at the top side. How do I do that?
...