jquery

Adding Input control to the pages with jQuery has problem with HttpFileCollection in ASP.NET

I'm trying to add upload controls to the page. This HTML mark-up with JavaScript is working fine but there s no option to remove the added control: 1. Example A <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w...

Simple jQuery AJAX question

I have a menu like this, but the mark-up doesn't have to stay this way. <div id="menu"> <ul> <li><a href="#item1">Item 1</a></li> <ul> <li><a href="#subitem1">Subitem 1</a></li> </ul> <li><a href="#item2">Item 2</a></li> </ul> </div> And each time one of these menu items is clicked I want to load different content in a ...

Adding control to ASP.NET with jQuery

I'm trying to add control to the ASP.NET page. Controls are added successfully but can't access from code behind. In the sample below, when Button1 is clicked, there's no element in "uploads" (type HttpFileCollection). Here's my mark-up: <%@ Page Language="vb" AutoEventWireup="false" CodeBehind="add-remove-control.aspx.vb" Inherits...

jQuery modal and load problem

I'm having a problem with jQuery dialog and load on a web application i'm developing. On a search result page, on each entry i have a link that give a quick view of the result, firing a modal dialog that retrieves and show html content using jQuery load. Everything works great and i can close and open dialogs as i want without any proble...

Jquery not working

Hi, For some reason, my jQuery isn't working properly, and I can't spot the mistake, although I may have some idea. Below is some of the code from group2.php, its for a chat application: <div id="wrapper"> <div id="menu"> <p class="welcome">Welcome, <b><?php echo $_SESSION['name']; ?></b></p> <p class="logout"><a id...

$.getJson reuse method for rendering 2 different controls

Hi Im doing a $.getJson call which I want to be able to reuse for different ui rendering. I want to use the GetUserRoles(userName) method for rendering 2 ui controls with 2 different calls. The first call is made to populate a dropdownlist. Now I want to make another call to the method which will draw a UL list on the same page. How ...

JQUERY, Adding an Event Listener to Items in an iFrame?

Given an iFrame with throughout the iframe... Is it possible to add an event listener with jquery to trigger an ALERT anytime the user moves their mouse over .fineme in the iframe, from the top/parent window? ...

Maintain State when Paging

I have a controller called "Categories" and you are allowed to type a few letters and get a filtered list back. Fairly standard stuff. However, I'm combining the result set with paging and have run into a snag. When you first come into the page I have all categories listed. When you type into the text box you get a filtered list but ...

JQUERY iFrame, Works with an Alert, doesn't work without an Alert - Strange? Why

The following does not work on my page: $("#bob").ready(function () { $("#bob").contents().find(".findme").css("background", "red"); $(document.getElementById('bob').contentWindow.document).find('.findme').bind("mousedown", function() { alert( $(this).text() ); }); }); But if I add an Alert, which I assume adds s...

Jquery: How do I get a Hoverintent like effect working with mousenter / mouseleave? Below:

$(document).ready(function () { $('.viewport').mouseenter(function (e) { $(this).css({ 'z-index': '10' }); /*Add a higher z-index value so this image stays on top*/ $(this).children('a').children('img').animate({ height: '300', left: '-40', top: '-40', ...

Quickest way to clone element and autioincrement id (jquery)

A simple task of cloning an element and autoincrement its id. can it be done in 1 line? ...

Jquery LIVE, with an append, is breaking the MouseOver

Here's the code: <p>Morbi vitae erat. Cras sem lorem, porta ut, aliquam id, porta sed, velit. Pellentesque scelerisque erat rhoncus nulla. <span class="findme">find me</span>Integer pulvinar, est ut</p> <script type="text/javascript"> $(document).ready(function() { $('.findme').live('mouseover mouseout', function(event) { ...

jQuery selector problem.

Hi there! I have problem with sliding up/down a class in my project and would appreciate any help. HTML: <input type="text" class="text" name="left" style="width:100%;"/> <input type="submit" class="btn" value="Submit" /> <div class="regler">Regler</div> jQuery: $("input.text").focus(function () { $(this).animate({width:'80%'}...

asual jqueryAddress - double url update

hey guys, I'm using asual's jqueryAddress for history support in a wordpress site where I'm loading content without refreshing the page. when i navigate through the site, for some reason the address is updated twice: siteurl/#about-us siteurl/#/about-us (had to modify the urls above because I don't have enough 'reputation points' t...

Removing a hover effect from a revisited page with back button

I'm working on this website, and have a little thorn in my side. When I click a link in the sticky note on this page, then hit the back button, the link still appears to be hovered-over. What would be the least script-intensive way to prevent the link from thinking it's still being hovered over? The problem appears in Safari, Firefox, a...

Security: Form Submission + javascript/jQuery

Question: What is best practice for form submissions while keeping in mind security? This may be a n00b question but I'm concerned that people might be able to alter some data as its being submitted. Take my example: I have a form that has a hidden input that stores a user's unique Facebook ID. I take that Facebook ID and create a use...

jquery animation

i dont know what is wrong with this code.. it will just don't work even if it has the same syntax with the other one.. $(document).ready(function(){ $("#inner").animate({height:'200',top:'-100'},1000); $("#inner").animate({width:'200',margin-left:'-100'},1000); }); you can see the example here.. ...

Twitter plugins arent working with hebrew

Hi there, im trying to use plugins such as 'tweetquote' , im changing lang:en to lang:he but it isnt working.. any suggestions? ...

Dynamic content loads into jQuery qtip in all browsers except IE

Hi all! qTip...a jQuery custom tooltip plugin... isn't loading dynamic content for IE8 (haven't tested in IE6/7). qTip initializes but no content (text) loads into it. Here is my code: errorPlacement: function(error, element) { var errorcontent=eval(error); element.parents('.rightfields').find('.nore...

Remove full css from div with Jquery

Hello guys. In my css i have * { font-family: "Meiryo UI" , Verdana; font-size:13px; } input, select, textarea { font-size: 12px; border-color: #333; color: #333; border-style: solid; border-width: 1px; } But, i want one DIV without CSS. I tried $('#preview').removeClass() $('#preview').removeAttr("style") $('#preview')....