Hello
i get this error when i use the jquery cycle plugin:
$cont.innerHeight is not a function
this is my javascript
$(function() {
$('#feature').cycle({
fx: 'scrollDown',
easing: 'bounceout',
delay: -2000,
timeout: 10000
});
});
this is the line in jquery.cycl...
I am trying to create a jQuery function that will take a string and a fixed width as an input, then through a binary search method (for efficiency) "shrink" that piece of text so it's no longer than the fixed width.
This is what I have so far:
function constrain(text, ideal_width){
var temp = $('.temp_item');
temp.html(text);
...
I'm trying to get the content of a textarea inside a sortable item in jQuery... I can't seem to figure it out! Here's what I have now:
jQuery(document).ready(function() {
jQuery("#list").sortable({
axis : 'y' ,
revert : 'true' ,
opacity : 0.5 ,
stop : function (e, ui) {
jQuery("input#output");
}
}); ...
Well im trying to return a more complex type than a string or bool but i fail what am i doing wrong?
JavaScript
<script language="javascript" type="text/javascript">
///<Reference Path="~/Script/jquery-1.3.2-vsdoc.js" />
$(document).ready(function() {
// Add the page method call as an onclick handler for the div.
...
I'm looking for a javascript library (could be based on jQuery) that will implement a client side Form Editor.
The perfect example is something like offered by http://wufoo.com/
You should play with their free version to get the feeling of what I'm trying to find.
Also see this example someone made with jQuery. it is very basic, but a ...
I have an ASP.NET MVC server app and client code which uses jquery. I'd like to use ajax to transfer objects from client to server and back. On the server, I'd basically just be validating and serializing them. On the client, I have some UI code to create a visual representation and some other code to manage some object properties.
M...
I've built jQuery function that takes a text string and a width as inputs, then shrinks that piece of text until it's no larger than the width, like so:
function constrain(text, ideal_width){
var temp = $('.temp_item');
temp.html(text);
var item_width = temp.width();
var ideal = parseInt(ideal_width);
var smaller_text = text;
var ...
I have a JSF application that uses mostly Richfaces. I would like to introduce a more feature-rich grid control, such as the jQuery-based jqgrid. Is it possible to get JSON data from a JSF backing bean? If not, is there an alternative approach?
...
When you choose a preview link of following main.html, in Ajax.updater, sub.html is read.
In sub.html, I come by drag & drop in an object.
However, become the error in a drug when you carry out two times of previews in ,IE.
What's wrong?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DT...
Is this possible?
example:
$('a.change').click(function(){
//code to change p tag to h5 tag
});
<p>Hello!</p>
<a id="change">change</a>
So clicking the change anchor should cause the <p>Hello!</p> section to change to (as an example) an h5 tag so you'd end up with <h5>Hello!</h5> after the click. I realize you can delete the p tag...
Hi,
Wondering if people could please point me to a plugin/website that is jQuery, which will do what this Dojo example does, i.e:
http://dojocampus.org/explorer/#Dojo_Drag%20And%20Drop_Lists
I am wanting something similar to this as I would like to use as a means of allowing a user to administer a menu structure.
Unless someone can r...
I am attempting to edit sections of a site inline with jQuery, everything is working fine so far, expect that some of the editable items are links. When attempting to edit the fields, it's clicking through on the href.
here is the jQuery:
$(".button-edit").click(function(){
$(".edit").each(function() {
$(this).html('<input t...
I'm using text boxes to let users change the quantity in a ecommerce website, e.g., http://nordschleife.metaforix.net/118/118/index.php/sony.html
There are two problems that I hope to solve:
On the catalog view (such as the one from the previous URL), the up and down arrows only work for the 1st text box. All subsequent entries don't ...
Thanks for all the great answers, this helps a lot!
Hello, I need some advice/help (obviously)
I'm pretty new to jquery/ajax in general but I have been able to do quite a bit so far. Here is what I am TRYING to do and then what I have managed to do so far.
I am trying to emulate the wordpress post categories. Where you are writing ...
Sometimes it seems that a request is frozen. How can I cancel it and call it again when it takes a long time?
Sometimes the latency is more than 10 minutes because the Ajax post checks the Twitter API, and Twitter API sometimes, you know! :)
...
I am using AJAX via jQuery, and I am trying to translate using the Google Translate Service.
The service does not seem to work for me.
What am I doing wrong? How would I go about using this in my web application?
...
Ok, because I am such a noob and have no idea how javascript works... My thinking was flawed. I am halfway there now. I have taken one of the poster's suggestions and set up a function and then in the html form tag, I call it. This works. I thought that I needed to have an id selector to have JQuery trigger but that isn't the case. I'm s...
Hi,
I have such a piece of html:
<li class="addToFriends"><a href="....">Something something<span>INSIDE SPAN</span>something</a></li>
To handle AJAX request when clicking on anchor I have registered handler on click event:
$('.addToFriends a').click(function(event){
var target = $(event.target);
if (target.is('a')) {
...
I need to create a page that will load divs from an external page using Jquery and AJAX.
I have come across a few good tutorials, but they are all based on static content, my links and content are generated by PHP.
The main tutorial I am basing my code on is from:
http://yensdesign.com/2008/12/how-to-load-content-via-ajax-in-jquery/
T...
I'm unable trigger a click on the body tag using jQuery, I'm using this...
$('body').click();
even this fails
$('body').trigger('click');
Any ideas?!
...