I'm developing gallery in my web application and i was creating script which loads and appends new images at the bottom, when users scrolls to the bottom of the page.
But when images become around 300~, appending and scrolling process eats too much process power.
Is the any solution for this issue?
I saw everything works fine in new g...
It looks like Adobe Air has some sort of support for jQuery, so I'm wondering if the workflow for porting to Adobe Air might be more automated than having to rewrite everything.. I'm fairly new to Air, so if so - what are the points of automation, and what are things that should not be automated (in conversion)?
Are all jQuery functio...
is there a way to disable right click in fancybox.
thanks
...
in my code here http://jsfiddle.net/ebSf4/ you can drag from one sortable column to the other. I am adding some animation to sortable's receive event to make the dropped element animate to the size needed in it's new position. This is working great except the receive event fires late the first time you move a given element. The elemen...
In order to highlight spacing between Chinese characters I've got this code
function replaceSpaces(){
var segmented = $(this).val().replace(/\s/g, "<span> </span>");
$('#preview').html(segmented);
}
$(document).ready(function(){
$('.tobesegmented').focus(replaceSpaces);
$('.tobesegmented').change(replaceSpaces);
});...
html-
<div class="hbg">
</div>
some menu items here
jquery for mouser over on menu items-
function imgchange()
{
$('.smenu li').mouseover( function(){
var src = $(this).find('a').attr('alt');
$('.hbg').css('background-image', 'url(' + src + ')');
$(this).find('hbg').attr('title', 'my tootip info')...
In IE 8, jQuery acts as I would expect:
>>$('div',$('<a><div></div></a>')).html('test').html()
"test"
In FireFox:
>>> $('div',$('<a><div></div></a>')).html('test').html()
"<a>test</a>"
It puts anchors around what I wanted. Does anyone know why this would happen?
EDIT: Setting this with plain javascript (i.e. setting innerHTML) cau...
I'm doing a bit of a pedagogical exercise, converting XML to SVG with XSLT, Javascript and Raphael. I'm sure it's the hard way...but it's educational.
The problem I've run into is creating tooltips. So far, I've found three ways to do this:
The first way is to use .attr({title: "blah"{) on an object. This works, but it's not supported...
I've setup jcarousel to dynamically load elements as they disappear and then have them reappear
now it's given me an error saying: "No width/height set for items."
I've tried the hack described here: http://old.nabble.com/jCarousel:-No-width-height-set-for-items.-td13913308s27240.html
and it caused firefox to crash (probably because ...
I am trying to load a web page in a new window on class="link" Below is what I have but it does not seem to work in IE 7-8
$('.clicky').mousedown(function(){
window.open("http://google.com");
});
Here is the complete context http://jsfiddle.net/Zw5c2/14/
Foolish me it was my pop up blocker. But I modified the scrip...
I have a single-page ajax powered web app, however the way my app works is if a hash string is in the url it will load that element which is really useful for people to link to content on it.
When it comes to bookmarking/favouriting things are different. My users want to book mark the app and not the current bit of content (hash string)...
I'm trying to get only the selected part of an input string that was selected by the user. Let's say I have this input :
<input type="text" name="first_name" id="first_name" value="Enter your name" />
And the user selects the "Enter" word by clicking and dragging in the text field. Can I retrieve that text with jQuery?
I know I can g...
I'm using Ubuntu 10 and trying out the below code in Firefox 3.6 and Chrome 5.
$(document).ready(function(){
$(document).bind("keypress", function(e){
alert("Pressed");
});
});
Surprisingly the above code works well in FF3.6. i.e. for every key pressed, I'm getting an alert box.
But in Chrome, i'm...
I've got a problem in internet explorer 6 and FF with something I'm trying to implement in jQuery. Basically there is an object at the top of the page using floated content that seems to be interfering with the $(window).scrollTop() property.
It was my understanding (and if I'm wrong, please help me by telling me the right way!) that $...
i am trying to search all numbers (of digits 8) in body using jQuery, its only returning first no. in body?
var myRe = /[0-9]{8}/;
var myArray = myRe.exec($('body').html());
alert(myArray);
...
Hi everybody!
I want to add a javascript google ad but I can't insert the javascript into the div using jquery. I try to simulate my problem with this test, which is using some advice I found on stackoverflow , but it does not work.
I want <script type='text/javascript'>document.write('hello world');</script> to be inserted in the div,...
I'm not exactly a novice, but I can't for the life of me figure out why something so simple isn't working.
I'm getting an error $.history is undefined when trying to run this jQuery plugin...
http://www.mikage.to/jquery/jquery_history.html
here is my page...
http://hupcapstudios.com/includeTest/getit.php
can anyone tell me what I'm ...
I have a sample application, trying to learn jQuery validation and submit form in this scenerio.
The page has one text box (EnvelopeID per class Envelope). If submit button is clicked and the text box is empty then i want to show an error message. If it is not empty then i want to post ajax request to GetData Action. The action returns...
Hello,
I want that when mouse is over an image, an event should be triggered ONCE, and it should be triggered again only after mouse is out of that image and back again, and also at least 2 seconds passed.
My current function is called continuously (refreshcash) if I leave the mouse over my image
<img src="images/reficon.png" onmouseove...
Hi I'm struggling in getting the end bit of this jquery correct and I'm not sure if it'd work - want to add to a image filename if the screen is a certain size
here's the code
<script type="text/javascript">
$(document).ready(function() {
if ((screen.width>=1024) && (screen.height>=768)) {
var re = new RegExp("(.+)_hover\\.(gif|...