Comparison: JQXtree Or Dynatree.
Hi, I wan to use jquery to build a tree as per client requirement, But I am very confused which one is better: JQXtree Or Dynatree. Can you please list out imporatant features for Dynatree then jqxTree, since I want to integrate with MVC and Ajax. Thanks…
Passing jQuery "OK" button click to code behind
Hi There! I have created a jQuery "confirm" type dialog which is called from a button click event in VB code behind. So far, so good. However, I now need to be able to do something (in VB) when the "OK" button is clicked by the user. So, to put in context, I will have a page with some textbox controls to gather information, then the user clicks a "Submit" (asp:button) to save the information to an SQL table. When the user clicks the asp:button, the VB code behind launchs a nice jQuery "Are you sure?"
Need a solution for a problem urgently
function initiateMadness() { var sparta = { name : "Sparta" }; function madness() { alert("THIS. IS. " + this.name.toUpperCase() + "."); } document.onclick = makeAMessenger(madness, sparta); } initiateMadness(); Write a makeAMessenger function in the global scope so that when the user clicks the document, "THIS. IS. SPARTA." is alerted.
Adding values together
I have the code below and having a brain fart. Looking to add the values together in the txtgrandtotal if the dropdown is set to "yes"... Any help would be great thanks!! <body> <div id="onewindow"> <label for="txtoneside" class="editor-label"><strong>1 Side </strong></label> <div align="right"> <input type="text" name="txtoneside" id="txtoneside" value = "" /> <select name="txtoneside_slider" id="txtoneside_slider" data-role="slider"
closing one overlay and opening another
I've seen posts about similar things, and tried to make them work for my case, but am clearly doing something wrong. I have a page where an overlay is invoked by clicking on an image. In the code behind, some links are added to the overlay that's created such that if you click them, I want another overlay to be created and the first one to disappear. The layout of the first and second overlays are the same, though the "child" overlays don't have further "links" embedded. What's happening is that
Can I make an if statement that is variable?
I have the following lines of code: $(".ErrorCode").click(function () { ErrorCode = $(this).val(); if ( $(this).attr('id') == 'e1' ) { $('.error1').show();} else if ( $(this).attr('id') == 'e2' ) { $('.error2').show();}It goes on to like 300 errors. Can I make one simple code that says something like if ( $(this).attr('id') == 'e(whatever number)' ) { $('.error(whatever number)').show();}So it's not like 600 lines?
How to call a java function from jQuery?
I have a java class 'find' which has a function 'getValues' which returns string array. I want to call that function getValue() from a jQuery and convert it into a jQuery array. Can any one help me how to d so?
Can jquery cache some data to the next page?
Just like session machnism, pass some data to anothor page
Panel Navigation
Hello can any one help me, I have a kendo ui panelbar and a button (fetch), they are both in different divs I would like every time i click on an item (eg Income, summary) in the panelbar, to relocate the button focus to that particular item. Is it possible? I will be grateful for any help please. Obad
Problem with jQuery Menu with History
Hello friends. I have problem with jQuery Menu with History. See objective: http://pruebasconjqueryarg.p.ht/ See project reached: (with History y Php) http://rachmanijquery.site88.net/ Download the project files reached: http://www.filedropper.com/proyectoalcanzado Please I need some idea of how to do the same but not recharge the block column. So if I click on column B not to reload this content but recharge B. sepuedo28cba-
move up and down gridview with jQuery and Save
Hi i have found solution for move up and down rows in my gridview in asp.net... with jQuery but how save the new sorting?? the name of gridview is gridFeaturedPostImages <asp:TemplateField HeaderText="Up" ItemStyle-VerticalAlign="middle" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="25"> <ItemTemplate> <asp:HyperLink ID="HyperLink2" class="up" runat="server" OnClick="#" ImageUrl="~/User controls/FeaturedPostsRotator/images/up.png" ></asp:HyperLink> </ItemTemplate>
What selector to use?
Hello, Im trying to drag a table row into a div. Ive designated a class to the TR elements of "widgets" that Im trying to drag, but cant get the draggable to work, How do I use the selector in my drag statement. $( ".widgets" ).draggable(); <div id="files"> <table> <tr class="widgets"><td>ITEM1</td></tr> <tr class="widgets"><td>ITEM2</td></tr> <tr class="widgets"><td>ITEM3</td></tr> </table> </div> <div id="droppable"></div>
Parsing through a table in an xml object that only has one row retrieved from a database
Hi i have one record (it will only ever be 1 record or nothing at all) retrieved from a webservice via a ajax() call. The record has 33 fields, a small extract is below: xml "<Table> <Supplier>false</Supplier> <Address>true</Address> <ProductInformation>true</ProductInformation> <ProductDetail>true</ProductDetail> <29 other columns... > </Table>" String I am unsure how to access the column names and the columns values when i iterate through syntax wise as i am still very new to coding in general.
Need assistance with altering JQuery JBAR script
I need some help in altering this JQuery script if possible. I script as it currently stands creates a bar at the bottom of the page with a message that fades away after 5 secs. To trigger the bar you have to click a button. I would like to alter that so you don't need to click the button. The bar fades in after 5 seconds. Everything else I like. The script is from a CodeDrops tutorial called JBar. http://tympanus.net/codrops/2009/10/29/jbar-a-jquery-notification-plugin/ (function ($) { $.fn.bar
Triggering a click event on an inner div
I have a number of rows of data that is presented in rows. Each row div is a combination of a number of other divs. What I am trying to do is determine when someone click on an even_Row or an odd_Row. I don't know how to set that click event. For example, If I just want to do a console.log("Clicked on Even Row"), how would I do that? I have tried $(".even_Row").click(function(e) { console.log("Clicked on Even Row"); }); But this event does not get fired. Can anyone help me with how I can
I want to post ajax data on click of anchor tag with dynamic ID and rel=facebox in jquery
I want to post ajax data on click of anchor tag with dynamic ID and rel=facebox in jquery Please reply me fast. as I am doing coding of add to card for E-commerce web site. I am stuck up with this problem and could not move..... Thanks and Regards Durga
Question regarding performance of clone() and appendTo()
Hello, I just wanted to ask this question. Will there be any performance issues if I use clone() and appendTo() frequently? I need to clone a table and append it to a parent div when ever the user selects the option in a listbox Thanks a lot.
$(document).ready not executing sometimes after a postback
$(document).ready() isn’t called after a postback is made. This happens thrice in 5 attempts or more. I have the below code in the $(document).ready() which needs to be executed on every postback which is not executed sometimes. $(document).ready(function () { Sys.StringBuilder.prototype.appendFormat = function (mask) { this.append(String.format.apply(null, arguments)); }; }); As a result i get the below error Object has no method 'appendFormat' Does anyone know why this is happening
[jQuery] how to implement a repeatly jeditable plugin JS?
hi all, i am using jeditable plugin to implement some feature that accept user comment and save to the database, it is work fine for a single comment entry, but what about if it will have a dynamic entry as following shown. I am not familiar much about jquery, so i want that script can change to repeatly assign id c_1, c_2....c_N to jeditable as well as access repeatly hidden field in the pattern shown as a parameter to pass into php. so when a user click "write a comment" on any comment, it will
Undocking a draggable not under the mouse
I would *really* appreciate some help on what to do about this: http://jsfiddle.net/Trober/URudt/23/ Problem: the draggable is not under the mouse when undocking it. 1. Drag the "Drag-n-Dock Me" block to touch the north/top boundary. 2. Drop it in that position; it should dock itself against the north/top boundary. 3. Drag it away from the north/top boundary. The draggable is not under the mouse, and remains flush against the left boundary. Thanks, Ben
Issue with google hosted jquery
Hi, I'm working on a site for my company which uses jQuery. Originally I had linked to the google hosted jQuery 1.9.1, however for some reason the site keeps loading 1.3.2 instead (even though the url I have typed in explicitly states 1.9.1) which is causing the site to not display in ie7/8. The site is joomla 1.5 based. I've tried googling a posting a question on the google groups but I have yet to find/get an answer. Does anyone know why it would be doing this or how to test or anything of the
fade DIV in and out with a second DIV
Hi all Looked all over for an example but nothing that matches what is seemingly such a simple thing to achieve! My code below should help explain: <section class="panel fadercontainer"> <div class="multimicro" id="panel1"> <h1>Box 1</h1> </div> <div class="multimicro" id="panel2"> <h1>Box 2</h1> </div> </section> When my page is displayed I need panel1 to be shown. After 5 sconds, I need panel1 to fade out and at the same time get panel2
Where's the jQuery API Documentation XML dump gone?
I can't download the latest API Documentation XML dump from here to feed my own jQuery documentation browser. Where is it gone? ---- Another jQuery API browser: http://www.dashop.de/?hf=blog_f.html&if=blog/en/dev/JavaScript/content/JavaScript-jQuery-API-Documentation-Viewer.html
use jquery to find any character and remove it
I have a website in drupal.There is seems to problem with it. Before the end of body tag a digit appears 9. I did not find any file to remove it. SO i need to remove that through jQuery. I know there is find() method in jQuery but is finds only the elements not the character. I need to find character and remove it. Structure of it is like this.It doesnot comes under any element than body tag so I cannot select element surrounds it and remove it. <body>all the other site elements....9</body> $('body').replace('9',
How to optimize this?
Hi, I am starting with jQuery and creating websites in general. I have done this code for showing and hiding different unsorted lists. I believe this is really beginner level and there is a much better way to do such thing. My code is working properly, I just want it a little simplier and I don't know how to do it. Here is my jQuery code: <script type="text/javascript"> $(function() { $('#snaps, #events, #trips, #photoshoots, #main_about, #main_contact').hide(); $('.link_best').click(function()
problems with cloning
function editMode(el){ var elm=$(el).clone(true); //work with elm, ad input elements $(el).replaceWith(elm); return el; } var p=$(".editArea").first(); var pp= p.clone(); p.before(pp); ppp=editMode(pp); //code below don't work, all elements input must nulled, without cloning code work //t.length==0 td=$(ppp).find("td,span"); $(td).each(function(){ var t=$(this).children("input"); if(t.length){ t.val(""); } });
Help Help Help
Admittly i am a complete amature. Ive spent 3 days on this but i am clueless, and i havnt a clue about the code so i am even more. Im after a simple image slider box that will sit as a feature in a div on my site. I have built one using wow slider, viewable at mhbglobal.com/roller/index.html. I am very happy with the way it looks so far. But to finish it i want to have a navagation bar attached to the left hand side that changes into an arrow as it moves up and down. See mhbglobal.com/lay2.png as
I can use Global Ajax Event Handlers with other ajax provider?
Hello, I want to know if the Global Event Handlers work with ajax's call from any provider, like Prototype. Thank you Nano
Maintain user filters across all pages?
Hi there, Is there a way i could maintain the user entered text/drop down data somewhere so that it is accessible across all pages(something like global variable) using JQuery. but it seems i am not supposed to use session/cookie concept as well. Thanks.
[solved] Problem with IE and mouseenter/mouseleave on div containing some text
Hallo, I'm quite a beginner with js/jquery so probably my problem has already be solved somewhere... however I don't know how to googlate the answer :( Here's the problem: I have a div (container_div) with 2 smaller div inside: one containing an image (image_div), and one containing some text (text_div). I want to start an animation on image_div everytime the mouse is over the whole container_div. The animation works fine as long I use firefox or chrome; on IE instead the mouseleave event is triggered each
Please help me making this slideer.
I want to make this type of system, you can understand. URL is : http://joshuaraichur.com/ Please help
Can't get a conditional statement to work...help please!
I'd like to inject the class name "in" into a div if the div contains the text "In" or "Remote", and for everything else have the class name "out" get injected instead. The first part of the if statement seems to be working but the second part, the else part, doesn't seem to work. Here is my code: (function ($){ Drupal.behaviors.at_topnav = { attach: function(context, settings) { var i = $('div.user_status:contains("In", "Remote")'); if ( i ) { $('div.user_status').addClass('in')
How to accept the format of .cer file for validation
Hi, I want to validate the file of .cer file format . i tried with the blow code but not working rules:{ myfile: { required: true, accept: 'application/pkix-cert/*' }, sr1: "required" }, messages: { myfile:{ required:"Upload Certificate", accept:"File must be Cer | Pem" }, sr1: " Enter SerialNumber" } Please help me that how to solve
Changing a string to only show part of the text
Hi there, Is anyone able to show me how change the following text: <span class="ct_pd_item_saving">Saving £25.00 (50.00%) on RRP (£50)</span> to just display "RRP (£50)" The price can change so in this case I can't use just JQuery .replace Please can someone show me the method for achieving this? Thanks :)
I got a ajax error "No Transport" in IE6, not a cross site issue
I got a ajax error, 'No Transport', and I just POST some data to one part of my site, the action field in form is :'/shopping-cart/item' $.ajax({ type:'POST', url:'/shopping-cart/item', data: widget.serialize(), dataType:'html', success: function(html) {location.href=html}, error: function(xhr, msg, thrown) {alert(thrown)}, statusCode:{ 403:function() {alert(‘xxx’');}
Creating opacity like by dialogs
Hi, I am trying to create the same opacity effect as on the dialog. So if clicking something the full screen should get some opacity except for a certain div and if clicking outside the div nothing happens. But I couldn't find out how it works on the dialog. Does anybody know how it works or how I could get similar results. Thanks in advance.
nested $.each doesn't work in IE8
Hi, I've got a strange problem: with an object like {"level1":[{"values":{"level2":"valuelevel2","level2a":"valuelevel2a"},"index":"index1"},{"values":{"level2":"valuelevel2","level2a":"valuelevel2a"},"index":"index1"}]} if I want to use a nested jquery each, IE8 prints only one 'ok' running this code [reporting an error]: $.each(result, function(i, result_wrapper){ $.each(result_wrapper, function(i, result_values){ if(result_values["index"] == 'index1' ) { document.write("ok");
jquery function
I have an html page with 3 sections that have same html markup in each - the only difference is a keyword of text in each section on the page I need to track. I'm trying to make a function that will track each of the 3 sections on the page with an existing clicktrack function I have, as opposed to writing out the same tracking rules for all 3 sections multiple times. The 3 keywords in each of the 3 sections I need to use in the function to track each section are section 1: book section 2: magazine
Hi if am submit the query i got undefined value for this method... any one can tell how to validate this array validation.?
Html: <SELECT NAME="Members[]" id="Members[]" SIZE="8" MULTIPLE="" STYLE="clear:right; float:none;" onDblClick="objForm.Users.transferFrom('Members[]');" class="list-box-user" > //JS <script> $("#inform").click(function() { var user = $('#Members[]').val(), error; // var locations = $('#Members').val(); //alert(locations); var ajaxUrl = 'includes/validation.php?valid=useradd& '&members=' + user; $.ajax({
File Upload Validation
Hi, How to validate for file input type and i tried below code var validator = $("#parse").validate({ rules: { sr1: "required", }, myfile: { required: true, accept: "cer|CER|pem|PEM" }, errorElement: "span" , messages: { sr1: " Enter SerialNumber", myfile:"File Required" } }); if(validator.form()){ // validation perform //$('form#parse').attr({action: 'mycontroller'}); $('form#parse').submit();
Next Page