Hello,
I'm creating a modal window bookmarklet that allows you to quickly add content to my website. It all works fine and dandy except for non-html content, because then it cannot append data to the body. Instead, I'd like to do a simple location.href.
Current code:
if (typeof jQuery == 'undefined') {
var jQ = document.createElem...
I would like to know how would i create rollovers for my navigation bar, and also apply some JQuery to set the opacity 0 to 100 once the navigation has been hovered if that is possible.
My navigation when hovered. The glow in the letters.
HTML: (ignore the empty divs)
<nav>
<ul>
<div class="ref1"><!-- empty div for reflect...
Hi, I have a problem with Google maps API. I'm using V3 API and fancybox for show up map in lightbox-like div. When I click on the link for the first time, fancybox opens and map loads as well. Everything seems to be OK, but when I close the fancybox and try to reopen, the map is loaded wrong..It loads only at about half area than it has...
Hi,
whats wrong with my code?
Why i don't get options value(in my sample - 1)?
<script type="text/javascript">
$(document).ready(function(){
if ($("#number option:selected").length > 0)
{
alert('selected id:' + $("#number option:selected"));
}
});
</script>
<body>
<select id = "number" name = "number">
<optio...
I will use the jquery plugin datatables. I saw fnRowCallback in the docs, but it seemed complicated.
How would the code look like if I make 2 types of changes to the rows and data of a table that looks like this:
<table class='activitylocation'>
<tbody>
<tr>
<td>John Smith</td>
<td>123 Fake St</td>
<td>lat_1</t...
I'm new to jQuery and Javascript. I'm trying to make a button that I can double click which then loops through all elements in the webpage with a certain class and fades them.
Currently, I'm trying this:
$(".fadeall").dblclick(function() {
$("div.section").each(function(idx,item) {
item.fadeTo(25,inactiveOpacity);
});
...
Hello friends,
I have two fileds in my View one is Effective data and one is Cancle date
<td>
Effective date:
</td>
<td>
<%= Html.TextBoxFor( x => Model.SelectedAccountGroup.GroupEffectiveDate, new { @class="datepicker"} )%>
<%= Html.ValidationMessageFor( x => x.S...
Ok, this is one of these basic questions, but I've googled and debugged now for two hours and the error escapes me.
Simple scenario: WCF service with methods with parameters which I'd like to call through jquery. I can call methods without params alright, but with params, the call never makes it to my breakpoint in .NET.
ServerCode: ...
Hi I have a simple ajax search that returns the results in a table. I can extract the XML and display it fine but what I cannot do is get the index number of the data (var Rows) .
When a user clicks the returned result I believe I would need this in order to retrieve all the data in order to use IE $("name:eq(1)",data).text();. Can anyo...
I followed the excellent post by Nadia here http://stackoverflow.com/questions/860055/jquery-override-default-validation-error-message-display-css-popup-tooltip-like and it works great. But the form i am working on is submitted via ajax and a table above the form is updated when succesful The table grows with each submit and the position...
I want to do:
$("img").bind('load', function() {
// do stuff
});
But the load event doesn't fire when the image is loaded from cache. The jQuery docs suggest a plugin to fix this, but it doesn't work
...
I love the way StackOverflow handles tags. Is there any jQuery plugin that would duplicate the behavior?
I found this jQuery Tag Suggest but it's not near as good.
Any suggestions?
...
I swear I saw an article about this at one point but can not find it...
How can I perform a jQuery ajax request of type POST on another domain? Must be accomplished without a proxy. Is this possible?
...
The jQuery templates plug-in uses ${foo} syntax (example in jquery.tmpl doc):
$.tmpl( "<li>${Name}</li>", myData )
But Grails also uses it (example in Grails doc):
<body>
Hello ${params.name}
</body>
So when I include $.tmpl( "<li>${Name}</li>", myData ) in my .gsp, Grails renders it as $.tmpl( "<li></li>", myData );.
Is there a...
Note: I have a workaround to this problem, but I'd prefer to comma-separate the values as I describe below rather than separating them with spaces (which is what my workaround does).
I have an ASP.NET website that allows instructors to choose from a DropDownList of preset comments and apply these comments to students in their classes. I...
i have this voting jquery script, which works fine, but i want the option for the user to toggle the vote, just like stackoverflow, so basically
you can vote up by clicking up arrow
increase vote by 1
if they click again on the picture(arrow up)
minus 1 from the vote
my jquery script:
$(document).ready(function() {
$('.s...
I have a jQuery code block for a twitter widget i'm developing ,
$.getJSON("http://twitter.com/users/show.json?screen_name=" + twitterfeed + "&callback=?" ,
function(data) {
var fString = ($('<div id="userimage"><h1>'+ data.followers_count +'</h1></div>').digits()).text();
var tString = ($('<div id="userimage"><h1>'+ d...
I have a site with a session timeout of 15 minutes. On some pages a user occasionally spends longer than 15 minutes filling in a reply. What is the best solution to keep alive the session in this case?
I already use JQuery on these pages, so possibly pinging a server, but on what events?
The backend is a Struts on Tomcat.
...
Is there a good example of a jQuery autocomplete location-search plugin or something like that out there?
...
I am learning Cakephp and I've been trying to delete multiple (checked) record using checkbox, but still not success. here's my jQuery :
var ids = [];
$(':checkbox:checked').each(function(index){
ids[index] = $(this).val();;
alert(ids[index]);
});
//alert(ids);
var formData = $(this).parents('form').serializ...