I have the following rails form (which works) but I want to remove the submit_tag and have the form submit as soon as a radio button selection is made. How do I do that?
<% form_tag({ :controller => "votes", :action => "create", :id => @item.id } ) do %>
<p>
<% for i in 1..10 do %>
<%= radio_button_tag :rating, i %> ...
I haven't done web development for about 6 years. I'm trying to get back into it and there is a lot of new stuff out there. I've chosen to write my next project with Perl and Catalyst.
I keep hearing about various JavaScript and CSS frameworks. I know very little about these frameworks so maybe this question is overly broad and ope...
I'm having a problem with some code I've written. I've had to anonymize it, but I can give the problem. This javascript runs inside an iframe, and is part of an object that gets instantiated. The problem in particular is that I get a repeating error every time that "Type 'Object' Cannot be converted to type 'Function'" in the invoke()...
Duplicate: http://stackoverflow.com/questions/205853/why-would-a-javascript-variable-start-with-a-dollar-sign
Ok, bit of a noobie question for you,
Got some help with a previous question and I encountered something new to me.
The code in question is here:
var $item = $(this).parent().parent().find('input');
What is the purpo...
Hi everyone
Here is a link: http://www.avineon.com/
Open this link see on the top. Four images are rotating.
I need something similiar using Javascript.
Is it possible by using Javascript.
Thanks & Regards
Ravi Kumar
...
I am creating a signup form in my website. I want to implement some checkup with username, which are
username can't have any space,
username can't have any special characters other than dot (.) as gmail is doing in thier signup form.
I am using jQUERY in my app, can anyone tell me how to implement above listed two checkups using jqu...
I have a small piece of javascript that I would like to use but need a delay before it's activated.
function sglClick(url) {
window.setTimeout('location.href="http://'"+url",1500);
}
This is not working and I'm really stuck here. Wish I knew a bit more javascript. Can someone please help?
Thanks
Here is what I now have
functi...
I have a flash video player sitting inside a div container. That is made draggable using javascript. I dont want it to be sensitive to dragging when the mouse is on the flash part. It should be draggable only when mouse is on the remaining div container. The expected behavior happens in Linux. However, in windows cursor on mouse makes it...
Hey guys,
I'm doing some animations and I want to implement something like this on the web. I was thinking that the HTML canvas can do this kind of job. Because I can scale part of an image. I just need the algorithm to actually make it work.
The effect is elastic, if the window is small, the greater the elasticity of the window when y...
I am storing time in a MySQL database as a Unix timestamp and that gets sent to some Javascript, how would I get just the time out of it? Ex. HH/MM/SS
...
I'm going to develop a firefox extension which adds a button beside the file input fields (the <input type="file"> tag) when a file is selected.
The file overlay.js, which contains the extension's logic, manages the "file choose" event through this method:
var xpitest = {
...
onFileChosen: function(e) {
var fileInput = ...
This is weird. I'm using the marker clusterer to bunch all my markers however the first time when the map renders and when I try to drag it or pan it - it hangs and firefox tells me the script is slowing it down so I have to stop the script. But if I zoom it out - it zooms normally and panning it from then on causes no issues - I have no...
I use jQuery jQuery.extend filter: for filtering items. When i use '*' for filtering, it is problem, because filter is case sensitive.
'People' and 'people' are two different strings.
'People' and 'people' filtered same items, but only when starting on this strings.
How I disable case sensitive for string, which start on '*'?
...
Let say I have this HTML code snippet:
<div id="container">
<div id="textContent">Text Content Te</div>
<div id="anotherText">Another Text Content</div>
</div>
I wonder how could I dynamically resized the div 'textContent' width so that its width fit its text content nicely (neither the text will be wrapping nor scrolling nor trunca...
How do I create a DOM element in JQuery and fade it in to show up, instead of having it show up immediately?
I try this:
var myDiv = "<div>Hello!</div>"
$("somePlace").after(myDiv).fadeIn('fast');
but this doesn't work, since the .after(myDiv) makes it popup immediately. Any solutions? Thanks!
...
I am beginner to html. I have two text boxes say t1 and t2 If t1 is filled with some data then then other text box t2 should be disable. Please let me know hot to do it. Thanks in advance
...
All Search engines I know of search text. I want to search for example for all the sites that use jQuery. Any creative idea on how to do that?
...
Often when browsing in Firefox, I'll right click on a link, and open it in a separate tab to view later, and go on reading the current page. When the link is a Youtube script, however, playback starts immediately even though the tab isn't active. Other video players (like fora.tv and TED.com) don't start playback until you activate that ...
Hi,
I am applying style to div using javascript it appears well at the first time but when I click an image to open a virtual window the applied css goes away.
How can I apply style using script that stays forever.
**There is no way left for me to apply any style at design time because I am using ready made user control and I get ID f...
I have an application with a launch page that needs to determine what is already opened, so it does not reopen things that are opened already in another new tab. In Firefox, I was able to make this work, by using window.sessionStorage to store the titles of pages that are open, and then use window.opener with the following code to remove...