Hi,
ive got a problem with getting attr from <a href>.
Got something likte this
<a href="#callback" realurl="callback.aspx">Callback</a>
And jQuery
$('#callback').bind('pageAnimationEnd', function (e, info) {
var realurl = $(this).attr('realurl');
if (!$(this).data('loaded')) {
$...
I'm trying to display an ASPxGridView using a JQuery UI modal dialog. The grid is configured to use callbacks to access the server (seems to be the best/fastest solution).
I'm able to show it via a normal postback, but am unable to run any callbacks correctly. The first click on a pager link will callback to the server and the correct r...
Hello,
I'm building an intranet site for work with an autocomplete feature. I have it working to where when the user clicks on the name in the autocomplete list, it will fill that value to the text input box. What I need it to do is after it fills in the value, also submit the form, à la Google. I know I have to use document.formname.su...
I have a simple Ajax script that works perfectly fine in Chrome, Internet Explorer 8, Firefox 3.5.5 but fails in Firefox 3.5.7. The code is as follows:
HTML Page:
<div>
<form>
<input id='button' type='button' value='click'>
</form>
</div>
<script>
$(document).ready(function(){
$("#button").click(function(){
$.ajax(...
I'm trying to AJAXIFY a form without using jQuery plugins. What is the process for making this happen. I have my form. What should I set the action to? What should the header script be? Keep in mind that I do not want to use any plugins. I just need a basic algorithm for ajaxifying forms using jquery.
...
I'm preparing an application I wrote in ASP.Net MVC for some light Ajax-y stuff. Basically, I want users to be able to go to different parts of the page without it reloading.
To do this I want to be able to reload the body of my page.
My site master is broken down into a head body and foot div. I want to be able to use something like ...
Hello,
I am willing to use the jquery treeview. I have categories and subcategories to choose for an item and I would like to display them in a treeview. I would like then to get the clicked value.
for the moment I am working on something of the kind of :
<ul id="treeview">
<li>group1a
<ul>
<li>group11 </li>
...
I'm using the jQuery Validator plugin successfully on a form. This form is a widget, so space constraints are tight. For that reason, I don't want to show the normal error messages after each form field that doesn't validate.
Rather, for each form field, I have a label, and inside the labels of required fields, I have an <em> with the t...
I am a bit stuck with my website, currently on the new section of my site(among others) the user rolls over a thumbnail and gets the articles abstract displayed below it, and then when they click on said thumbnail the article appears on the left of the page,
The ajax works by pulling the href from the link that surronds the thumbnail i...
What is the equivalent of this script in jQuery (if a was an HTML element)?
a.value++; and ++a.value;
I assume it uses val(), but it seems inefficient to use:
a.val(a.val()+1);
...
I can't find way to style a scrollbar of drop down menu, all solutions are only for DIVs but not for elements. I have tried all JavaScript and jQuery plugins but unsuccessful.
You can see the issue in question here (http://liquor.com/asp-test) - click the drop down under Type of Alcohol and you'll see the scrollbar I wish to style.
...
I created a plugin to bottom-align a element. In it's simplest form I did this:
Get height of outerElement (DIV)
Get height of current element
result = outerHeight - height of current element
sett CSS attribute 'top' = result.
And it works... in Firefox and IE8, but not in Opera or Google Chrome.
I'm guessing it has to do ...
I have a page that has a number of weblog entries on it. Some of those entries have video associated with them. I would like to use jQuery Toggle the visibility of the videos (one at a time).
My question relates to the use of .this so that I only toggle the desired video.
My initial jQuery is:
<script type="text/javascript">
$("#togg...
I am trying to update the text of one of the options on a select dropdown after an action on my page. Does anyone know how to do this in jquery? I have tried this:
$("#selectid").text("newtext");
But that will remove all of the other options in the select list and it makes it blank. I know this is not the right approach because I jus...
<blockquote><p>We prefer questions that can be answered, not just discussed.
Provide details. Write clearly and simply.If your question is about this website, ask it on meta instead.</p></blockquote>.
I want to change above code to this.
<blockquote>
<div class="quote_start"><div></div></div><div class="quote_end"><div></div></...
Hi guys,
I am trying to accomplish to show a div that is in the same list element as the button that executes a javascript statement.
The whole list is loaded by Ajax, so therefore is the live function used.
However, i am quite stuck right now and have no idea of how to proceed. I have tried EQ, next, parent, children in several diffe...
I'm trying to setup a click event on a div, and I would like that event to fire if that div is clicked anywhere except a checkbox in the div. If the checkbox is clicked, I do not want the div's click event to fire. I setup a click event on the checkbox and returned false, which stops the div's click event, but does not allow the checkb...
some time ago, I was reading an article(a library built by some guy) about how his library can do
lazy loading of JS
resolve dependencies between JS
(typically encountered when trying
to "include" one js from another)
include files only once. thought
specified multiple times regardless
of how they are called (either
directly specifyin...
In this static version, in any browser, you can click on the close area to jump to http://www.google.com.
<html>
<body>
<div id="my_div">
<img usemap="#map"
src="http://specialmedia.wnyc.org.s3.amazonaws.com/ads/open.jpg" />
<map name="map" id="map">
<area shape="rect" coords="900,0,1000,20"...
I have some <input>s on my form, and I would like to watermark them with field labels. There are already myriad watermarking plugins, but best as I can tell they all clear the watermark when the <input> is focused, even if there's nothing entered.
What I'd like, ideally, is something that would continue to display until the user typed s...