window showing the main screen
Hi, I'm using jquery dialog and I have a problem when I insert my div in html, it is showing up and not stay hidden, to show only when you click the button and call the jquery to open it.
Checking the second of 2 dynamically generated radio buttons
I'm trying to check the second radio button in a pair of 2 that are dynamically created in the front-end .cshtml page. The code is as follows: <div class="g6"> <form> @foreach (var method in myProxy.GetCategorys()) { <input type="radio" name="myCat" data-bind="@MVVM.CheckedBindingFor(a => a.Category)" value="@method.Code"/> <label class="radio-inline">@method.Name</label> } </form> </div> It produces 2 radio button like this in the rendered source code: <input type="radio" name="myCat" value="ABC"
Great script that runs on my machine so
Digite um texto ou endereço de um site ou traduza um documento. Cancelar Você quis dizer: Oi, estou com um script de jquery, php e mysql Hi, I have a jquery script, php and mysql online service ... have many files and it is running perfectly on localhost in xampp on my pc, and when I upo him to the server it does not run, the dialog of jquery ui q opens the single page is all messy, can someone tell me what to do??
Understanding how to get and set.
I was trying to make a video page that I could click members in a list and play the video for the title in the list. I realized there may be some things I don' t know about getting and setting attributes or even getting and setting all things in jQuery. Originally I was trying to set the video tags source tags attribute 'src' to the new video and get it to stop the current and play the one the clicked link refers to. I realized I may be missing some know how so I tried to do some thing a lot simpler
Add another custom error message using ID(s)
Hello, I'm using chronoforms for Joomla and I used another plugin for form validation. My objective is to have my own custom message, code below works for the "name" input. jQuery(document).ready(function () { jQuery("#myForm").validationEngine('attach', { 'custom_error_messages': { '#name': { 'required': { 'message': "Your Name is Required" } } } }); }); The code above works, but I want to insert more IDs, such as, #birthday, #terms..etc.with another message. How do I go about this? Thanks.
Jquery not working in magento?
Even I have specified var jQuery = jQuery.noConflict(); in my code but there i am getting the reference error on this line. What may be the possible reasons for this error?
Calling values from a "dynamic" variable name
Hi, sorry for the bad description, but I dont know how to name the problem, that's propably why I could'nt find a solution so far :( The code looks like this: fi_slide = 1; TweenMax.to($('#fi_slide_'+fi_slide), animationLength, {css:{top:(sf_position_out+(["fi_slide_"+fi_slide+"_margin_top"])*(-1))+"px"},ease:Expo.easeOut}); So what im tying to achive is to set the css value "top" to a specific value. The variable I am tying to call has the name fi_slide_1_margin_top But i am trying to call this
Prev/Next in Gallery Works Sometimes
Hello, I created a gallery that pops out when you click on it to showcase my portfolio. When you click on the individual images, they load pretty fast. The file sizes are small. However, when the images are in a modal window and when you navigate through the images using the prev/next buttons, most of the time, the loader spins forever and the image doesn't load. A few times it loads the image using prev/next buttons. Could someone please help me out and let me know what's going on? Here is a link
"Add Item", "Remove Item" UI - best way to implement this using jQuery (with mobile device support)
Hi: Since a picture is worth a thousand words, please see http://www32.myfantasyleague.com/kevin/waivers.html This UI (two HTML selects, with "Add Item" and "Remove Item" buttons in the middle to move items from one list to the other list) is used throughout our site, and although it's not super elegant, it works well for our desktop customers. However, we'd like to see if we can make it a bit more modern, and more mobile-friendly. To that end, we're hoping that some jquery expert out there might
links within jQuery accordion don't work
Hi all, I'm new to jQuery and with quite some struggle I've managed to create a jQuery accordion in which I can put any module as I please. The accordion works perfectly, but when i click on any link within the accordion (other then the headers), the accordion box will just close and for the rest nothing........ I've seen all the other solutions, but because of the dynamic nature of my accordion (placing any module within), I can't use those solutions. My accordion code looks like this: Code: $(document).ready(function()
trouble changing a font color using an input color picker
Hello, I'm trying to change the font color of heading text using an input color picker. the html input is: <input id="headingTxt" type="text" class="form-control"> the font color to change lives here: <div class="heading-txt">some text</div> the code to pick up the font color and change it: //heading font color $(document).ready(function(){ function displayVals() { var singleValue = $( '#headingTxt' ).val(); $('.heading-txt').css('color', + singleValue); } $( '#headingTxt' ).change( displayVals
Passing variables from javascript array through url based tracking
Hi, I have an online store which is powered by Volusion Shopping Cart and am trying to get the tracking code for the affiliate network we use (Monetise) to pass the order number and order value through the networks tracking url. The tracking url from the network is: <script type="text/javascript" src="http://monetisetrk.co.uk/p.ashx?o=126&f=js&t=ORDERNO&p=ORDERVALUE])"></script> Volusion stores the order details in a javascript array and originally I tried adding the relevant variables into the tracking
Jquery trigger create too slow
Hae, am new to this forum and i have a pressing and urgent killer question to my career. So don't mind if i will go against any of the stipulated rules of the game in this forum for now. Am using $('#id').trigger('create'); to create controls dynamically. The controls are appended on a html table which is inside a div. So am generating controls dynamically in rows which can go upto several hundreds of rows and tens of columns. Is there an alternative to $('#id').trigger('create'); Am using it because
Parameter value is not sending from jquery.ajax to sql query
Hi, I tried to send some parameters value to sql query from jqury.ajax, But the parameter value is not getting in sql query. Below is my code $.ajax({ type: 'POST', url: 'query.php', dataType: 'json', data: { dayNo: "2", event_id:"4", }, success: function (data) { var items = []; for (var i = 0; i < data.length;
('#div').width problem with typeface.
Hi, I'm trying to ascertain the width of a DIV using jQuery. Problem is that it's using the default typeface sanserif to compute the width. It gets the font size correct but not the typeface. This means that once displayed with the new typeface, the DIV is a different width to the one jQuery gave me.
Reveal Each XML Content Output Individually Rather Than All-Together
SITUATION Howdy, I have made a function which sends parsed xml elements into two adjacent boxes in random order. The first box contains questions and the second box contains answers. The answers are hidden to begin with, but there is a click function which reveals the answers when the user is ready. Here is the xml file structure: <?xml version="1.0" encoding="UTF-8"?> <Questions> <Question> <QuestionOutput>Question</QuestionOutput> <AnswerOutput>Answer</AnswerWord> </Question>
using .change() with a text input
Can I do this? Apparently not the way I have it since i can't seem to get it to work. But can I use .change() with a text input? $('#query-list').change(function(){ $('#query-list').attr('title','"' + $('#query-list').val() + '"'); }); I am trying to set a tooltip up on this textbox and I want it to display whatever is currently in the textbox so when there is too much text in the text box to handle the user can hover and, voila! Also can I initialize .tooltip inside this function. I only it want
Need to do a if else statement is not working please help!!!
<!DOCTYPE html> <html> <head> <title>Jan/14</title> <link rel="stylesheet" type="text/css" href="Cal.css"> <script src="http://code.jquery.com/jquery-1.11.0.min.js"> </script> <script> $(document).ready(function(){ $(".SM td").click(function(){ var SM=$("this").text(); if (SM == !"01"){ $("td:lt(02)").css("background-color","DodgerBlue"); $("td:lt(01)").css("background-color","White"); $(".MonthOne").text("FEB"); $(".miniOne").text("January"); $(".miniTwo").text("March"); $(".hum").text("Retired
populate multiple hidden fields onchange of a dropdown
I am populating a struts2 select dropdown with a list as shown below <s:select name="code" id="code" headerKey="-1" headerValue="Select" list="slist" listValue="code" listKey="id" onchange="changeLocation(this.selectedIndex)" /> slist contains id,code,country . When a value (i.e code) is selected from dropdown ,i need to populate both id and country as hidden fields .I am successful in populating id onchange of code as shown below onchange="document.getElementById('locationValue').value=this.options[this.selectedIndex].text;"
Add commas between each item outputted in $.each loop, but not at the end of the last
Hi all, I have an .ajax call that appends items and I would like to have each of these comma separated, without having a comma at the end of it. In the example below, it adds commas, but that also means the last value has a comma, which is not how the list of items should end. Any assistance is appreciated. $.each(categoryValueArray, function (index, item) { $.ajax({ async: false, url: "https://yourcompany.com/sites/resourcecenter/news/_api/web/lists/GetByTitle('Categories')/items?$filter=ID
Preventing users hijacking ajax calls?
I am building a user-based online application using jquery, and I am concerned about the possibility of users being able to hijack my ajax functions. I'm sure there is a standard way of dealing with this, but I don't know what it is. I'm hoping one of you can tell me... ;-) For example, if users are logged in, and want to send an instant message to each other, they can use a simple messaging system. An ajax call passes their message to a back-end handler script, like so: $.ajax({ type: "POST",
Dynamic Variable Name and Set to New Array
Hi all, I need to create a variable name that is dynamic and then have it create a new array. Example: var basevariablename + dynamicIDfromJSONOutput = []; Any ideas?
how to validate email in textbox??
if email id like m//@gmail.com or m--@gmail.com not bale to validate it?? how to do that. plz suggest function checkEmail() { // alert("email"); var email = document.getElementById('txtEmail'); var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (!filter.test(email.value)) { alert('Please provide a valid email address'); email.focus; return false; } above function
Back Browser Button- Help required
Hi All, I have below query: Please let me know how i can do this. I have a page that used Ajax to generate the a list of result. Then there is a link to click to another detail page. When I'm at the detail page, and click the back button. The list of results page will reload again. Is there anyway to stop the ajax to reload again and cache the result. One option is saving the pagenumber in cookie and then updating the cookie. Is there any other way to do this? Please help!!
Load elements and append them
Hi! I'd like to load elements using the function load(), and i did it: $( "#box" ).load( "http://localhost/monsiteweb/produit/of_ajax"); the problem is how to append loaded elements to the "#box" div? Anyone knows how to do that please? Thanks !
how to control browser alert and auto fill password
I want to show a pdf file in iframe and i keep it(pdf file) password protected. So when the page is loaded then browser show a alert message "this document is password protected. please enter a password". So i want that user can open this document in browser only and if he will download that pdf file, he can not open that due to password protected. Can I solve this with jquery? the password is "123456" Visit http://sitestudy.co.nf/iframe.html to show demo or http://fiddle.jshell.net/dTbjE/
How to remove element before?
Hi, I need to remove H3 and DIV. Here is code: <myDIV> <h3 number=0></h3><!-- number automatically generate by ASP --> <problemDIV number=0><button here></problemDIV> <h3 number=1></h3> <problemDIV number=1></problemDIV> </myDIV> In problemDIV I have delete button (for delete H3 and problemDIV) and click function has: $("#myDIV").remove( "h3[number=]"+$(this).attr("number"));//doesnt work $("#myDIV").remove( "problemDIV[number=]"+$(this).attr("number"));//doesnt work
Issue on Scroll To Section
Using jQuery and Bootstrap 3 I am trying to create a one page Scrolling Website. Here is theWorking Demo . So far it looks fine when user scrolls in sequence like from Section 1 to Section 2 or Section 2to Section 3 but I have some issue on nav navbar-nav items when user scrolls out of order like from Section 1 to Section 6. It looks like nav navbar-nav steps on each items to get the target item!(As you can see in following image) There is also one other important issue on Section 7 scrolling. which
move table row to up....
Hi, please see sample code at fiddle as you can see when you click than they will move around up and down. However, how can i write that code if i want to move second row to first row second column! please help thanks. AM
After finding the three highest valued cells, how do I change their background color?
<script> jQuery(document).ready(function() { var tabell = [5,4,3,8,78,4,54,1,22,54]; var sb = "<table>"; var maxArray = sort_unique(tabell).splice(tabell.length-5,3); for (var i=0;i<tabell.length;i++){ if (tabell[i] == maxArray[2]) { // alert("high high"); } else if (maxArray.indexOf(tabell[i]) > -1) { // alert("among top 3"); } } maxArray.push(77); for (var i=0;i<tabell.length;i++){ sb = sb + "<tr><td>" + i + ":</td><td>" + tabell[i] + "</td></tr>"; } sb = sb + "</table>";
Keep slideToggle menu between pages
Hi all, Here my issues: <ul class="menu"> <li class="arrow-m"> <a href="#" class="active"><strong>Menu</strong></a> <ul> <li><a href="record.php">Some</a></li> <li><a href="offices.php">Addresses</a></li> <li class="arrow-m"> <a href="#">Goods and Services</a> <ul> <li><a href="firmstock.php">Goods</a></li> <li><a href="firmservices.php">Services</a></li> </ul> </li> <li><a href="promotions.php">Promo</a></li> <li><a href="files.php">Files</a></li>
JSON Data - Listing Values and Using Objects
I have a set of JSON data that I need to search for a set of specific values based on one key that is specified by select menu. Everything is working well if I just needed to find one hospital, but I need to list all hospitals in a selected state. **Here is the working example: http://jsfiddle.net/rfKcM/ ** As you can see I have a set of JSON data that simply lists multiple hospitals in three different states. In addition, each hospital also has a related set of data values in the JSON file. Currently
Conflict between files
Hi, Is my first post in forum.jquery. I'm doing my first web page and i have the following problem. I charge the following files in head of the next page: http://www.enkuadre.cl/?page_id=221 <head> <script type="text/javascript" src="http://www.enkuadre.cl/wp-content/themes/twentyten-child/iconos/jquery.fancybox.pack.js"></script> <link href="http://www.enkuadre.cl/wp-content/themes/twentyten-child/wpsc-default.css" rel="stylesheet" /> <link rel="stylesheet" type="text/css" media="all" href="http://www.enkuadre.cl/wp-content/themes/twentyten-child/scrollfix/cascadaoriginal.css">
html5 history api fallback?
I am new javascript. I managed to create a .load script which loads in different views (with alot of help). Its working but I don't know how to tell the script to load in the appropriate view when someone uses a url like www.mydomain.com/#view3 Apart from this already existing problem i want to replace my current load script with the html5 history api and fall back to the old one when the clients browser doesnt support it. how can i find out if the browser supports the history api and if not how
How do I read HTTP trailers?
I am using $.ajax() to interrogate a server whose response incudes headers, response data and trailers. the response data are readily available via $.ajax().done(), as are the headers via jqXHR.getAllResponseHeaders() but I don't seem to find a way of reading the trailers. Are they accessible? Can anyone point me in the right direction? Thank you John
Resize Div by adding a new one
I want to resize divs as I press an "add Div" button. The width of all divs together should stay the same The Divs should fit into a parent Div: With 1 Div, the Div has a width of 100% With 2 Divs, they have the width of 50% With 3 Divs, they are all 33.333% and so on... Together they are always 100% Its
One more question.. need an explaination!
Hey there.. last question. Can anyone explain to me what this means, and when to use it? Thanks a lot. .on
Animating Border Length
How can I animate the border length of an anchor element to increase gradually?
Can someone explain + addTo + ???
Hey there. I am going through the Codecademy lessons trying to learn jQuery, and there is a lesson that I have come across where the correct answer includes + addTo +.. i understand the other components of the correct answer, but this piece of code is something that wasn't previously discussed in other lessons on Codecademy, and I am wondering what it means, and what the purpose of it is? Here is the complete code: $(document).ready(function () { $("#button").click(function () {
Problem with disabled select.
Hi everybody, I have a problem with disabled select, input text and textarea. These elements are in a form in a dialog form. When I open the dialog I control if the input text is not empty. If the condition is true I need to disabled input text, text area and select. It works fine. But If I open the diagol again it doesn't work, I mean that the elements are not disabled. This is the code to disabled the 3 elements: for (i=1;i<=10;i++) { for (j=1;j<=10;j++) { if ($("#matt"+i+j).val()
Next Page