I have a Model that has several properties. When I submit a form, I pass along the values for those properties (generated by the jQuery $.serialize() method) and they are automatically bound. This works without a problem. However, now I want to add an Id to the string, and I have to do it manually since it's not a form field. I've done s...
Hey all,
The below post was hugely helpful for what I'm trying to do:
http://stackoverflow.com/questions/1981243/multiple-items-with-paypal-button-and-php
This part works beautifully:
var inp1 = document.createElement("input");
inp1.setAttribute("type", "hidden");
inp1.setAttribute("id", "item_number_" + current_item);
...
i am trying to use the substring method inside a Js code wich echoes some php variable but it does not work.
$('#tarif_public_total').val( <?php echo $_tarif_public; ?> * $('#tarif_public').val() )
u=$('#tarif_membre').val()* <?php echo $_tarif_membre; ?> + $('#tarif_public').val()* <?php echo $_tarif_public; ?>
uu=u.substring(0,6)
$(...
I am trying to prevent multiple clicks on links and items, which is causing problems.
I am using jQuery to bind click events to buttons (jQuery UI) and image links (<a><img /></a>).
Is there a way to do-once-for-all prevent other events from firing after a click occurs?
Or do I have to maintain a global variable called _isProcessing a...
I have been trying to replace the contents of a page using jQTouch to no success. My problem is related to this question
$('div.current').replaceAll(html)
When I try to do that, the entire page disappears. Does anyone have a solution for this?
...
How do I loop through a radio buttons group without a form in JavaScript or jQuery?
...
I'm trying to place the Facebook multi-friend-selector in a Facebox (don't want to use fb:dialog as it pops a new window). The problem I'm having probably stems from escaping quotation marks in javascript, but I've been banging my head against the wall trying to figure it out.
Is there a better way to do this?
$('#test_button').click(...
I'm trying to do a little javascript trick to fade out a div, replace its content, and fade it back in. The .html event is replacing the content before the fadeOut is complete...
$("#products").fadeOut(500)
.delay(600)
.html($("#productPage" + pageNum).html())
.fadeIn(500);
It appears that th...
I want to perform the sticky footer to a stand-for-a-long web project.
I'm required to create two top-level div and wrap up all the content inside of <body> into 'div-container', then to add 'div-footer' to the end of <body> or <html>
like
<body>
<div id='container'>
//all body
</div>
<div id='footer'>
</div>
</body>
How can i do it...
I have been investigating event fire order between browsers, because our application is experiencing some unusual behaviour.
I have created a little test to see the order of the three events: change, keydown, and keypress.
Here is the HTML (test.html):
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/...
Hello friends,
I need to implement Spell Check for my application using jquery,
Please can anyone help me out about this?
thanks
...
I'm using jqGrid 3.7.2 and I'm rendering a treegrid. The grid renders just fine however I have 2 major issues.
loadonce=true doesn't seem to be working. When I expand a node, it tries to load the data from the server even though I've already supplied all the data to the grid. And that leads to my second issues...
I can't collapse no...
How can i program this, the decimal shift needs to be programed that most of it I think , the rest would be just a normal add, any thoughts on how to program this? This is for an incrementer I'm building, the user can press plus or minus and increment a text input.
...
We try to display the google ad in an iframe that we add dynamically. In an iframe, the field "src" is generally an url, but we want to use the data:text/html format to be able to use directly our ad code. It works for simple JavaScript code like a document.write('hello world')<\script>, but not with the google ad code.
We simulate this ...
I am using Colorbox 1.3.6 with jQuery 1.4.2. Somehow the folowing code did not work for me:
$(document).ready(function() {
$.colorbox({href: "something.htm", open: true});
});
which won't show up automatically, but this one works:
$(document).ready(function() {
$("#some_element").colorbox({href: "something.htm", open: true});...
I live and breathe jQuery, but I also love finding an excellent plugin that does the job I want perfectly.
My Rails app is coded in jQuery, but for file uploading, I've yet to find anything better than FancyUpload (better IMHO than Uploadify or SWFUpload). Having tried all three libraries, FancyUpload is by far the best to integrate in...
I have several dynamically created links and forms on one page named with IDs sub_comment_form_[id] and sub_add_comment_[id], respectively. I'm trying to:
Hide all forms when the page loads
Bind a click event to the link directly above the form to hide/show the form.
I'm not sure if there is a problem with my selectors, or if jQuer...
Hi Guys , why I have this kind of error in my code :
"Error: jsonFlickrApi is not defined"
$.getJSON('http://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=669158895706254986e97354a3c7e9a9&photoset_id=72157623477817483&extras=original_format&format=json&jsoncallback;=?',
function(da...
Hi all,
I have been using a jquery plugin called uploadify for handling file uploads as it comes with interactive flash upload. but everyone on my website is complaining its not working. can some one please recommend me one that works in most situations. Thank you
...
Hi guys, I want to convert below string to an array in javascript.
{a:12, b:c, foo:bar}
How do I convert this string into array of objects? Any cool idea?
...