Hello,
I'm writing a store system for my game,
it worked quite well until I found out that it only takes the amount of first entered Item.
function pbuy(buyitem) {
var amountc = "amount-"+buyitem,
var amount = $("#"+amountc+"").val();
$.ajax({
type: "POST",
url: "store2.php",
data: "buyitem="+ buyitem+"&amount="+amoun...
Hi,
Im using the jQuery dynamic form plugin, but i need support for nested field duplication.
I would like some advice on how to modify the plugin to add such functionality.
Im not a javascript/jQuery developer, so any advice on which route to take will be much appreciated.
I can provide the plugin's code:
/**
* @author Stephane Rouc...
I currently have a site that is a sidescroller (http://www.studioimbrue.com) and I'm trying to bind a mousewheel to scroll sideways. Currently I'm using the one found at thehorizontalway.com (called thw.js) but it doesn't seem to work in all browsers (Chrome).
I'm trying to get this one to work: http://brandonaaron.net/code/mousewheel/d...
Hey everyone.
Let's say I have a bunch of DIVs with a class of "apple", and another bunch of DIVs with a class of "orange".
All these DIVs have various positions, but I want to use a jQuery function to assign them new positions relative to their parent containers live on the page without any reloading.
So, for example, how do I set al...
I am using a horizontal scroll for a page on my website ~ works great in FF but not in IE, how can i get it to work in IE? Here is the JS that I have in the head of my html:
<script src="js/jquery-1.2.6.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
$(function(){
$("#...
I'm trying to grab the source of an image with jquery.
My HTML looks like this:
<div class="featuredSlideImage">
<img src="http://apture.s3.amazonaws.com/0000012865c9e9d984b36217007f000000000001.latte%20heart.jpg"/>
</div> <!--featuredSlideImage-->
My jQuery Selector is:
return '<li>' + jQuery(slide).children(".featuredSl...
I know that JQuery is a very powerful library and was just wondering if it had the following capability that I really need.
Lets say I need to insert new cells into a table row, I know how to do this basic task, but I need to insert my cells in a highly unusual way due to some of the requirements that are needed for the new cells.
I ne...
I am making a static site which is 'forced' to be cached via Cache-control, etc.
When a user visits my site, I want the browser to crawl my site, caching pages, so when the user navigates to a page, the load is almost instant.
(I do not need a recursive crawl, as that will probably happen as the user navigates between pages. I just ne...
Hello all,
I'm trying to get the text contents of a .div('.child#') child of my event.target('h6.class'), and replace my other headers('h1.replacHeader#') using this script below...
$('h6.HeaderToBeClicked').click(function(event) {
var $target = $(this);
$('.replaceHeader1').replaceWith("<h1 class='replaceHeader1'>" + $target.c...
Hello!
I'm trying to pass an object into a function but think there's a problem with $(this) not actually being valid at the point of passing it in.
$('textarea[name*=quote]').live('bind',function(){
}).limit('10',$(this).parents('form').children().find('span[name*=qc]') );
The second parameter can be either a string or an object li...
I'm using .position to find the offset of where the element is relative to the parent, however it seems to be returning a value that is the offset from some parent up the ancestor tree.
I have a button, and its wrapped withing a div and its the only element of that div. The div is floated right. .position is returning a value like {le...
So I have the following div
<div id="object_list">
I want to append a list and items into it. So I run the following jquery
$("#object_list").empty();
$("#object_list").append('<ul');
$("#object_list").append(list.contents());
$("#object_list").append('</ul>');
After that code runs, #object_list looks...
I have the following link. On click, I'd like to check the item.primary_company field and if populated, give the user a warning and ask if they would like to continue. How can I do this?
<a href="<%= Url.Action("Activate", new {id = item.company_id}) %>" class="fg=button fg-button-icon-solo ui-state-default ui-corner-all"><span class=...
I am using JQuery to insert divs into a page but i cant seem to get the quotation marks correctly setup.
For example the code below works fine:
var newDiv_1 = '<div id="event_1"><b>Hello World 01</b></div>';
$('#mon_Events').append(newDiv_1);
But when i try to use variable in place of the normal text, i doesnt seem to work:
var ev...
Hi,
I have integrate jQuery thick box in Codeignitor, when i am using this thick box for the singe image then it will work,but when i am using the same thickbox for image gallery by applying the "rel" attributes to anchor tag then it wont work it shows only loading bar.
can anyone help me out?
...
Hello,
I am trying to position an Absolute DIV using Jquery, depending on where the user is clicking on the page.
At the moment this works just great
$('#window').css('left', jsEvent.pageX);
$('#window').css('top', jsEvent.pageY);
This positions the element exactly where my mouse has clicked the screen...
Until you scroll down that...
Hi everyone,
Can anyone show me how to use jquery in an asp.net nested masterpage. I have my main masterpage where I have added the link to the jquery libaray and also the validation framework. I have then created another masterpage with some styling and created a aspx page based on that masterpage.
How can I attach the validation fra...
i have a tree structure,there is an unordered list(ul) in that tree.i have li items in it,and in that li items it could be a span or an ul list.
this is one part of my codes :
<li id="main_li">
<div class="first_division"></div>
<span>products</span>
<ul style="display: block...
Hello! First and foremost thank you for checking out my problem, and for any help you may give!
Okay, so like the title says I'm in need of calling a php function from my index page, which adds a new record in my database as a vote, using JQuery Ajax. This function will return one integer, which will then be printed inside the form but...
jQuery 1.4 breaks various modules and is not ready to replace 1.3.2 wholesale. But on various pages with complex javascript interactions, I need 1.4.
What's a good way to force drupal to use 1.4 on specific pages?
Thanks.
...