jquery

jquery emulate key press "ctrl and +"

Hi all, I know the tecnique for zoom the page using the shift of css...... I wanna make a button for emulate the user that press "CTRL" and "+" in same time... explain well with an example... in firefox if i press CTRL and + in the same time the page ZOOM...i wanna write a function that i call and i emulate the press of CTRL and + T...

What the best way to handle server side tags inside of a js file?

I'm using Asp.NET MVC and have a huge dependency on JQuery throughout my entire application (not sure if that's important here or not). I'm trying to build a set of js library files to go along side my views. The problem that I'm faced with is that I need a way to manage the server side location of my files and action links for all of my...

Hidding a java applet with jquery ? Possible ?

I'm struggling to find a way to hide a java applet () using jquery. I have a link that opens up a simple ajax fancybox (http://fancybox.net) problem is that it always appears 'behind' the actual java applet. Is there a way to 'hide' the applet or even unload it ? I can reload it after closing the fancybox (basically asking for user con...

JQuery Validate Plugin allowing the post of invalid data

Hello, I have the following validation rules to my form: function ValidadeRegistration() { $('#RegistrationForm').validate({ rules: { "auth.UserName": { required : true, email: true }, "auth.Password": { required : true, minlenght : 5 }, Passwo...

jQuery - Fancybox: But I don't want scrollbars!

I am using jQuery Fancybox for a popup registration form here I would like the form to come up at the size of 450px by 700px but no matter what I set the height and width at I get scrollbars: <script type="text/javascript"> $(document).ready(function() { $("a#regForm").fancybox({ 'titleShow' : false, ...

Most appropriate way to select first occurrence of a child element in jQuery

I have a list like so: <ul id="topElement"> <li></li> <li> <ul> <li> <ul> <li> </li> </ul> </li> </ul> <li> Using jQuery, what is the best aka most efficient way to reference the first occurrence of a ul from #topElement. That is to say, I do not want this... $("#topElem...

Negative Positioning with JQuery scrollTo / localScroll

I'm working on a project and using Ariel Flesler's jquery.scrollTo.js & jquery.localScroll.js ... I have local links that scroll to various divs on the page. The trouble I have is that I have a fixed position navbar at the top of the page and ScrollTo is calculating the window position (correctly) without factoring that in. Below is t...

JavaScript variable value in element.append

$('#test-list').append($(document.createElement("li")).attr({id: data.msg})); $('#'+data.msg).append($(document.createElement("img")).attr({src: "kep.php?kep=upload/"+data.msg+"&w=180;&h=150;"})); Does not work, because of the $('#'+data.msg). param. I don't know how to fix it. I want to make a sub-element to the #test-list and name it...

Good Scatter-plot plugin for JQuery (sample pic included)?

Hi all, I'm looking for a solid graphing plugin for JQuery that can give me an attractive scatterplot for use on my site. I really don't need a lot of fancy functionality -- just the ability to plot points on a graph based on the X-axis and Y-axis values I give it. The only somewhat peculiar requirement I have is that the dots have the...

Webhoster inserts a javascript which brokes my code how to remove it?

I use the free webhost 000webhost. The service is okay but it inserts some javascript counter into every file and request. The script looks like this. <!-- www.000webhost.com Analytics Code --> <script type="text/javascript" src="http://analytics.hosting24.com/count.php"&gt;&lt;/script&gt; <noscript><a href="http://www.hosting24.com/"&...

Can't loop through elements created by jquery...

I've added a bunch of links to a div like this: $('#links').append('<a href="http://example.com/"&gt;Example&lt;/a&gt;'); But when I try to loop through them with $('#links a').each it only finds the links that are already there in the HTML. What am I doing wrong? ...

jquery Validation plugin

I am trying to figure out how to show validation error messages on my registration page. For jQuery Validation plugin examples they use a class called "require" for required fields. Is that what I have to do to include the required field validator? I guess I don't understand how this plugin works. If somebody could explain this it would ...

add li to middle of the ul (jquery)

How one can add li to middle of the ul. For example if i have list like this: <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> </ul> And i want to add addiion li (<li>new</li>) after 3rd list? ...

$.ajax with DELETE loses parameters

In my client appwritten in javascript and jQueryI have a function where I'm doing $.ajax request with the DELETE method to my server. The code is something like this: this.delete_one = function(id){ console.log(id); $.ajax({ url: sitesCtrl.url, type: "delete", dataType: 'json', data: {"id": i...

How do I write a dry update_output() function for these stages in jQuery?

So I was offered help with this on another question, but I'm struggling to implement it when my app progresses in complexity... var gender; var age; $("#gender :radio").click(function() { gender = $(this).val(); update(); }); $("#age li").click(function() { age = $(this).text(); $('#children').show(); update(); }); function ...

JQuery: How to switch image back and forth?

I have the following HTML: <div class="listing ref_1"> ... <div><img src="toggleON.png" /></div> ... </div> <div class="listing ref_2"> ... <div><img src="toggleON.png" /></div> ... </div> <div class="listing ref_3"> ... <div><img src="toggleON.png" /></div> ... </div> What I want to do is programm...

show scrollbar to the right?

whenever the page's height is larger than the web browser window a scrollbar will appear to the right so you can scroll down/up in your page. could scrollbar be displayed with javascript/jquery all the time even if there is no need for it? (has to do with a layout issue i've got) ...

min-height: 100%; not working with jQuery treeview Plugin

I have a two-column css layout using Divs that I want to separate with a purple bar. This link is an example . Click the "Click Me First Link" on the page. Notice the second bar on the right. Now click the "Click Me Second" link on the page. Notice the extra bar goes all the way down as it should, but the first bar (e.g. left column...

using jquery $.ajax to call a PHP function

This may be a simple answer, but I'm using jquery's $.ajax to call a PHP script. What i want to do is basically put that PHP script inside a function and call the PHP function from javascript. <?php if(isset($_POST['something'] { //do something } ?> to this <?php function test() { if(isset($_POST['something'] { //d...

Have you used ASP.NET MVC with jQuery's AJAX to power your navigation?

I've used jQuery's AJAX on a webforms app (kill me), but it worked fairly well after fighting with the webforms framework for a good while. I had links that would load aspx pages into a content div through jQuery's AJAX functions. One of the biggest issues was dealing with state without using session. I ended up using cookies that were u...