Third try at fixing this tonight - trying a different approach than before now.
Given a jQuery Sortable List..
<ul id="sortable1" class="connectedSortable">
<li class="ui-state-default" id="item1">Item 1</li>
<li class="ui-state-default" id="item2">Item 2</li>
<li class="ui-state-default">Item 3</li>
<li class="ui-stat...
I've written a little function to position a logo midway between the left hand side of the browser window and the (centered) navigation menu. The menu items are populated from a database, with the first item given the id item0.
function positionLogo(){
var $menuleft=0;
var $element=document.getElementById('item0');
if ($ele...
I have the following html (viewable at www.communityftw.com)
<table width="100%">
<tr>
<td style="text-align: left">
<!-- 2008.3.1314.35 --><span id="headerSearch1_sb_form_q_wrapper" class="RadInput_Default" style="white-space:nowrap;"><input value="lang...
I'm looking to find a galleria replacement, hopefully using jQuery but other javascript frameworks such as prototype or mootools are fine too.
I used galleria a while back, and I need a similar product now. Unfortunately, the devkick.com domain seems to have disappeared in the meantime and I'm wary of using products that aren't actively...
Hi,
I have been using mootools for a year now. I need to use jquery for my new projects.
I always used hash() to make namespaces for my functions in mootools. For example,
var person = new Hash({
say_name: function(){
},
say_age: function(){
}
});
Does Jquery has similar stuff?
...
I am working on some projects as a developer(PHP,MySQL) in which AJAX and jQuery is already implemented. But now I want to learn implementation of AJAX and jQuery stuff. Can anyone tell me the exact steps with explanation?
I have created a project in Zend. There is only one controller(IndexController) and two actions(a and b) in my proj...
Hi,
Could you tell me pros and cons of using jquery.form plugin and basic remote_form_for from RoR? What is better?
...
i have an table
<table class="oldService">
<thead>
<th>name</th>
<th>age</th>
<th>action</th>
</thead>
<tbody>
<?php foreach($array as $k=>$v){ ?>
<tr>
<td><?php echo $k[name] ?></td>
<td><?php echo $k[age]?></td>
<td id="<?ph...
Hey all, i am trying my best to figure out how to go about doing this:
I have 2 tabs. When the page loads tab1 is selected automatically. This shows the tab as 1.0 transparency while tab2 stays at 0.7.
Once the user clicks on tab2, tab1 goes to 0.7 transparency and tab2 goes to 1.0. However, i can not seem to get it to do that!
Here i...
Ok so here is the situation. Been pulling my hair out on this one.
I'm a noob at this. Only been using rails for about 6 weeks. I'm using the standard setup package, and my code leverages prototype helpers heavily. Like I said, noob ;)
So I'm trying to put in some jQuery effects, like PrettyPhoto. But what happens is that when the pag...
Example website is http://www.wikihow.com/Main-Page, check the "Recent Changes" heading on the right side.
I am really amazed with the implementation of such scroll bars.
Google also uses something very similar to this.
Can someone give me some idea how to do this using jquery.
...
I am trying to call the .ajax() method when a button with id=go is clicked. This button is displayed when another jQuery event is triggered, namely that a button with a class called predicate is clicked.
The button with id=go is displayed without any problems but on clicking it, there is no call to the alert() or getResults() method wh...
simply i'm doing a test
i have a div called test and mvc action in the client controler
the view
and the controler
public string testout()
{
return DateTime.Now.ToString();
}
and i'm using jquery to update the div
$("#B1").live("click", function() {
$("#test").load("/client/...
Im creating modal popup using jquery. Im firing the modal pop up through button click event and the corresponding code here
$(document).ready(function () {
$("#Button1").click(function () {
el = document.getElementById("overlayDiv");
el.style.visibility = "visible";
el1 = docu...
This is my code
$(document).ready(function () {
$("#Button1").click(showDialog);
});
var showDialog = function () {
/* Something I do here */
}
Here the "Button1" click event fire at first time, after that the event was not firing.
Thanks,
Ram
...
I have this href link with text either "attivo" or "non attivo"
User can set the item to 'active' or 'closed' in the database with an ajax request $.post()
I have 2 questions for these:
I can't get the reference to $(this) to work.. I tried it with a normal link and it works, but not wrapped in if/else??
How can I prevent the user fro...
I've set up a jQuery sortable list but I need to be able to keep some items in the sortable 'fixed' in place and for the other items to sort around them. I thought that there would be built in methods to achieve this, alas this is not the case.
I'm able to set up the list and not include the items in question:
<ul id="fruit">
<li c...
I'm trying to create a new div each time a text field contained in the last div loses focus, but a new div is added only when the text field in the first div loses focus (instead of the last)... Please I need help urgently. Thanks a lot.
Here's my code:
$(function() {
$(':text:last').blur(function() {
$('<div ...
Hi,
setSelection does not select the row, whose id is 2, right after a reloadGrid.
$("#training").setGridParam({url: 'index.php?func=trainingmgr&aAction=refreshData'});
$("#training").trigger("reloadGrid");
$("#training").jqGrid('setSelection', "2″);
However, setSelection can select the row, whose id is 2, when you take t...
Hello all.I have a simple jquery/ajax request to the server which returns the structure and data of an array. I was wondering if there was a quick way in which I can use this array structure and data using jquery;
A simple request;
var token = $("#token").val();
$.ajax({
type: 'POST', url: './', data: 'token=' + token + '&re=8', c...