jquery

How to make uneven text wrapping (not square or round) like this with semantic and clean HTML, CSS?

How to make text wrapping like this with semantic and clean HTML, CSS ? With compatible in all browser. Adding different classes to <p> is the only solution I'm thinking if there is no other solution. but with that way every time client would not be able to change classes, which is drawback. ...

What's a reasonable amount of data to load onto a single page?

I'm working on this page for a photographer. I wrote a jQuery script that flips through the images. I was originally replacing the src attribute but found that some browsers don't update the image until the new src is fully loaded, so I ended up replacing the whole tag. However this still left the problem that images would reload if revi...

Is there anyway to make a jQuery UI Datepicker unclickable?

Is there anyway to make a jQuery UI Datepicker unclickable, so that it's essentially just displaying a date? I tried $("#calendar").datepicker({ disabled: true, altField: '#note_date', maxDate: 0 }); but it didn't work. Thanks for reading. ...

How can I make my php pagination paginate via Jquery AJAX

I am currently using PHP to paginate my data from mysql. I want to use the jquery load function to load the next page when a link on the pagination is clicked. Pagination links look like this: <div class="paginate"> <a href="index.php?page=2">2</a> <a href="index.php?page=3">3</a> <a href="index.php?page=4">4</a> </div> I ...

remote image properties using jquery

Hello, Currently i am trying to get remote image width/height. I am developing a link sharing module something like when you paste a link on facebook, you can see title, description and images. So i tried using php getimagesize to get image width/height its very slow. So i am thinking of using jquery solution to get remote image width...

SwfUpload and jquery .show and .hide

I'm trying to get swfUpload to work in my application for file uploads. It works, but I want to show the file upload only if the user clicks on a button (for design reasons, and because I need to have other values available on the page before this upload is created). But in order to wait to show this upload, I have to hide the form with...

Preloader with JQuery OR Advanced Page Load Behavior with jQuery Progress Bar

We have a jQuery Progress Bar. Is there a way we can have the progress bar displaying the loading of an HTML page which has PHP, CSS & JavaScript and all in it? Like a preloader and when the page has been downloaded and rendered fully then display it. If not with progress bar can we make a preloader with jQuery? ...

jQuery: ajax event

OK here is my code $("#content_Div").ajaxStart(function () { $(this).css('cursor', 'wait') }).ajaxComplete(function () { $(this).css('cursor', 'default') }); this is a fairly simple problem: on ajaxStart the cursor immediately changes to the (wait)hourglass but on ajaxComplete it doesnt change back to defalut untill you move t...

jQuery date validation only works in Firefox 3.6

Hey. I'm trying to validate a datepicker in a form, but it only seems to work in Firefox 3.6. I can't see what i'm doing wrong, please lend me your wise eyes to check through my code. Live Example: http://event.gusthlm.se/make.php Try picking any date ("Börjar" and "Slutar"), also try switching month with the datepicker up. Validation...

how to get current time and then compare them using jquery .

this is my code: var currentTime = new Date() var month = currentTime.getMonth() + 1 var day = currentTime.getDate() var year = currentTime.getFullYear() var hours = currentTime.getHours() var minutes = currentTime.getMinutes() alert(minutes+"/"+hours+"/"+month + "/" + day + "/" + year) but , i think it hard to compare with two t...

HTML/CSS/jQuery: Tabular data & thumbnails

Is there a quick/easy way to have tabular data and have a button that turns them to thumbnails (kind of a 2-view system, table/thumb)--I'm not looking for image thumbnails... Any ideas are appreciated! :) Examples: ...

Why do my dynamic CMS forms not load everytime?

I'm using CKEditor to created the portion of my CMS for the user to input content. My CMS is a bar/menu at the top with the sections of the site for the user to create, update, or delete an entry. When the user selects an option I send the request for the form items to php using jquery AJAX $.post. The function returns the code and I us...

XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

I'm developing a page that pulls images from Flickr and Panoramio via jQuery's AJAX support. The Flickr side is working fine, but when I try to $.get(url, callback) from Panoramio, I see an error in Chrome's console: XMLHttpRequest cannot load http://www.panoramio.com/wapi/data/get_photos?v=1&amp;key=dummykey&amp;tag=test&amp;offset...

Accessing Flash functions through jQuery

I use the following jQuery code to access functions in my SWF (FP 10.1 SWF embedded via SWFObject): $('#FlashApp')[0].someFunc(); This works fine in every browser.. except for Internet Explorer (surprise!). Surely, the point of jQuery is to make this code work across all browsers? I'd really rather not write extra code to check for IE...

jquery: function in "onclick"

$('.more').click(function test(id) { $('#MoreFriendInfo'+id).toggle(); }); I made this, function test(id), now how should i make the link right in html/php in order to grab the id? I tried this, but it doesnt work: <a class='more' href="javascript:void(0);" onclick='test(<?php echo $showInfo["bID"]; ?>)'>mer</a> In ...

jQuery results set keeping populating

I have jQuery function that makes an ajax call that builds a HTML string to populate the <ul></ul> feature. the problem is there is link on the page that does a refresh of the page, the problem is that the HTML that got added the jQuery ajax call adds the HTML to the page again so that the result is not doubled. if you do it again the ...

using multiple id in jquery

I made little jquery script for checking if input box value bigger than 5 .but I have 2 tag with an id and only one of them works. <div id="register"> <form id="register"> <input id="first" type="text" /> <a id="first" ></a> <br /> <input id="second" type="text" /> <a id="second" ></a> </form> $('input').keyup(function(){ ...

RightJS javascript library in daily use.

Wondering if anyone here can offer any insight into the ups/downs of using the RightJS library, specifically as compared to jQuery, and generally compared to what you think a library ought to offer. I'm not so much looking for a feature to feature comparison, but rather a sense of the general daily use. Things like: Does it feel nat...

Window scroll to DIVs

Good evening, I have been trying to figure this problem out for a while now but I cannot seem to find enough resources online for a viable solution - maybe I'm not looking hard enough. Anyway, what I am trying to do is have 6 divs that are all over the page - making the window scrollable. I intend on having a navigation bar, that is z...

How can I extract the fb:profile-pic uid attribute value using jQuery?

From the following XML, I must extract the value of the uid attribute (557103888) on the fb:profile-pic element: <li class="ui-widget-content ui-corner-tr ui-draggable"> <fb:profile-pic height="32" width="32" linked="false" uid="557103888" style="width: 32px; height: 32px;" class=" fb_profile_pic_rendered"> <img class=""...