jquery

How can I get ValidationSummary messages programmatically?

I've created an HtmlHelper that helps me show a jQuery modal dialog: I set a message in controller's TempData and if the message is not null, the helper writes an jquery + html code to make popup apears after postback. But I need to show the Validation results as a message (same message displayed by ValidationSummary), and I have no Ide...

How can I make my asp.net page postback when a control is clicked inside a jQuery dialog?

I'm having some trouble with jQuery UI. I've created a dialog with jQuery UI: so far, so good. I set up a form inside the jQuery UI dialog and then it's another story. I've written a very simple page to illustrate: <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="testpage.aspx.cs" Inherits="RiverCascade.testpage" %> <hea...

JQuery : How to call an inside plugin function with a <a href> generated by another function of this plugin?

Hello everyone, I'm making a little widget for my site using a search api I just made. Briefly, I want to retrieve last posts or top rated posts. I've got to tabs for that. By default, on loading, I'm on recent posts. If I click on Top posts, I'd like to call a function inside my plugin that modify a var that tell to my search API to r...

IE8 not allowing jQuery to give focus to textbox

I have jQuery which produces a popup window, as outlined here: http://www.jsfiddle.net/sLjfx/4/ The problem is that the following line: $('#txtValuation').focus(); doesn't seem to want to work in IE8. The popup will load, but the textbox doesn't have focus, where in Chrome the box does have focus.. Is there any work-around for it? ...

Is there a dojo equivalent of jQuery address?

Hello, I'm trying to create an ajax app with dojo. Is there an equivalent or something similar like functionality to jQuery Address. I want to make ajax hash based url navigation like twitter, facebook, etc with dojo. regards ...

Onclick doesn't fire in IE when DOM element created via jQuery

So here is the jQuery snippet I am using to create a div that I want to click on $("#someID").after('<div style="cursor:pointer; text-decoration:underline; display:inline;" onClick="alert(\'It Worked\');">Details</div>'); This Works in FireFox without any problems its just IE that doesn't fire the event. The div is added right after ...

jQuery: Validation errorPlacement

placing an error after an input box is simple and makes sense... but what if the error relates to a radio group and that group is within a table? I want the error to show up after the table... Any idea how to accomplish this? ...

Mouseover/mouseenter not fired by browser on animated/moving element

If you have an element that has an animation to move it around, the mouseover and mouseenter events aren't fired unless the mouse is moved by the user. To demonstrate try the block of code below with jQuery. If you put your mouse in front of the moving div so you're not moving the mouse when the div passes by then the mouseover isn't f...

jquery pie chart with drilldown/clickable pie parts

I'm looking for a JQuery plugin to make pie charts whose wedges or slices I can click to go to another page based on the value of the pie wedge. I'm having a pie chart with grades for a class (A-F). If someone clicks the "A" wedge, I want to redirect to a page that shows the A students. ...

System to handle hash tags for tab content? (!#)

I have four pages on the main part of the website I am working on, and I want the switching between the 4 tabs to be a fading transition (using jQuery), that's all fine and dandy but I also want SEO to think of each as a separate page, I also want to be able to link to a URL and for it to pull up the right content, even though it is tech...

How to stop Safari from reloading after getting an internet connection back?

Hi, If I am using Safari on example an iPad with internet connection, I then minimize safari and go to iPad settings, turn the wifi off and then open up Safari again I get a pop up saying that there's no internet connection and the page doesn't try to reload. I then go back to settings, turn wifi on and go back to Safari, now the page i...

jQuery how to undo a select change

I have a select box, and I'd like to add a confirm before changing it to a specific option. Example: <select name="select"> <option value="foo" selected="selected">foo</option> <option value="bar">bar</option> </select>​​​​​​​​​​​​​​​​​​ $('select').change(function() { var selected = $(this).val(); if (selected == 'bar...

problems executing a jquery ajax call within a function

I would like to put an ajax call within a function since I use it repeatedly in multiple locations. I want a manipulated version of the response returned. Here's what I'm trying to do (greatly simplified). a = getAjax(); $('body').append('<div>'+a+'</div>'); function getAjax() { $.ajax({ type: "GET", url: 'someURL', success...

jScrollPane horyzontal scrollbar on top

hi i got set up a jScrollPane horyzontal scrollbar but right now the scrollbar is horyzontal but on top(this means the scrollable content is below the scrollbar), i need the contrary: scrollbar below, scrollable content on top, how can i make this? regards ...

How to call a jQuery function AFTER html and content (images) finished loading..?

Is it possible to do at all..? The goal of this is to load a heavy Flash movie, after the images, text, and contents of my page is finished loading... Any solutions..? More details: The Flash movie (a music mp3) is loaded in a frame (menuFrame) with the menu. The content (that needs to be loaded first) is in another frame (contentFra...

Overusing jquery

When using a javascript framework such as jquery, is there a realy chance of overusing the library for things that can be done simple using plain old javascript. If so, then does this type of thing: A: Slow code down B: Make code less portable C: Make the programmer less knwoledgeable about what is actually going on underneath everythi...

mailing list using JQuery, Sinatra, HAML fails with "undefined" email address

Somehow, a simple form I have to sign up for a mailing list (which adds an email to a Google Apps Group, using gdatav2rubyclientlib) seems to fail occasionally. The form is submitted via POST through jQuery, and the Sinatra app (running on nginx/Passenger) handles the POST and emails me a confirmation. Occasionally, I get emails that "...

How to HTTP Post / HTTP Get and navigate to another page using JQuery

Hi Friends I am working with a Full Calender application, in that,while i click in a event it must be redirect to another page and also post the data like event id,event start,event end,user id so on,how can i do that in J Query and Full Calender ...

JQuery - hide page refresh div wrapper

Hello, I would like to create a jquery function that hides page refresh when a form on the page is submitted. I don't mean one that is specific for a particular form on the page but rather for any form on the page. If there is a form submit on the page that submits to itself, don't show page refresh. I'd like to just wrap the page with a...

opening new window in ie7 opens same target as base window but shows proper url in firefox

i have a simple little form <form id="loginform"> <input id="myinput" type="text" /> <input name="submit" value="go" type="submit" /></form> in a very not secure way i want it to go to different urls depending on the input value. here is my simple little jquery script that i am sure could be written more succinctly. (feel free to hel...