I using HTML5 D&D. I have one "parent" drop area, e.g. "parent".
In that parent I drop my childs, e.g. "child". Each dropped child become also dropped area, e.g. it could accept D&D events.
If I dragging something over "parent" area, it highlighted, same for the "child" areas.
But I face issue, that "drop" event, fires from "parent" are...
Hi,
I'm trying to use the jquery ajax function to post to a MVC2 controller action, but my parameters include an array of a (simple) custom class and the action is not getting the data correctly.
Client:
var element1 = { FirstName: 'Raymond', LastName: 'Burr' };
var element2 = { FirstName: 'Johnny', LastName: 'Five' };
var var2 = [el...
I have this list that can be sorted with sortable.
How can I move the li item with class .neutral to the end of the list when sorting is finished?
$(".thumbs").sortable({
stop: function(event, ui) {
// move .neutral at the end of this list
}
});
<ul class="thumbs">
<li>red</li>
<li>green</li>
<li class="neu...
Hi ,
http://stackoverflow.com/questions/2204247/how-is-this-jquery-app-validating-the-username-3rd-party-script
Iam using the same third party script for form validation that was mentioned in the above question
.Now we have file in the third party script known as jquery.validationEngine-en.js .so i have a field in my html known a...
I recently "converted" an HTML website to web forms. By convert, I mean I opened the website in Visual Studio 2010, added a web.config file to allow HttpPost protocol, and called it converted. However, my form doesn't want to post to my .aspx page. What am I missing? When I build the app, there is no binary created to deploy to my local ...
Is there any way I can run this code with async:false? I notice the jQuery manual specifies that it must be true, when passing the call return to a variable, but that is painful considering the method is meant to be generic.
ajaxCall.classFunction = function( $class, $function, $params){
//Ensure no errors occured
$params = typeof($par...
Using jQuery I can do something like this:
var x = $('#hello');
x = x.add('#bye');
This way I have both #hello and #bye elements in the query set called x. Is there a similar function in Dojo?
...
$('.Editcoupon').click(function() {
var strRef = '';
var strid = '';
var strSelectedval = '';
strRef = $(this).attr('ref');
strid = $(this).attr('id');
strqueryvalue = $(this).attr('ref').match(/Defaultcoupon=([0-9]+)/)[1];
$("#Coupondialog-modal" + stri...
Page A has iframe B. In iframe B, I have a var store a function name of page A. How to call that function from iframe B? (Both in a same domain)
I try this in iframe B
eval("window.parent." + func_name + "('"+param1+"', '"+param2+"');");
It work well but I ask for a better solution if possible.
...
i am working on a web form that has repeating ui elements using the example that i found here with the exception that i am using a multidimensional array instead of appending a number to the name of each element
the only problem i have is that i need to have repeating form controls nested inside of my already repeating form elements. an...
Hello,
Check the following link in Chrome: http://www.bavarianblue.com/parts-list/?tags=struts
The site is totally jacked in IE - need to fix a bunch of CSS.
I use the follow Javascript to perform the animation (uses jquery.scrollTo-1.4.2-min.js);
jQuery(document).ready(function($) { //required for $ to work in Wordpress
var moo ...
I am very new to JS and am trying to modify the JavascriptKit jQuery-based megamenu system to delay showing the menu until the mouse has been hovering over the anchor object for a specified time.
The problem I am facing right now is that it seems that the clearTimeout that is called on mouseout only suspends the setTimeout, rather than ...
Hi,
Is it possible to remove the type of research (for example 'Film'), inside the list of items returned from freebase jQuery suggestion?
Thanks for your attention.
Simone
...
I am using two panels at the top of my web page that drop down: "Fast Quote" and "Client Login". Can someone show me how to alter my code so that ONLY ONE panel is open at one time? Example: If "Client Login" is open and the user clicks on "Fast Quote", the "Client Login" should close and the "Fast Quote" drops down.
Here is my webs...
Ingoring all aspects of design, with base jQuery 1.4.2 NOT jQuery UI, is there any kind of radio class or tab functionality? I can't find what I'm looking for on Google.
update
I'm not looking for UI elements, only the functionality of tabs.
By radio class I'm referring to ExtJS where you can have a ul list of elements. Creating a "...
Hi guys,
I was wondering if anyone could take a look at this code and help me come up with a better way to do this if there is one.
I am using jQuery append/remove to add and remove list items. My code first selects any existing rows from the db and displays those in the list, and then the user can add or remove any elements from the l...
Hi,
I'd like to mimic html form behaviour using jquery. When clicking on a button, I want to delete a comment using:
$(".delete_comment").live('click', function() {
var btn = $(this);
var param_delete_comment = btn.attr("href");
$.ajax({
url: '/you/ajax_delete_comment/'+param_delete_comment,
type: 'POST',
...
I want to find a <td role="foo" class="one two three four"> within a <div id="myid">
These two selectors work:
$('#myid td[role=foo]')
$('#myid .two')
But this one doesn't, why?
$('#myid .two td[role=foo]')
...
I am aware of sending form values using the method=get
<FORM METHOD=get ACTION="test.html">
I have a textbox which captures email. When i submit form using the GET method the @ is converted to %40.
I had read somewhere that Jquery could send the data across by serializing. How can it be done?
Thanks
...
I have this response.write on my page
function roundthecon() {
document.write(Math.round(exchRate*Math.pow(10,2))/Math.pow(10,2));
}
But it is re-writing my whole page and replacing it with the rounded number is there any other way of doing this without it re-writing my page?
Thanks
Jamie
UPDATE
Full javascript
if (exchRate != "...