I 've created a small photo tour using HTML, CSS and jQuery. It works fine in Firefox and other browsers, but has some problems in IE.
Here's the code I use to load the data:
function loadNode(nodeID){
jQuery('.churchViewError').hide('slow');
jQuery(".churchViewLoading").show( 'fast');
jQuery.get(cVBaseURL+"ajax/getNodeHTML.php...
does any know a good jquery character count script, tutorial or plugin?
...
I have an element that I grab the content of and swap for an input, I then want to user to be able to click on the input (to enter text as normal), but if they click anywhere else to swap it back to the text.
However the click event seems to fire even the very first time the user clicks anywhere on the page. My code is below, have I mis...
Hello all.
I have this small function that allows me to fade background image on hover on my menu .
$('.menu li').append('<span class="hover" />').each(function() {
var $span = $('> span.hover', this).css('opacity', 0);
$(this).hover(function() {
$span.stop().fadeTo(300, 1);
}, function() {
$span.stop().fade...
Is there an event jquery fires on a dom element when it is inserted into the dom?
E.g. lets say I load some content via ajax and add it to the DOM and in some other piece of javascript I could add an event using .live() so that when an event matching a specific selector is added to the DOM the event fires on said element. Similar to $(...
Hi,
I'm writing a jQuery plugin that works on a piece of JSON data object.
This data needs to be calculated by the plugin only once, so I want to calculate it on the first call to the plugin and store it to be used in every subsequent call.
My questtion is whether there's a standard and accepted methodology for storing data used by jQuer...
I have a navigation that is made with sprites. It's almost perfect except the client wants a hover on and hover off effect on it. I used :hover for that but he would also like to have fadein effect with the sprites.
Here is the site I am currently working on.
I tried this bit:
$("nav ul a").hover(function(){
$(this).stop().fadeTo(...
I need a handy jQuery tool (plugin) to work with the map.
The project has narisovanaya map with cities marked on it, the possible routes.
Example
I want to:
To apply the route (in this example it is shown in green) on top of the map (img)
Display a small div with information about city
Now inclined to think that would work to im...
Hello, sorry for the bad English
It is necessary for me, that at click under the link (sample: 28 April 2010), under it the jquery.datapicker opened
To use <a></a> instead of <input type="text" />
...
Hello,
I've a problem with the animation method.
<div id="containment">
<div id="child1">C1</div>
<div id="child2">C2</div>
<div id="child3">C3</div>
</div
C1 to C3 are draggable elements, and I haven't applied any constraint on it, because when I'm out of #containment, I automatically resize it.
$("#containment > div")....
I'm using the .length method in a conditional statement that polls the page for the presence of an externally-loaded object (I can't style it with jQuery until it exists):
function hackyFunction() {
if($('#someObject').length<1)
{ setTimeout(hackyFunction,50) }
else
{ $('#someObject').someMethod() }}
Is length the best way t...
So I have this one CakePHP web application that I'm trying to refactor.
There is a large portion of code that usually works like this:
E.g. "Flag":
User clicks flag button
Redirect the user to the flag action
Flag action flags post
Redirect user to post that was just flagged.
I am also trying to enhance it with JavaScript like so:
Use...
Hello,
I have to interview a guy for an ASP.NET MVC position. Its a short term contract so I need someone who knows it pretty well. Also there is a lot of JQuery involved.
I was thinking of starting with general questions like:
What is MVC in general?
Why use ASP MVC Framework? Comparison with Webforms.
.. etc.
But what other ques...
Using an .net MVC2 app is generating a string of HTML code that be copy/pasted by my users to a 3rd party's web app. In other words, i'm not looking to render the HTML - i want the string to be displayed verbatim.
I need to understand what JSON/jQuery properties have to be explicitly set so that my app's string shows up as pure ascii -...
Hello,
I have a question about selecting selectboxes with Javascript. I have upload the files on http://www.mikevierwind.nl/javascript/risicoinventarisatie.htm Here you see a table with a lot of questions and radiobuttons. Every question have 2 radiobuttons, yes and no.
When you go to the first question. "Diabetes" Than you choose for...
Hi all I'm running a php/mysql dating site and I want to implement on-screen notifications for members on certain actions (for example when another member views your profile, sends you a wink, etc). Very similar to growl on the mac or facebook notifications when someone comments or writes on your profile.
I'm not really too sure where t...
I can create a Json object as here
http://stackoverflow.com/questions/920930/how-to-create-json-by-javascript-for-loop
great!
and I have created on like bellow
[
{
"id": "10",
"userName": "kuttan"
},
{
"id": "11",
"userName": "kunjan"
}
]
Suppose I want to update name of the user with...
I have some jQuery code, where you click on text and it changes into an input and when it blurs (looses focus) it changes back to text and visa versa, however on the third call is completely breaks and I have no idea why?
Does someone have any idea?
Code at
http://jsfiddle.net/Pezmc/x2fQP/4/
Copy
$(document).ready(function() {
fu...
Hello all,
When I use uploadify to upload photos to the server I use the following script (The script is placed in the Photo.aspx (this is the view of the UploadController and the Photo action)):
<script type="text/javascript">
$(document).ready(function () {
$("#fileInput").uploadify({
uploader: "../../Ima...
I'm trying to implement key-press functionality which will remove a div when the user hits Esc. This works for Firefox & IE with the following code:
$("body").keypress(function(e) {
alert("any key pressed");
if (e.keyCode == 27) {
alert("escape pressed");
}
});
If I hit any key, the first alert is displayed, and if...