Hello,
In my application, I need to calculate the size of the file in client side (before uploading to server).
I want to restrict the file being uploaded if it doesn't satisfy my requirements like file size, file type..
Is it possible to achieve this in client side using JavaScript ?
Thanks for reading !!
Have a Good Day.
...
i have a list of menus
<ul>
<li><a href="#about" id="about">ՄԵՐ ՄԱՍԻՆ</a></li>
<li><a href="#products" id="products" >ԱՐՏԱԴՐԱՆՔ</a></li>
<li><a href="#farm" id="farm" >ՏՆՏԵՍՈՒԹՅՈՒՆ</a></li>
<li><a href="#gallery" id="gallery" >ՆԿԱՐՆԵՐ</a></li>
<li><a href="#contacts" id="contacts">ՀԵՏԱԴԱՐՁ ԿԱՊ</a></li>
</ul>
and i ...
I am using JQGrid in one of my web project. I am using xml as the data and able to get the data fine. But the problem is in the grid for pagers icons are not visible. If i move the mouse over the pager then i get a focus on that. Below is my code. Any images are css am i missing...
jQuery(document).ready(function(){
jQuery("#li...
$('.dragbox').each(function(){
$('.close').click(function(){
$(this).parent().hide();
}),
$('.colpase').click(function(){
$(this).siblings('.dragbox_content').toggle();
})
});
...
Hello,
I've got a page where I'm trying to fetch arrays of classes for lots of divs which share a common class. For example:
<div class="common lorem ipsum"></div>
<div class="common dolor sit"></div>
<div class="common hello world"></div>
I want to fetch each common class div and get an Array of it's classes. At the moment, I'm doi...
I'm opening and closing dialogs that are dynamically created using ajax. I'd like to be able to have the buttons that appear on the dialogs use the jQuery UI button. I can do this by calling $("button").button(), but that affects every button element. How can I be specific to only affect the buttons that appear on this dialog?
var $d...
I am using jQuery to swap out the image here after the submit button on an email from is submitted. This part works very well, however, I also need to generate the email from the form contents.
Here is the form:
<form action="estimate.php" action="post">
<fieldset>
<input type="text" name="na...
JQuery UI sortable (including demos) are slow in all IE8 I can test, but runs smoothly in IE7 and IE8 compatible mode. The more complex is a markup on the page, the more IE8 is slowing down (that's I can understand, the DOM tree became more complex).
I'm using JQuery 1.3.2 and JQuery UI 1.7.2 (tested with 1.7.3 -- the same story).
I've...
I have the following script:
jQuery(function ($)
{
$('#basic-modal .basic').click(function (e)
{
$('#basic-modal-content').modal(
{
autoResize:true,
maxHeight:1000,
maxWidth: 1000,
minHeight: 1000,
minWidth:1000,
escClose: false,
overlay...
Can someone explain to me why the form validation fails in chrome?
http://tinyurl.com/3yphwpl
Pressing the submit should colour empty fields red.
I have no idea why chrome fails - would be glad to find a solution...
$('form .meet').focus(function() {
$('form .required').each(function() {
if($(this).val() == '') {
...
Hello,
I have this script to copy multiple value of textbox1 [which are separated by ENTER] to textbox2.
It works perfect in all browser except IE.
In IE all multiple values [which are separated by ENTER] are copied in single line *[without ENTER]* like a single value, Which in turn affecting my form submission.
my code is something ...
Hi,
I am new to Twitter API and only know that we can pull someone's
Twitter feed from Twitter through RSS feed on that person's Twitter
page/ profile.
But, how can I pull more information of that person's Twitter page?
For instance,
His/ Her followers.
Total of his/ her retweet items.
http://www.qapture.net/
There are a couple of...
Hello i need to load an image from an database and the popup should be there when i keep the mouse over the images...i used http://www.vegabit.com/jquery_bubble_popup/
$(document).ready(function() {
$('#dummy1').SetBubblePopup({
innerHtml: '<p>You can set any HTML tag<br />inside this popup!<br /><a href="#">this is a link</...
I have the following markup that I need to put the value of the input named "ProductCode" to a variable named lets say product_id using jquery
It's probably easy but for some reason I simply can't figure it out.
<input type="image" src="/v/vspfiles/templates/100/images/buttons/btn_addtocart.gif" id="btnaddtocart" name="btnaddtocart" al...
I notice the problem mostly with Firefox 3.6.6 on OS 10.5.8, and it happens occasionally with Safari (get your surprised face ready - IE actually works fine everytime - what?!).My url is here:
http://culturewithinaculture.org/introduction.php
NOTE: It's password protected for now, as we haven't officially launched the site.
User: cwac
...
Hi All,
the documentation seems simple enough, but in practice, this feature is not working!
I need the date to be in dd/mm/yyyy format.
$(function() {
$("#txt_date").datepicker($.datepicker.regional['en-GB']);
});
Can you help?
Currently the date is outputted as mm/dd/yyyy.
Many thanks
...
Hello,
I'm trying to implement a help layer that can be toggled on and off by clicking a help link in my page header.
I know qTip can't target live() selectors without doing some body hover trickery or something of that sort, so I assumed the easiest thing to do would be to use the beforeShow callback to test if the body has the 'help' ...
Hello
I have a working script like this:
jQuery(document).ready(function(){
$('.video-thumb img').bind('mouseover',function(){
var new = $(this).attr('src').replace(/default.jpg/,'1.jpg');
$(this).attr('src',new);
}).bind('mouseout',function(){
var default = $(this).attr('src').replace(/[0-9].jpg/,'defa...
Hi
I think I have a problem with multiple clicks on the same button. I thought I solved it but I think there is 2 problems not the orignal one problem that I thought.
The first problem was if they clicked a button(say a save button) it would do that many save ajax posts.
So if they clicked on it 5 times because they where impatient it...
removing hyperlinks from jquery jq-grid column header. override the default behavior of jquery for not showing these hyper links. These hyperlinks are appearing due to sortable property of jqgrid.
...