I have two views: create and edit. Both share a strongly typed editor template user control.
I have a jQuery wysiwyg editor on the shared editor template, and it works fine without errors on the create view, but when I load up the edit view, firefox reports that "$ is not defined" "jquery is not defined" etc.
Also, the images from th...
I'm using jQuery and cycle.js to fade through some images on this site.
On the first and last slides, I've put a callback function to go to the next/prev pages, however in IE7 I'm receiving a runtime javascript error (not in any other browsers).
Here's the link to my javascript file: http://bit.ly/dAKEof
The error I'm receiving in IE...
Hi guys,
On my site I installed superfish dropdowns, which I use on other sites as well. Anywho, I thought all was working because they work fine in Safari, FF, and IE8. But alas, in IE7 (and probably IE6 but I don't care!) they do not appear.
I read about Z-index issues with IE7, but none of the solutions worked.
Anyone know how t...
Hey,
I plan to use some music on my site, but before I make it autoplay for each visitor, I would like to have either an alert pop up immediately, asking if they would like the music to play, or a nice little tooltip of some sort to present a message stating that you can check whether or not you would like the music.
So, I know I can s...
I am using fluent NHibernate with WebForms and I am trying to build a page where I allow a user to post a status update on their profile page and I a using a .asmx WebService to post the data to the database and then returnig a StatusUpdate instance to the page to be used by jQuery. I have a couple problems.
1) First off when I return a...
I have a whole bunch of divs that have a class called ofint. Each of them may have additional classes. I'd like to store this information about each div and then print them.
So I'm trying to loop through all divs of class ofint and store the div id and its classes in an array. The idea is that I'll search the array later, but for now I ...
I have an AJAX callback that returns a list of results that are written out as links within a specific div. The code goes something like this:
$.each(data, function (idx, item) {
var a = document.createElement("a");
a.innerText = item.name;
a.href = "#";
// TODO set handler for click event
d.appendChild(a);
d.in...
I'm using the jQuery cycle plugin found here: http://jquery.malsup.com/cycle/
It works well. My client wants a list of <div>s that contain images and text, etc. to slide horizontally on the front page. But she also wants me to use the previous and next options to have arrows on either side that can control the sliding panels.
Here is t...
$('#myTable').click(function(e) {
var clicked = $(e.target);
clicked.css('background', 'red');
});
Can someone explain this to me, and explain why e is needed, and what it actually does..
...
There are a couple of tools and several tutorials (even some including links to github) on how to preloading images and other artifacts, like css and scripts. YUI3 preloader seems to be the most reliable one.
Is there a better one? Are there any others that are faster (possibly through parallel loading), more usable or has better browse...
i want to make bar chart,but i want to write dynamic text on bar itself.
...
if australia is selected, it will show only city of australia, if city is selected, will only show location of that city
...
I need a simple and flexible autocomplete jQuery plugin. In your experience, which jQuery plugin has the best performance and flexibility?
...
This is my second attempt at a php contact form using Jquery and php to validate. I am pretty happy with the jquery but am unsure if I did the php right. I looked online and combined a few tutorials. Is this the best way to go about validating the fields and making sure the sendmail function is not improperly used? Is this a good way of ...
Hi,
How do I select/highlight the default value inside the input on focus?
thanks
...
$('h2').each(function() {
$('UL.chapters_list').append($('<li/>', {text: $(this).text()}))
});
This code grabs all of the <H2> tags on the page, then copies each of them to their own <LI> inside of <UL class="chapters_list">, so essentially it creates a list of all the <H2> tags.
I need to wrap each <LI> tag that it creates, with ...
HI we are using spring MVC as our application framework and in one of our modules we need to make an ajax request from one of the jsp's based on the response from the controller we need to redirect to another page.
$.ajax({
type: 'POST',
dataType:'text',
async: false,
url: "${requestContextPath}/home.htm...
I am using the following javascript to animate two slideshows using the nivo slider object in jquery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"></script>
<script src="jquery.nivo.slider.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(window).l...
Hello, this is what I have so far:
<script>
$(document).ready(function(){
$(".entry-content img:first").addClass('postimage');
});
</script>
As you can see, for the first image of .entry-content it adds my class. Cool, that works fine. Uncool, it doesn't work for every post but only the first on the page.
I'm not sure how to fix ...
This is a two part question, but I want to make sure the first is actually achievable.
Firstly, can you get access variables set by img src? I am attempting jQuery, including MySQL UPDATE etc, but this I needed to make sure would work?
<a href="#" class="chnge"><img src="filename.jpg?id=1&open=1" /></a>
The jQuery would then have ...