jquery

jquery selection problem

On some View page I have two partial views (their html is the same). With first one work this script but with second not work . <script type="text/javascript"> $(document).ready(function() { $('input:radio').click(function() { var location = $("input:checked").val(); var article_number = $("input[id=MArticleNu...

jQuery tablesorter plugin - comma decimals

Hello, I've been searching the web for an answer but there simply isn't a solution that works. I have a table with prices in this format: "1.234,56", so the decimals are after the comma and the dot is for separating thousands. This format doesn't work, tablesorter plugin sees it as strings rather than a number whenever there's a differe...

how to make a 'forward' button using jqtouch .

i can make the 'back' button, it only use to add 'back' to the className , but ,how to make a 'forward' button ,that slide right when clicked. thanks like the 'List' in next pic, ...

Loading... message on jquery autocomplete

How can I make the jQuery autocomplete show "Loading..." in the dropdown while it's loading? ...

Jquery ul Submenu slidetoggle issue

Hi, I'm building a shop using oscommerce and have a menu using an addon which displays an unordered list for the categories. The UL list displays like so... <ul id='suckertree1'><li><a href='index.php?cPath=21'>Summer</a> <ul> <li> <a href='index.php?cPath=21_23'>Bikes</a> <ul> <li>...

Function scope within IF Statement

Hi guys, hoping some one can shed some light on my problem. Basicly I only want to execute a block of code if a certain DOM element exists. If it does I then perform a few bits and bobs and then call a function. However it complains that the function is not defined, suggesting that the function is not in scope. Below is the code : $(doc...

append() not working in safari but works in IE6

I having trouble getting append() to work in safari for some reason, but it works fine in IE6 !! The problem I have got is $( "#newsList .newsItemHeading" ).each(function(){}) and $( "#newsList .newsListItem" ).each(function(){}) is not working. I tried displaying the content in the <ul id="newsList"> in safari in an alert box,it was r...

Show one <div> and hide another

I have two <div> elements: <div id="hidden"> <div id="hideitem"> <input id="item5" type="radio" class="item" name="item" value="gen"/>General Function </div> I set <div id="hidden"> to display:none. I want it to show when the radio button is clicked: $("#item5").click(function() { $("#hidden").show(); } But how can I hide <d...

insert new DOM between elements

Hi, I have the following part of DOM: <div id="content"> <div id="div-1"></div> <!-- here new DOM --> <div id="div-2"></div> </div> I need to insert new part of DOM between "div-1" and "div-2". How I can do it with jQuery? ...

ASP.net MVC - Stop page rendering until JQuery finished

I am looking at an issue whereby our ASP.Net MVC page content jumps into position. If I put a debug point in one of our .js files I can see that the page has already rendered into its initial positions and then the .js files do its stuff and the page redraws into the correct state. This happens pretty quickly but slow enough that a jum...

Return to top of the page when clicking back

Hi guys, I have the following question/problem: On this page http://www.projectyou.gr/gp/?page_id=5 there are 3 tabs [It's all in Greek but I hope you will understand] Each tab contains links to articles. When you click on an article and then press the back button on the browser it comes back to the selected tab AND scrolls to the arti...

Which option is selected in jQuery 1.2?

Finding out the current value of a select-list with jQuery 1.4 is easy: $('#selectList').val(); But whats about jQuery 1.2? I get an "undefinied". I also tried $('#selectList:selected').val(); $('#selectList option').val(); $('#selectList option:selected').val(); Nothing works but for this project i have to use jQuery 1.2 ...

Cross browsers mult-lines text overflow with ellipsis appended within a width&height fixed div?

I made an image for this question, it's faster to me and should be easier to understand. I've tried some jquery plugins out here and there, but cannot find the one i'm looking for. Any recommendation? ideas? ...

jquery 3d carousel

Hi everyone!! I'm learning jquery from few days.. Can anyone tell me why is it that the carousel on this page works fine on firefox and chrome but not on IE? ...

jQuery Accordion definition list with multiple description items

I can't seem to use jQuery Accordions with definition lists that have multiple desciption items (dd). The author's examples have only single dd items. In the example below B2, B3 & C2 show onLoad, rather than hide like A1, B1 & C1 as I would prefer. How would I achieve this? jQuery('dl').accordion({ event: 'click', activ...

jquery textarea editors with spell check

Hi, I need a jquery textarea editors with spell check . any editors ? or any any spell check plugins which does inline spell check, while typing itself.? ...

jQuery best Practice: hide / doSomething / show sequence

Hi all What is the best practice to carry out following workflow: $("#myDiv").hide(); $.getJSON("url", function(data) { ... snorrr ... hours later ... }); $("#myDiv").slideDown(); This above mentioned sequence slides the div long befor hours have passed :-( Thanks Er ...

How to figure out if the window is closing in the callback of jQuerys unload(); method

Hi, Is it possible to figure out just wich type of event triggered $(window).unload();? To be a bit more specific, I'm only interested in the event when a user has closed the window (a popup), not when he's just navigating away from the current page. I've looked into the event parameter passed to the callback of unload(); but there doe...

Infinite carousel not working in IE but working in firefox or chrome

The following link of my carousel is not working as it is supposed to be in IE. However it works just fine in any other browser like chrome or firefox. Here is the link for the same: http://web.enavu.com/demos/3dcarouselwip/ What changes i have to make in the source code as I perfectly have gone through the code more than 10 times. ...

ie7 + jquery. Switching image and detecting size

Is there a way to detect the actual width of an image in IE7. Currently we have an Image that changes (we don't know the dimensions in advance at present) and can also be zoomed by the user (changing its $('#img').height()). In IE8 and firefox we can call removeAttr on height to reset the image to its natural size and then calculate bas...