Hi guys,
I am looking for a news ticker pretty much identical to the one on twitter (the one the scrolls horizontally)
The main things I am looking for:
Continuous scroll
- When an element is no longer visible it is removed and put at the very back of the list.
No Pause
- It should be a smooth scroll, not a scroll, pause, scroll
I ...
//when document loads
$(document).ready(function() {
//navigation item is clicked
$('.nav_item').click(function() {
//get the clicked nav items id
var nav_item = $(this).attr("id");
var location_to_load = nav_item + '.html';
//load the loading html then the page
$('#sliding_content_container').load('loa...
Simply put: the jQuery object is a composite pattern. How do I add jQuery objects to it?
An example:
var e1 = $('#element1');
var e2 = $('#element2');
...
I know want to create a new jQuery object jq such that it is composed of e1 and e2. I want to be able to do something like the following:
var jq = $();
jq.addInjQueryObjects([e1,...
Hi,
I've made on my website a search.php file that produce a JSON string, helping me to use real-time ajax for my apps.
But now, I'd like to open it as an API to others, but I discovered that $.get $.getJSON $.ajax doesn't allow to use my search.php file from other servers/domains.
How can I do to transform my php search into a search...
Can anyone help me understand why the following code does not display any content in the second alert? Browsing to the same url that I pass to getJSON() produces output in my browser window.
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<script>
...
I have the following script in my web page to call out to a JSON-enabled WCF service that I have created and am hosting on my web server. However, the alert displays "null". When I point to the url in a browser it returns very simple JSON: {"city":"Ann Arbor"}. Also, when I run the page containing the code below with Fiddler running,...
I'm developing a chrome extension for twitter.com users. I need to trigger click event for the "new tweet" link using jQuery (javascript) but I couldn't can anyone help?
$("#new-tweet").trigger('click'); // not working :(
...
I am using a jqgrid (3.8) and I want some help in loading Summary row at runtime.
My grid is getting data locally (i.e. datatype:"local"), from an object that is being constructed due to some user operations (no server roundtrip).
For e.g. my datasource looks like this:
MyCollection = [
{name:"a", price:"10.2", ...},
{name:"a"...
I'm trying to use jQuery .button() on a checkbox, but i can't understand why this is'not working.
this is the javascript code:
$('#login_checkbox').button();
and this is the html code:
<input id="login_checkbox" type="checkbox" value="login_remember"/><label>Remember me</label>
I'm doing everything exacly as shown here: http://jqu...
Hi, I'm trying to reproduce an accordion effect when scrolling up and down shown on Apples website here: http://store.apple.com/us/compare/mac?mco=MTg4Mjg5Nzk&page=imac (click "Compare" on any mac then start scrolling down)
This is what I have so far: http://jsfiddle.net/mackry/3KZky/15/
It's very complicated and a mess to look at....
Anyone have an idea of how to create computed columns. For e.g. I have a grid like:
$("#myProductGrid").jqGrid({
url:DUMMY_URL,
dataType:"local",
width:285,
colNames:['Item', 'Unit Price', 'Qty', 'Discount', 'Sale Price'],
colModel:[
{name:'description', index:'description', summaryType:'count'},
{name:'unit_price', ...
OK, so I'm trying a to use a cool image loader/gallery I found here called ShineTime.
I want to adopt it to resemble a product viewer on my homepage where you can view the blank space I have reserved for it.
Now, since I need to adapt it to be a product viewer, I would like to have links to products or services I'm previewing.
I have ...
Hi,
I'm looking at adding a rating system to my site, similar to that seen on Amazon. Basically users can rate the product out of 5 stars.
I've been racking my brains to think of the calculation to get the average customer rating... but I can't think how to do it.
And looking at Amazon's system, I think their caculation may be incorre...
Here is my simple jQuery function to partially update a page
<script type="text/javascript">
$(document).ready(function () {
$("#prevlinkh").click(function () {
var pagenumber = $("#prevlinkh").attr("pn");
$("#filelist").load('/uploads/<%=FileCategoryName %>/' + pagenumber + " #filelist>*", "");
return false...
Hi
the string looks like this
"blabla blabla-5 amount-10 blabla direction-left"
How can I get the number just after "amount-", and the text just after "direction-" ?
...
Hi ,
I am using the following code to fade out background while showing a popup. This is the div container
Css for the same
#VbackgroundPopup{
display:none;
position:fixed;
_position:absolute; /* hack for internet explorer 6*/
top:0;
left:0;
background:#000000;
border:1px solid #cecece;
z-index:1;
}
When some clicks a div...
I have this button, and when clicked, it sends an ajax call which changes the value of score_up.
I dont see what the problem is. I tried firbug, but apparently it's not even detecting the javscript? :)) Thanks.
jquery:
$('.stats').delegate('.support', 'click', function(e) {
//stop event
e.preventDefault();
//get th...
i have a jquery template:
<div id="test_template">
<img src="${url}" width="31" height="32" alt="" />
${url}
</div>
I compile it with this:
test_template = $('#test_template').template();
I render it with this:
$.tmpl(test_template, {url:'http://sstatic.net/stackoverflow/img/sprites.png'}).appendTo('#render_test');
the e...
Suppose I'm building a StackOverflow clone using webforms ASP.NET and jQuery. The Question page has a question, several answers, and comments under each. Requirements:
Users can post new answers and comments, and edit existing ones, without postbacks.
No UpdatePanels; the AJAX calls retrieve just the JSON they need, not HTML fragment...
I have a bunch of links on my page, in the format:
<a href="/q/10/Title">Title</a>
How can I grab the "10" from this link and use it as a variable?
Thanks.
...