Hello guys, I'm trying to put some style in the input=file aka uploader and I'm having a hard time with it, is there some NON FLASH solution (maybe jquery or even plain javascript)?
This was added to the page later with jQuery:
<input name="pdfRadio" id="pdfRadioNo0" value="0" type="radio">
This code:
radio_id = "pdfRadioNo0"
ie.radio(:id, radio_id).set()
does not set it but returns an error message:
Watir::Exception::UnknownObjectException: Unable to locate element, using {:id=>"pdfRadioNo0"}
Does watir also find radio butons that were added later?
This is windows 32bit XP SP 3 , IE 7, watir 1.6.5, ruby 1.8.6
Hi guys i previously asked a question and got a good solution. here is the question:
http://stackoverflow.com/questions/2536892/jquery-how-to-find-an-element-which-is-comming-2-elements-before-current-element
when im using the solution which i got :
paragrafheading.push($(this).closest('
h3').find(' h3').text());
im getting only [object Object] instead of the element text
I have json data being returned as a collection:
var foo = ["6", "7", "33"]
using JSONP in jQuery. Since I'm using JSONP, the data is being returned to a callback function, which is interpreting it as a string instead of a collection. Do I need to run eval(foo) on the string in the callback before handling it as a collection, or is there some other means of recasting it?
have an array of values [1,2,4] representing the values of a multi-select box, how do i set them as selected using either jquery or plain javascript?
thanks for your help.
How to give sentence case to sentences through CSS or javascript?
I've tried these CSS properties but these are different
capitalize Transforms the first character of each word to uppercase
uppercase Transforms all characters to uppercase
lowercase Transforms all characters to lowercase
Edit: 19 FEB 2010
is there any option in jquery to achieve this?
Total JacaScript n00b question right here:
I've made this snippet that clicks a link after 10th second:
function timeout() {
window.setTimeout(function() {
$('img.left').click();
}, 1000);
setTimeout("timeout()", 1000);
}
timeout();
My question is, how do I execute this function every 10th second, instead of just once?
Is this the best way to do this, or is there some kind of nifty jQuery method that you prefer?
I am using jquery to determine the width of the control:-
$("#div1").width();
There is a difference in width of the div between IE8 (in compatibility view) and Firefox. Width is not same.
e.g
ie : 1887
FF : 1898
How to tackle it?
Hey all,
I have a repeater that's bound to a SQL Data Source (using ASP.NET). Are there any JQuery plugins/efficient way of converting my repeater into something that can be sorted via drag and drop? i.e. users can rearrange the order of the data, which updates the database?
Thanks
I'm using expandable plugin by Brandon Aaron to auto grow my textareas in the form and it is working ok.
the problem is that I'm loading a lot of pages through ajax so I need to rebind the plugin method to the textareas loaded through ajax.
is there a way to do this kind of method calls like
$("textarea").expandable();
through live() or delegate() in jQuery. it'll make my code much cleaner.
I'm developing an application with javascript. What I need is to have divs with id's (1,2,3...) and be able to insert a div between, for example, 2 and 3, with jquery, and then have that be the new three, and three becomes four, four becomes five, etc. I've got the div insertion working, I just need to know how to reorder the divs. Any ideas?
I have big element at the top of the webpage that sides down with jQuery when a button is clicked. However, if the first post on the blog is a flash video, it shows up on top of the menu. Z-index doesn't help in this instance. Any help would be greatly appreciated.Thanks.
Regular expressions and I aren't quite good friends.
So here's the really basic operation i'm trying to do using javascript (jQuery framwork that is).
My calculation function return a number, unformated, and i'd like to separate thousands and hundreds by a white space ' '.
I'm sure it's pretty easy for a regexp regular user... but for me...
Thanks for the help.
Using Javascript, Jquery preferably, I want to be able to trigger the visiblity of the div when a user is at a certain page height. NYtimes has an example of this when you scroll to the bottom of a story, a slider pops out with another news story, and goes away if you scroll up.
Hi,
with jquery, or with simple just javascript, I want to populate a 2nd dropdown from the choice of the first dropdown.
The value of the first dropdown is the condition to get rows for the second dropdown.
How does the onChange event look like?
Hi all,
Let's say my background color is red.
I want the input textfield to appear red, but when you click inside the input field to type it becomes a regulad textfield. And ofcourse when you are not active in the input field it should be back to its original state (red).
Its actually something you see quite often.
I thought of using toggleclass?
My input fields are all appended with jQuery
Thanks in advance
Is there a way to prevent the user from selecting a file that is not a specified file type when they browser for the file on their computer? For example, when a user browseses to upload an image file I would for them to only see images (jpg, png, ect.) that are less than 20mb. Is this something that can be accomplished with asp.net mvc and jquery or do I need to use flash or a java applet?
Hello,
I'm wondering about the clever way to do this...
I have methods that return a value when passed an an object as parameter, such as:
<%= average_rainfall(@location) %
I'd like to use the exact same methods as a nested resource to call via jQuery/Ajax, like so:
.load('/location/8/average_rainfall')
I understand how to define the route, but how do I tell my method to 'find' /location/8 and use that as it's parameter instead of @location as expected?
Thanks!
I want to create a wizard that includes a few steps, that in the final steps
we need to include all the steps and save to the data base.
What is the best design to do this ?
Is there an implementation for jquery ?
Do I need to save the steps in session till the final save ?
I'd like to use css pseudo-selectors ( parent > child, element:first-child ) in my stylesheet but IE6 doesn't seem to recognize those. Is there any plugin (jQuery preferably) that would allow me to use pseudo-selectors freely without worrying about the damned IE6?
Thanks
Hey guys. If you haven't already seen, Google has the ability to add a custom background image (for better or worse) and I was wondering how to achieve the same fade-in-on-load effect using jQuery.
Any ideas?
Hi All,
I am using the following code to disable the anchor tag.Can anyone tell me how to enable it using jquery.
Code:
$("#rightt").attr("disabled", "disabled");
Geetha
How to give style to list item only if item has another list inside otherwise style should not apply? using css only.
See example here http://jsbin.com/udora
I want to remove arrows from all other items except "Articles" and "Pitching Past the 7th Inning"
I realized it's not possible with css any working jquery solution with demo?
I'm keen to test out html offline storage and caching with a view to developing a prototype to show off the offline web application capabilities of html5.
I've found some webkit-specific samples, but I'm battling to find any decent code samples that even work at all in Firefox 3.6
For a sample, I'd be happy with something that works with the following:
Our company uses jquery extensively so I'd prefer samples that use that library or pure javascript.
It should at least work on firefox (3.6+ is fine)
Can anyone point me to some links that provide some guidance and code samples?
I am attempting to use coffeescript/jQuery to do the following:
1) Retrieve all the 'topics' displayed in the html (seen below)
2) Hide all the topics from display except for the first 5 listed.
I tried to do the following but is not working
//Retrieve the entire list of and hide all but the first 5 topics in the list
$(".topics .topic")[5..-1].hide()
Can someone advise me on how I can correctly retrieve the list of topics from the HTML document and subsequently hide ALL but the first 5 topics?