I need to redirect to a page using javascript/jquery.
I have a page with jquery tabs and in Settings tab i have a link to load some preferences of the user in thickbox and after update i need to reload the main page.
I am using location.href = "/User/Update/" + $('#UserId').val() + "#Settings"; to redirect/reload the page, but the page...
We're creating a web app which is going to designed to be fully 2.0 (AJAX-ed and what not).
As a rich-client and server-side developer, I know Javascript only at a functional level, but I'm beginning to learn JQuery based on recommendations and seeing how simply much of it.
I've found things like SlideDown in its' API which will slide...
I am using Processing.js, with jQuery 1.3.2 at my disposal, and targeting Firefox 3.5, Safari 4 and IE 8 (through ExplorerCanvas). The Processing.js website says "Using Explorer Canvas with Processing.js typically results in unusable frame-rates for moderately complex visualizations." Well, in this case, animation is not required, just s...
Hello
I have recently downloaded Notepad++ and am at loss on how to enable code assist for JQuery/JQueryUI on it.
Any tips and directions?
...
What i have is working, so I'm just asking if there's a more elegant way to do this. I have:
<form method="post" action="15Action.cfm">
<p><input id="A" name="A1"></p>
<p><input id="B" name="B1"></p>
<p><input id="C" name="C1"></p>
<input name="Submit" type="submit" value="submit">
</form>
If the changes either A or B, then concatena...
I have a grid that allows the user to filter. If the user changes the search word that is used to populate the grid, the filter from the previous search remains in place.
<label for="UserName">
User Name:</label>
<%= Html.TextBox("UserName", "") %>
<input id="btnSearch" type="submit" value="Submit" />
</p>
<div ...
I have an application that rates a large set of items and outputs a score for each one.
In my php script I'm using ob_start and ob_flush to handle the output of data for each rating. This works great if I directly load the script. But when I try to use .get via jquery, the entire content loads and then is placed into a container, instea...
I do not get anything in return when passing -1 to .eq() on a jQuery object. This, from the firebug console, shows my problem.
>>> test
jQuery(div#462601759.belt, div#43773862.belt, div#1973215028.belt, div#1811434128.belt, div#486504966.belt, div#100019133.belt, div#1928403755.belt, div#313171064.belt, div#1705880802.belt, div#19641593...
i manage to add recrod via jquery ajax call to webmethod but i want to update the dropdown list once the record is been added. i dont want to use update panel. what would be the best way of doing that. thanks
...
I am on the look out for an accepted solution for trapping errors in the following scenario:
i have an asp.net web services that interacts with the database. I interact with the web service through jquery's $ajax function.
I would like to know what is the accepted stable methodology for error trapping. When the data is received from th...
I have an Iframe for a page that allows people to sign up for my email newsletters.
I want to auto fill the email field in the iframe based on the querystring url (page.html?email=email)
I know how to do the querystring stuff, I'm just not sure If I'm able to access the input text box within the frame. The form or the textbox neither ...
I have 2 arrays of objects. Each object has an Id property. Now, if I have a 3rd array of just Ids, what is the better and faster way of finding objects from array1 based on those Ids and moving them to array2.
Thanks a lot for answering..
Sample code:
Person = function(id, fn, ln) {
this.id = id,
this.firstName = fn,
this.lastN...
I have a large set (around 100) of page elements that I would like to toggle (show/hide) with jQuery.
I just use $(".toggleElementClass").toggle(); This looks like the trivial solution.
The problem is this takes a few seconds, even on the latest Chrome browser. Is there a faster, more efficient way to achieve the same effect.
...
i am trying to implement an html form with this dhtml fade effects: http://dhtmlpopups.webarticles.org/fade-effects.php
but i got no luck.
-i included a jquery validation in the fade effect, and when the user is entering values for the form, the pop-up times out, and when i redirect to "success page", i am pretty much unable to click ...
Hey everyone,
I am trying to apply a drop down validation (so if the value is equal to 0 of a <select><option value="0">) then it applies a background-color of yellow as it does for the rest of my input fields. Here is my code:
<script src="jq.js"></script>
<script src="validate.js"></script>
<script>
jQuery.validator.addMethod(
"sel...
Hi -
New to java, but would love to implement my working jsp that generates xml used by a lovely jquery flexigrid to use a json version (generated by gson). I'm just starting out w/ java basically, but would like to learn the best way to do this. I've been looking at inner classes, but wanted to check out what would be considered bes...
I'm tryng to do
$('input').change(function() {
$('a').removeAttr('href');
});
And this works like you would think it would, except that it still leaves an empty a tag. I'd like to unwrap the a tag all together. I tried:
$('input').change(function() {
$('a').unwrap();
});
But I think that removed the parent element, not the ...
This is code of dropdown
<select id="dropdown">
<option value="">Go to page...</option>
<option value="http://stackoverflow.com">CSS-Tricks</option>
<option value="http://superuser.com">Digging Into WordPress</option>
<option value="http://metastackoverflow.com...
Using Javascript how I can bring up a MediaPlayer Popup on the side of the screen and leave it there as the user navigates through various pages in the site. Similar to http://www.billboard.com and how they have the LALA player.
...
I need to apply this script to work the same way for two other divs:
This works well, but how can I make it do the same thing for two other elements without rewriting the entire thing for each?
$(".survey_option li > a").each().live('click', function (event) {
// First disable the normal link click
event.preventDefault();
/...