jquery

Jquery on curl fetched data

I have a div which is being populated through curl from another html page .Now the data is populating correctly but i want to use jquery or javascript on the ids or classess of the fetched data. I tried using livequery ,binding but of no use. Can you please help me . ...

JQuery & PHP - How to display and get the average rate and votes casted?

I'm trying to display the average rate and how many votes have been casted but I really don't know how to do it. I need help on how to display something like this Rating. 4.83/5 (6725 vote cast) under the star rating? But I really don't know how to do this or what to add or change? Here is the JavaScript below. // JavaScript Documen...

How can i submit inputs located inside the <div style="display:none"> ?

The case : <form id='frm' name ='frm' action='test.php'> <div style='display:none'> <input type='text' name='name' value ='' /> </div> <input type='submit' value='Submit' /> </form> For example , How can i submit the from given above with its inputs ? Issue : The "name" input wont be passed ! ...

How can a javascript function be fired when a user types text into an input field or pastes text into it?

$(document).ready(function() { $("input[id^='question']").live('keyup',function(ev){ id=this.id.substr(8); if (ajaxCallTimeoutID != null) clearTimeout(ajaxCallTimeoutID); ajaxCallTimeoutID = setTimeout(function(){subjectivecheck(id)}, 1000); }); }); There is a problem. When a user pastes text into an input field, the func...

jQuery accordion: prevent pane from opening/cancel changestart event

Hi, I've got the following markup: <div id="accordion" class="leftaligned"> <div> <h3><a href="#">Stakeholder</a></h3> <div>Content</div> </div> <div> <h3><a href="#">Relationships</a></h3> <div>Blah blah</div> </div> <div> <h3><a href="#">Address</a></h3> <div>Yada yad...

validation in jqgrid

hi, im currently working on jqgrid using ci framework. just want to ask about the validation in jqgrid. I've seen that in jqgrid a column can be validated like this: editrules: {required:true}}, and so on... heres my question, i want to know if its possible that if a client enters his/her desired username but it already exist. Is this...

Accessing a javascript object with jQuery

After creating an object with JavaScript I am looking to access it with jQuery to manipulate it. Here is some code to make things clearer: ObjectFunction = function(content) { this.content = content } ObjectFunction.prototype = { showobject : { return this.appendTo(document.body)} } obj = New ObjectFunction() What I would like ...

jQuery, do something after loading external files.

Ok, the point is having a bookmarklet load an external js that creates jquery, jquery-ui and a css file on the current web-page, with everything being done cross-domain. For some reason by the time the jquery code runs, dialog() function which is included in jquery-ui does not exist. My guess is that jquery is executing the code before t...

Problem with qTip - Tips not showing because elements load after the script

Hey, I'm not very experienced with javascript, jQuery or it's plugins but usually I manage. Anyways, my client is building a site and one of its purposes is to pick up news articles from different sites and show the titles in unordered html lists. I don't have access to his code, the news articles load up rather slow(much after the sit...

How can I make an existing AJAX form be iPhone compatible?

I was recently informed that my shopping cart application breaks when viewed in Mobile Safari (iPhone, iPod Touch). The "add to cart" forms use the 'progressive enhancement' approach to support AJAX updates using jQuery. Some quick testing showed that the functionality indeed works with JavaScript disabled. Everything I've read so far in...

Select DIV with highest z-index

Example code so I can start explaining this problem: <div style="z-index:5">5</div> <div style="z-index:2">2</div> <div style="z-index:1">1</div> <div style="z-index:4">4</div> <div style="z-index:3">3</div> (z-index values do not matter, and their order, even less. Just example code) Problem: I want to select (either using CSS or JS...

how to load all jquery tabs by default ?

Hi, I am using jquery dynamic tabs for creating/editing contents.While creating new contents, its working fine.But when we edit the same content, we need to load all tabs contents to be loaded by default so that it will be available at the time of persisting. Please, help me. Its very urgent. Regards, Arvind ...

Getting Lavalamp jQuery plugin to work with dropdown menu?

I have a problem with the jQuery Lavalamp plugin. It works perfectly with a single-level menu, but after adding a dropdown it gets a bit lost. Here's what I mean: http://screenr.com/0fS. Of course what I would like to achieve is for the lavalamp background to stay on the Portfolio item when the user hovers over the subitems. I guess i...

[jQuery] Update item attributes when sorting

Hi. I'm new to jQuery and I need help with my little project. I'm making drag&drop list to move movie clips and count their times when dropped to destination target... and this is working OK... But main problem is that I want to sort positions in destination div. I don't know how to make all elements time update with sortable->change eve...

IN jquery UI tabs us a form and using ajax submit it

I have used a jquery UI tabs plugin in my page and in one of the tab i have put a form. SO for example , the tab calls a page form.php which has the form tag of html. Now form.php uses ajax and jquery to submit the form. Does this sound feasible. $(document).ready(function(){ $("form#formdata").submit(function() { ...

avoid treeview collapse on click of treeview text in jquery

I need to avoid the collapse of jquery treeview on click of treeview links/text. For example, if i am showing a list of directories/subdirectories in treeview, I need to collapse the treeview only while clicking the +/- image and not on clicking the directories ...

How to find a div with part of a class name and get remaining part of that class name?

There are several divs on my page with classes my_widget-2, my_widget-8, etc. What javascript or jQuery code can I use to get the number "2" (ie. the number that appends the first matching widget)? Thanks in advance for your input. Note: If I were to write this question again, I would change the order of these class names and ask for ...

Click overlay for html page with click stats

How would you setup click overlay for html page that has click stats with number of clicks stored. Is there a jquery example for something like this. The ideal click overlay will have have a little box on top on each link with how many times it was clicked. ...

Accurately detect mouseover event for a div with rounded corners

I am trying to detect a mouseover event on a circle. I define the circle div like this: .circle { width: 80px; height: 80px; -moz-border-radius: 40px; -webkit-border-radius: 40px; background-color: #33f; } Then I detect the mousover using jQuery like this: $('.circle').mouseover(function() { $(this).css({backgroundColor:...

PHP image upload and resize error

Hi there, I looked the site to find a solution for my problem, but couldn't find the answer. Hopefully someone can help me with this: I have a script that uploads and resizes an image without pagerefresh. I found it on the internet and adjusted it for my use. The script can be found underneath. My problem: First the upload.php script...