Hi all,
I was wondering if there's a better way to execute a link's href attribute other than evaling it?
For example:
eval($("a[href^=javascript:]").attr("href").replace(/^javascript:/,"")); // better (more eficient) way to do this?
Thanks!!
...
hello guys,
trying to use a tabbed interface on the portfolio section of my site using jquery.
all that i need achieve is adding the class 'active' to the li element when the user clicks that tab's link. thought my coding was quite typical, though can only get it to work in google chrome and safari. firefox and internet explorer adds '...
I am thinking about writing a script that will perform a sort of checkout procedure automatically similar to a program like Ebay snipe.
I will know what the page exactly looks like. All I really want to do is load the page from a different domain than the one that is running my script into an iframe, have jquery insert the data into the...
I have following "jquery/javascript" code:
$.ajax({
url: "PpbData",
data: {RaidId: raidId},
success: function(text) { $('input#PpbData').val(text); },
dataType: 'text'
});
code updates a textbox from server using AJAX. It works.
But when the response is empty string - I get 'no element found' in firefox console.
Not a ...
Hello,
I'm trying to get the ID value of the set of radio buttons. Here is the radio buttons.
<input id="1" type="radio" title="2" value="6/1/2010" name="vacationDay">
<input id="2" type="radio" title="2" value="6/2/2010" name="vacationDay">
<input id="3" type="radio" title="2" value="6/3/2010" name="vacationDay" checked='checked'>
H...
I have this:
function startLoad(object_id) {
$j('div#'+object_id).addClass('currently-loading');
var con = $j('div#overlay');
var img = $j('div#loadimg');
var tab = $j('table.app');
con.height(tab.height() - 30);
con.width(tab.width());
con.css('display', 'block');
img.css('margin-left', (con.width() / 2 - 36) + 'px');
img.css('margin-...
Hi,
I have a webapp that needs to have the option to be used in a kiosk-style, touchscreen-only environment. Am wondering whether there are any good browser-based keyboards we could use. Probably something javascript or jquery based. Basically we would like to replicate the experience of typing on a mobile browser, but in a normal br...
i want to grab the text between two tags, which is in main div, following is the example...
<div class="main_result">
some text....
<div>other divs</div>
<p>some other html</p>
<div class="bread_crump"></div>
text i want to grab
<b>selected category</b>
some other text and div...
</div>
obviously following example dont work, but i...
Alright so I've got this script sort of working. The ajax call works and the correct data is returned. The problem is that when keystrokes are pressed quickly (not real quickly, just normal typing speed), then the animations keep going back and forth, and every ajax call is still executed.
How can I make it so that:
1) the ajax calls d...
How to format this date type 2010-06-24T00:00:00Z to sun,24/06/10 7.15 p.m (CDT). using javascript or jquery.
sun,24/06/10 7.15 p.m (CDT) this is just a format representation which i need & not the actual date of the above string.
Appreciate the quick response
Thanks in advance!
...
Can anyone explain me how to do this, jquery's api is really lacking on this. What is wrong in the following code?
var arr = $(value).filter(function() { return $(this).is("TD"); } ).html();
alert(arr[1]);
I just want to grab the innerHTML/text of the td and put it in an array
...
I have a table where each row has a category column and a sub-category column. I need to let the users chose a category to filter, and then only show the sub-categories that are related so they can filter further. I'm thinking it could be a select drop-down list and only show a second drop-down list when sub-categories exist. I've seen s...
I've got the latest version of jquery library installed and just want a simple lightbox effect (preferably without having to install any additional libraries).
When a thumbnail image from my carousel widget (jcarousel lite) is clicked, I want to show a full size image of that same image in a closable window and grey out the background.
...
Hi, im working on a Google Map in javascript(v3).
I need to show some markers from XML, for wich i use Jquery.
heres the object and function, might save me time explaining:
var VX = {
map:null,
bounds:null
}
VX.placeMarkers = function(filename) {
$.get(filename, function(xml) {
$(xml).find("marker").each(functio...
I am using remote validation on a textbox and I am returning an object from the validation service with properties which should be used to populate other elements on the form. I have the following code in the rules options for my form:
<%= Job.UniqueID %>:{
remote:
{
url: "ComboBox.svc/Validate...
Using the jQuery cycle plugin: jquery.cycle.all.min.js - latest version (2.8.8) from http://malsup.com/jquery/cycle/
I'm utilizing the scrollHorz effect with prev and next links. Works beautifully except for one thing, when the page loads, the slideshow isn't automatically scrolling, it requires the user to click prev/next.
Is there a ...
Hi I can't seem to get this right. Basically if the value of a select list is either "USA", "CAN", or "MEX" it should return true. any other value should return false. This only returns true if the value is "USA"
$.validator.addMethod(
"ReutersNA",
function(value, element) {
var selectedCountry = $("#Country").val();
var NorthAm...
Hello, I'm trying to do something that I dont know how to do, but I know can be done. There are 2 divs, they both expand the full width of the browser window, they are both 450px in height. So basically 1 block on top of the other. I want to put a div in between these two, that gets revealed from hovering over something in the top Div(bu...
I'm new to JQuery and don't have a huge background in Javascript, either - so that could be contributing to my problems... I'm trying to dynamically generate a list of items and bind click events to each of the dynamically generated elements. I can create the list and successfully bind the click events, but then I ran into a stumbling ...
I have a standard <select> and would like to open it when a user clicks on another element. It's pretty simple in a regular browser and even on the iphone, but for some reason nothing working on Android.
I've tried the click and focus events, and also tried changing the size attribute of the select but none of these worked.
Has anyone ...