jquery

ASP.NET MVC normal edit form with upload (and validation) using jQuery UI Modal

Hi all, I have a form that resides inside a jQuery UI dialog, the form have some fields such as first, last name, etc... and also allow file upload. I can't use Ajax.BeginForm() since ajax doesn't allow upload (or does it?), so I have to use the regular Html.BeginForm() for my form to call my ActionResult. But I need to do some validati...

asp.net mvc dialog box mechanics at the end of the request

<form action="/Home/JSONRequest" method="post" enctype="multipart/form-data" onsubmit="return submitForm(this)"> <input type="file" name="file" id="file" /> <input type="submit" name="submit" value="Submit" /> </form> <script type="text/javascript"> function submitForm(frm) { var tdata = $(frm).serialize(); $.aj...

Need advice on multitab form in ASP.NET MVC

Hi all, i need an advice on how to implement my form. I have a requirement: i need a form that spans through 5 tabs. Each tab has around 10 fields, some of them empty, some of them must contain data from db and be non editable. Each of these tabs must be a part of one form that is submitted to my controller. The question is: what is th...

jQuery simplifying code (beginner)

I'm getting to grips with jQuery but find myself repeating code over and over again... Surely there's a simpler way to write this: $('#more-mcr, #more-hilton, #more-lpool').hide(); $('#mcr-hatters').hoverIntent(function() { $('#mcr-hilton').stop().animate({opacity: 0.4}); $('#more-mcr').fa...

jQuery: part of a function not executing

Hi. I have a tabbed setup on the page and I want to automatically make corresponding menu tab highlighted as well as corresponding content div show depending on # hash. Example: http://design.vitalbmx.com/user_menu/member_profile_so.html -- no hash, opens 1st tab http://design.vitalbmx.com/user_menu/member_profile_so.html#setup -- #s...

js carousel with dynamic content

spend soo much time trying to solve this, but here goes: requirements: vertical list of items, in a div-container, structure div/ul/li user should be able to scroll through list, with smooth scrolling by hovering over the div, scrolling accelerates towards the top and bottom the scrolling is endless towards both ends (ie. at the end o...

How to make back button using jquery

hi I have no.of page, which will the children relation ship. once i in 5th page, i need to go 4th page, that mean what i browser before, for that i used window.history.back(), but the page is just refreshing, not going back. what the way i can achieve this? that mean what is the best way to create widow back button with all browser s...

get values from table as key value pairs with jquery

I have a table: <table class="datatable" id="hosprates"> <caption> hospitalization rates test</caption> <thead> <tr> <th scope="col">Funding Source</th> <th scope="col">Alameda County</th> <th scope="col">California</th> </tr> </thead> <t...

rails server side to upload file from jquery-html5-upload?

I'm trying to use this plugin: jquery-html5-upload http://plugins.jquery.com/project/jquery-html5-upload and it's working but i don't know how to get the file and save it on the server on the rails action. in my rails log i just get this: ... 7?\021\b\000\034\000%\003\001\021\000\002\021\001\003\021\001\377?\e\000\000\001\005\001\001\...

Ajax Request using Rails and jQuery Problem

Hi, I have a favourite and un-favourite functionality in my application and I am using jQuery. This functionality works partially. The page gets loaded, and when I click the 'favourite' button(it is inside add_favourite_div element), it sends a XHR request and the post is set as favourite. Then a new div called "remove_favourite_div" rep...

specific draggable is above a specific droppable

Hi everyone, I am a begginer in JQuery and I want to make a simple matching quiz so I used this code to create the qustions div and answers div edit: <HTML> <HEAD> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; <script t...

Disable specific days of the week on jQuery UI datepicker

Hey, I would like to disable certain days like every monday or every tuesday or every monday, thursday friday, etc. on a jQuery UI datepicker. I tried to play with beforeShowDay, but that requires a specific date. I just want to disable an entire day of the week. Update: Thanks for the suggested solutions, but they all work for speci...

Fancybox height help?

I am using fancybox for loading a Huge form "1300px" height ( i know it is not something good but the client wants it like this) the problem that it doesn`t cover the whole height i tried autoDimensions $.fancybox.resize with no luck although other parts that uses fancybox is working without a problem so any tips will be great. also ...

jQuery menu animation

Hi Stackoverflow, I'm building a website where I'm using jQuery to animate a horizontal tabbed menu. What I want to achieve can be seen here: / link removed / If you hover/mouseover the "Link 1" tab, you'll see that a white div is expanding. Each of the tab menu items are a styled li-tag. What I want to do is, that when you hover/mous...

fancybox auto load

<script type="text/javascript"> $(document).ready(function() { $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (curre...

Animating a div while it fits to dynamically loaded content

I have two Divs. 'contents' (outer) and 'info' (inner). 'info' will have dynamically loaded data from 4-5 external html files. 'contents' just contains just a black background. Now I have managed to load the html but i want smooth animation of the background ('contents') to wrap around the inner div according to content. My current code ...

jQuery SOAP client

Has anyone used the http://plugins.jquery.com/project/jqSOAPClient plugin to call any WCF Services (obviously via SOAP)? Doesn't seem to be working as expected. var soapBody = new SOAPObject("GetSomethingById").attr("id").val(123); var soapRequest = new SOAPRequest("http://tempuri.org/ISomething/GetSomethingById", soapBody); ...

Jquery mouseover change background color problem

Jquery code: $(".menu_clickable").mouseover(function() { $(this).css({'background-color' : '#F00'}).mouseout(function(){ $(this).css({'background-color' : '#FFF'}); }); }); $(".menu_clickable").live('click', function() { $(this).css({'background-color' : '#FCC'}); }); HTML source: <div class="menu_clickable prof_info2" id="prof_i...

jquery outerwidth submenu items

i'm looking for a way to calculate the total width of de level 2 items and put it in the ul. I have looked at some jquery thinks like outerWidth and .lengt but can't figure it out. thanks in advance $('#menu li:has(ul) ul').each(function() <ul> <li>level 1</li> <li> <ul style="widht:??;"> <li>level 2</li> <li>level 2</l...

Is jQuery forcing Adobe ColdFusion to abandon the dead flash product line?

I have been reading a lot about how flash development/design had died, and as jQuery and in the near future html5 comes out, will this start to push Adobe/Coldfusion away from flash towards less product linking? I mean, I love coldfusion, and want that to continue to grow, however, if Adobe only bought Coldfusion from Macromedia, so the...