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)?
I've managed to write some jQuery to find an element and copy it's html to the clipboard (ie only).
The problem is that when I paste this into a rich text box area in sharepoint it pastes the HTML as text only.
How do i replicate the user action of highlighting a link on a page and pressing copy. When I do this manually and then paste the clipboard contents the rich text area realises that it is markup and replicates the link as an anchor in the text content.
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?
Hi,
I've created a menu with jQuery superfish but I'm having problem when drag-drop on one of the top menu items. .sfHover class is added when pressed on a item and if this item is not clicked and dropped item remains with .sfHover class and because of this, background of the item is changed.
How can I fix this problem?
Here is the demo.
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
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?
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 have been writing my first jQuery plugin and struggling to find a means to time how long different pieces of code take to run.
I can use firebug and console.time/profile. However, it seems that because my code executes so fast I get no results with profile and with time it spits out 0ms. (http://stackoverflow.com/questions/2690697/firebug-profiling-issue-no-activity-to-profile/2690846#2690846)
Is there a way to get the time at a greater level of detail that milliseconds in javascript?
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.
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'd like to change language labels used in TinyMCE. E.g. "Überschrift 2" - "Überschrift".
Im using the jQuery plugins version of TinyMCE.
Is there a way to overwrite those labels without editing the label files?
Hello all,
I'm trying to read all filenames from a specified (server- not client) folder, and insert all the filenames into a javascript Array.
It should behave like the Directory.GetFiles method in ASP.NET C#.
I created a new array, and I just need the loop method (Javascript or jQuery) to iterate in the specific folder, and insert all the filenames into the array.
Thanks all helpers!
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'm coding a function in jquery that executes if ctrl+R is pressed but I can't seem to find out what the left and right ctrl keycodes are....can someone please help?
Hi
I've got a link on the web page that causes new browser window (tab) to be opened when it's clicked, like this:
<a id="lnkNewWindow" target="_blank" href="http://google.com">Open window</a>
I want to be able to track the window that will be created after this link is clicked. I'd like to perform some actions after the new window is closed. Is there any way to do this (preferably using jQuery)?
Is it possible to rotate text from a horizontal position to a vertical on a single point without using something like flash? So I would read the same text normally by tilting my head.
I was thinking you can do this in jquery but couldn't find a plug in.
I have a element which contains 3 child. let says
<div class="parent">
<div class="firstChild">firstChild</div>
SecondChild
<ul><li>thrid child</li></ul>
</div>
In the example I need to select first 2 childs and not the UL. how to do through jquery.
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.
I'm developing a form with PHP and jQuery.
Here is the link:
http://www.yamaha-motor.com.pe/extreme/php/yamaha/registro/FrmRegistro01.php
It works fine on Firefox but not on IE.
What can you advise me??
Thanks
I can't seem to set cookies from the jquery.cookies plugin when running on nginx. My configuration is pretty standard, I'm just wondering if anyone else has had the same problem.
I'm new to nginx, so take it easy on me :)
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?
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?
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?
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,
I need that when i check a checkbox i apply different background color to HTML table rows according to and ID of a user in database using jquery, and then i uncheck the checkbox go to previous state.
For the record i am not asking for code i am asking for concept.