I am working on a view containing two forms, handled by separate controller actions which return a string serilaized to Json:
return Json(message);
The forms are submitted using jQuery, by clicking on a button outside the two forms.
The button handler:
$('#inviteForm').ajaxSubmit({
success: function(html, status) {
...
When I generate a text input like this:
<input type="text" name="name" />
When I start to type, the browser will display a dropdown list below the text input. This list contains the values I previous used for this text input in this browser. I want to generate my own autocompletion via ajax.
How do I tell the browser with either css ...
I am continually pulling in a list (over 200) entries from a remote server and showing them in a table (many pieces of data per row). The data changes and fluctuates over time. What's the most efficient way in JS to render this to the screen. As the data changes do I simply wipe my DOM and re-render with the new data; do I have a list of...
I like to be able to load a tooltip from a file "a la ajax" style.... but first i like to see if i am able to "transfert" html text to the title attribute
i use jquery and tooltip (from http://jquery.bassistance.de/tooltip/demo/)
here is the code
<div class="odeurbox">
<img src="odeurs/aiguilledepin.jpg"
width="67" height="67" />
Aig...
Hi,
As I'm still learning, this question might seem to be very simple to answer, but I still need to ask.
How do I need to change this script, so it will not display all the tooltips?
What is happening now is whenever I hover on .pink-nose a all the .tooltip are fading in at this same time
$(function(){
var pn = $('.pink...
Hi guys,
I decided to try and learn more JQuery and here is what I have come up with.
It should be a simple enough job, but I can't get my head around it. I can add it up, but when I change a package, the price just keeps going up. I know I have to add some logic to decrement the counter, too, but I think a fresh pair of eyes would be...
I'm writing jQuery for a page that is a complex mess of many DOM elements (I have no control over this). The primary target browser is IE7, and I have concerns about the speed of its JavaScript engine. Scripts I've already written are laggy and have been performance-tuned to the best of my ability.
I could write script that is simple to...
AFAIK, the JQuery ID selector:
var ctlId = $('#' + strControlId);
gets translated into a call by document.getElementById.
Questions:
Is document.getElementById supported by ALL the browsers?
I am currently using the find object function found below for selecting an ID. Would JQuery selector essentially do the same thing?
...
Hi,
What I want to achieve. If the Url for certain emplyees does not exists then instead of displaying an error page I do not want to show the link itself for that employee. I have done it in 2 different ways and none of them are working. Please help. I have the entire code below. All of it is working except for the url part for ones wi...
Specifically, how does it differ from the default (async: true)? In what circumstances would I want to explicit set async to false, and does it have something to do with preventing other events on the page from firing?
...
The jQuery Autocomplete plugin relies on an odd response format. Specifically, it's a newline-separated list of pipe-delimited pairs, the first entry of each pair being some formatted text, the latter being a JSON object with some data.
An example:
Fuzzy Bunnies|{ id: '1234-fuzzy-bunnies', type: 'slippers' }
Loud Hawaiian Shirt|{ id: '...
How to retrieve all tab names or labels without selecting tab in jQuery?
I need this to validate tab name/label length.
...
I have next and previous links in the html
<a href="/event-sort/calendar/2009/9/sports/">prev</a>
<a href="/event-sort/calendar/2009/11/sports/">next</a>
When they are clicked, I want the page to make an ajax call to load a php script that will update the calendar's html
now when the calendar updates, the arrows have been removed and...
Hi Guys,
I have an HTML table. I need a jQuery selector to select only the TR's, where column2 (TD) text is equal to = "foo". Is this possible?
<table>
<tr><td>asdasd</td><td>foo</td><td>fsdf</td></tr>
<tr><td>asdasd</td><td>xxx</td><td>fsdf</td></tr>
<tr><td>asdasd</td><td>xxx</td><td>fsdf</td></tr>
<tr...
I have a WCF Webservice hosted in IIS. It uses a webHttpBinding. There are WebInvoke attributes on the methods so that they can be access REST style. I can successfully use them like so:
http://mydomain.com/MyService.svc/some/rest/style/thing
and POST to that the arguments to the web service.
Now I want to change this to HTTPS over a...
For performance, which is faster?
$('#' + strControlId);
or
$('#' + strControlId, $('#' + strContextId));
...
A little odd situation. I'm writing a greasemonkey script on some legacy HTML where everything is put into one table. I want to select all TR elements from the one I click and the next 3-4-5-6 rows up to the next row that contains a TD.class_name
table
...
tr -> td.class_name
tr
tr
tr
tr -> td.class_name
...
/table
So, i...
jQuery noob here, trying to produce alternating row background colors. This works in HTML:
<script type="text/javascript">
$(document).ready(function() {
$('.stripedtable tr:even td').addClass(" evenrow");
alert("Just executed stripedtable jQuery in MasterPage");
});
</scrip...
I'm struggling with this bit of code, and I'm not sure if it's even possible. I have a list of divs within a single parent element, and I need to collapse and expand certain sets. Here's an example:
<div id="parent">
<div class="alway_show">ALWAYS SHOW ME</div>
<div class="collapse_me">COLLAPSIBLE</div>
<div class="collapse_me">CO...
I'm creating a file permissions dialog and am limited to the use of jquery and boxy. No iframes, no popups. The server side reading is taken care of, and so is submission. My issue is i have elements inside the boxy and i've no idea how to retrieve their values.
Any help, or tutorial would be great.
Have already read: http://onehack...