Cannot ascertain if cell values in table are empty
Hi, I have a table where some of the inputs are text and some are date picker. When I enter all values and press submit, the validate function returns that some of the cells are empty. I check that none of the cells in the submitted table are empty. Regards, Arjun Script file: function sendval(){ var tosubmit = validateForm(); if(tosubmit){ showprog(); var myTableArray = convertarr(); google.script.run.withSuccessHandler(onsuccess).processLeaveForm(myTableArray); } if(!tosubmit){ alert("Please
Is there a better way to handle delay for multiple events?
Hi, I have written a JQuery function, where there are multiple elements fading in with CSS and JQuery. I am using JQuery to time the delay, and was wondering of a better, more efficient way to do this instead of just adding more time between the events. Code below. (function($){ $(document).ready(function(){ $("h2#Fancy").delay(3000).fadeTo(3000,1); $("h2#Personal").delay(7000).fadeTo(3000,1).delay(3000).fadeOut("slow"); $("h2#BG").delay(9000).fadeTo(3000,1); $("h3.tagline").delay(11000).fadeTo(3000,1);
cant´t change icon
Hi, I got some scripts from a former colleague to work on and have a problem: I´m looking for a way to change the symbol on a select form field. Usually it´s a filled triangle pointing down, but all I get is a grey, filled circle instead I´ve tried it with: $( "#XYZ" ).selectmenu({ icons: { button: "ui-icon-triangle-1-s" } }); where XYZ is the id of the <select> the statement is called inside $(function(){}); Thanks for your help
X-Requested-With is not allowed by Access-Control-Allow-Headers
I am developing one system. In that system there is one add item to cart functionality. In that functionality, I am using Jquery $.ajax used. But online server I have facing this error - "XMLHttpRequest cannot load domain name/add_to_cart.php?item_id=3&hotel_id=2. Request header field X-Requested-With is not allowed by Access-Control-Allow-Headers." Can any help me how to solve this error. I am using this jquery code $(document).on('click', '.ordering_btn', function(){ var item_id = $(this).data('value');
load coarousel dynamically
hi to all i want a carousel to lode the data from a database(mysql)?
CSS Rollover with integrated Input field.
I have created a rollover that contains an input field that works like a rollover button in as much if the input field is activated the css block it is in changes colour as well as the background of the input field that gives the appearance that it is integrated and when the button loses focus it reverts to its original status. https://jsfiddle.net/a4poster/faLdY/203/ From the fiddle it works fine but when I try to port it into my code it doesn't work. I'am using the following on my code: <link
How to hide a frame if div content is empty
I have 3 html pages. main.html, page1.html and page2.html. I am displaying page1.html and page2.html in main.html using following code. <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> <script src="myjs.js"></script> </head> <iframe id="page_1" src="page1.html"></iframe> <iframe id="page_2" src="page2.html"></iframe> </html> page1.html code <html> <body> <table id="resultDetails"> <th>Result Details</th> <tr> <td>Row 1</td> <div id="r1">
document.addEventListene
I have the following statement document.addEventListener('mousemove', function(e){...}); It works fine. Now I want to target only elements with 'dv' tag. Can someone tell how to modify? Regards I.Sher
Content loaded with load() function not parsed by Google
Hi, on my site I am using the load() function to add an external html file to multiple pages. It works fine, but the external content is not parsed by google. For example, the content of the "Pin Headers" section on the following page is obtained from an external page via the load() function: http://modtronix.com/in485p-tbp.html If you google "in485P-TBP", and have a look at the cached result, you see the "Pin Headers" section is empty. The load() function only adds the content of the external page
multiplication in dinamic row
hello Jqueryer, how can i make multiplication in dinamic row, i just succes make it in the first row, hope fully by image can make you understand what my problem, and this is my code view <table class="table table-bordered"> <tr> <th><input class='check_all' type='checkbox' onclick="select_all()"/></th> <th>#</th> <th>Kode Barang</th> <th>Nama Barang</th> <th>Stock</th> <th>Jumlah</th> <th>Harga</th> <th>Total</th> </tr> <tr> <td><input type='checkbox' class='case'/></td>
Getting select's value with dynamic id
Hi; I create multiple drop downs with php and they have different ids. For example: <select name="product_type[1854]" id="p_type_1854" onchange="update_template_for_download(p_type_1854);"> </select> <select name="product_type[1854]" id="p_type_1855” onchange="update_template_for_download(p_type_1855);”> </select> How can I get the value of selected option? I thought this does it but this alerts "[object HTMLSelectElement]": function update_template_for_download(id) { alert(id); } And alert($("#"
Sortable - prevent to drop after given table row
Hello, please, it's possible prevent to drop table row AFTER a given table row while BEFORE a same row is drop allowed?
Prevent radio toggler from being checked on page refresh
Hello, I have long forms containing a radio group like this one: <fieldset id="ctrl_4139" class="radio_container mandatory"> <legend>How many locations?<span class="mandatory">*</span></legend> <input name="locations" value="one_location" required="" type="radio"> <label>One location</label> <input name="locations" value="several_locations" required="" type="radio"> <label>More than one location</label> </fieldset> <div id="several_locations" class="addForm2" style="display:none;">
Activate Month dropdown only when Year is selected from dropdown in datepicker
Please let me know how to achieve this scenario. I am using jquery datepicker. now my requirement is that User should only be able to select Year first than Month and than day. this is for Date of birth capturing. Please help me in this.That is becoz users while selecting their DOB are not selecting year of birth which is than taken as default and thus loss of business and revenue
Question about droppable events
I'm using the draggable/droppable functionality, but there's something I can't figure out. How do I detect which element was dropped into the same container and attach an event to it? This is what I'm looking for... See comments in the "if" statements: $(function() { $( "#mybox, #mysquare" ).draggable({ revert: true }); $( ".container" ).droppable({ accept: "#mybox, #mysquare", activeClass: "activeelement", hoverClass: "hoverelement", drop:
In a checkerboard example where does the (droppable) class come from
Checkers I have been exploring an example in which a checkboard was built. At the beginning of the script I noted the statement: $('.checkerboard tr:nth-of-type(even) td:nth-of-type(odd), .checkerboard tr:nth-of-type(odd) td:nth-of-type(even)').addClass('droppable'); My question is: in the addClass method, where does the droppable class come from... there is no reference to it in the program that I am including below... Also how the piece $('.checkerboard tr:nth-of-type(even) td:nth-of-type(odd)
Change all elements with css color:red; to color:blue;
Hello, Is it possible with jQuery to identify all elements with css color:red; to color:blue;? Thanks, Emma
Youmax code for weebly website
Situation Summary: Hello, my name is Thomas Flint and I run a small youtube channel for a while now. I like to improve my "professional" look, so I made a weebly site. Since I have my site, I posted my video's on there 1 by 1. Today I found Youmax, a code where you can make a embed player for you youtube uploads. Youmax website I Tried the whole evening to get youmax on my weebly site, but without success. I can't get the code working. Also I have no good idea what I am doing with coding. Question:
Help me.....
dear you , I have problems to help people ....... I would like to add the following code : when i click button "yes" created can be two or more file name revocation in one click "yes" , or to click on the "yes" has the timeout , I'm not good at English, I apologize to everyone please please help me solve this difficulty. thank you . $(function() { $( "#dialog:ui-dialog" ).dialog( "destroy" ); $( "#revocation" ).dialog({ autoOpen: false, height: 200, width: 460, modal:
Min verson
I use jQuery UI succefully but when I try to debug with chrome I get lost in the min version. Her is the URL that I use: https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js Can someone advise? Maybe the is a developer version in google? Thx I.Sher
Problem with cycle when hosting.
Hi, I have successfully hosted my portfolio on GoDaddy(http://www.albinekman.se). Everything works perfectly except one thing. I can't see the pictures that are inside the cycle plugin. I guess there's something wrong with the script. I should also say that the cycle works excellent in "preview mode" in Dreamweaver. I also read this thread, but that was not the problem for me. What do you think?
jquery datepicker not working with dynamic html tables
Hi, I construct a table with dynamic rows and bind the date picker elements to some of the columns. However, when a row is added to the table the date picker works only for the first row and not the rest of them. I tried to unbind and then rebind the date picker but does not work. Any help would be great. Regards, Arjun The code is attached for reference. $('a.add-passenger').click(function(event){ event.preventDefault(); counter++; var newRow = '<tr>' +
ingjecting an element between others
I'm searching for a toturial/sources of the code that implements the efect of ingjecting an element between other elements(if someone is familiar with Wordpress dashboard its implementd there in the widgets and also in the menu items). Regards I.Sher
Dynamic Created Button additinal effect
Good afternoon. I am fairly new to all this and am needing someone to point me in right direction with an issue I am having. I have the page working to create a button dynamically inside a div. When the page is first loaded all of the buttons when clicked have their color change and the rest of them return to their default color. $('.gradeButtons button').on("click",function() { $(this).siblings().removeClass('quoteGrading'); $(this).toggleClass('quoteGrading'); }); For some reason that I cant
Cycle auto adjust : good in chrome not in IE or Mozila
Hi, In drupal i use json2 and cycle plugin. I set the options for the plugin like this : http://drupal.stackexchange.com/questions/44662/make-views-slideshow-responsive-remove-inline-styles height auto width auto containerResize 0 slideResize 0 fit 0 In Chrome it is working very wel. In mozilla and ie the images are not resized. Any suggestions what i can check?
Jconfirm.
Hi, i am using jquery.alerts.js plugin for jConfirm and I have a problem. I would like that Jconfirm works like confirm in js that stop running and waits for my answer. This is my code: jConfirm("Confermi l'inserimento?", function (ans) { if (!ans) return; else risposta = 1; }); Thanks in advance. Tegatti
Dynamically removing tab entries after dynamically adding them
I'm creating tabs dynamically with: <div id="tt" class="easyui-tabs" > </div> function addTab(title, url){ var content = '<iframe scrolling="auto" frameborder="0" src="'+url+'" style="width:100%;height:100%;"></iframe>'; $('#tt').tabs('add',{ title:title, content:content, closable:true }); } I need to remove them dynamically. The suggestion from the man page is: $(
Problems w/ swipe gallery in demos jquerymobile.com
Hi. I'm a newbie of this field but I'm trying to learn :) I found a piece of code that works exactly as I like. It's about navigation by means of a swipe event and it shows a photogallery. It's a very nice effect. I found it in the demo pages of the jquery mobile site. I followed the instruction, I checked the code viewing the page source of the given example and the source of the online pages. But it apparently doesn't work. This is the link: http://demos.jquerymobile.com/1.3.0/docs/examples/swipe/swipe-page.html
Selector for first level div elements of any website
Hi there, currently I'm trying to implement a Chrome Extension which shall enable me to navigate through any webpage by using the left (previous element) and right (next element) arrow key. Its for my kodi couch potato machine. My first attempt was quite simple by adding tabindexes for each anchor-Element. The current element has a red box arround it, so you can see your current selection. Well it works, but its not really usefull if there are hundreds of links an the one you want to navigate to
How to retrieve a value from a url using jquery
Hi , in my application i want to load a page using jquery and same time i want to pass a value and return a result. i used following query var id= $('#ContentPlaceHolder1_txtstid').val(); $('#disp').show(); $('#disp').load("GuardianForm.aspx?id="+id);. my requirement is in guardianForm.aspx ,retrive value of id. as per the value of id i want to return a result. following is code in GuardianForm.aspx $.ajax({
type: "POST",
contentType: "application/json;
Open social media networks login in small pop-up window on my site (thus, not new browser-tab)
Hi, I installed SOSMED Social Media Buttons successfully. However, when a user clicks a social media network to log on, a new browser tab opens. I want that a small pop-window on my site opens (= same browser tab) for all social media networks. The plugin: https://github.com/bachors/jQuery-Awesome-Sosmed-Share-Button The .js code is attached (it is min.js). I cannot see where to change the target open window. The HTML is... <div id="ibacor_shareawesome"></div> The code for the small pop-window on
Passing value to reloaded page
The code below alerts 28/03/2015 but monitor_reload controller shows only 28. What am I doing wrong? Thanks <script>
function load_group_stat(item, group_id, start_date, end_date)
{
alert(end_date);
$('#interactions_head').load("<?php echo base_url('monitor_reload/group_stats');?>" + "/" + item + "/" + group_id + "/" + "2015-01-07" + "/" + end_date);
return false;
}
</script>
Installing JqueryUI and calling correct links in HTML page.
Hi all, I just recent caught the Jquery and UI bud and would like to learn more about it. Therefore, I'm a real newbie and i require some assistance please in installing and linking the UI in my html page. After downloading the custom UI jquery-ui-1.11.4.custom, i see the following files and folder. --JQUERY-UI-1.11.4.CUSTOM (Folder) --jquery-ui.css --jquery-ui.js --jquery-ui.min.css --jquery-ui.min.js --jquery-ui.structure.css --jquery-ui.structure.min.css
Jquery Cycle plugin: how to animate pager and link to specific slides
Hi there, I am very new to jquery and have been asked to develop a slideshow/timeline, the work in progress can be found here: http://www.chantellecreative.com/timeline/ourhistory.html The list of years extends very far so I want to have the #yearlist animate left and right so that the years that are being viewed are showing in the pager. I also have a secondary navigation that will move the pager and slider depending on the link you clicked Our history = first slide 1931-1960 = start slide at 1931
whcih part of the plugin do i add the return this.each()
hey guys , I just had a very simple question and my question is to which part of of the plugin do you wrap under return this.each() ?? Thank you. Gautam .
Image as a background of a canvas dissapears when trying to draw on it
I'm trying to write a code to write a polygon on a "preview image" for an type file input. The problem: when I click on the canvas to draw the first point of the polygon, the image dissapears.., why? <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script> <canvas id="canvas" width="500px" height="300px"></canvas> <input type="file" id="file-input"> $.fn.canvasAreaDraw = function (options) { this.each(function (index, element) { init.apply(element, [index, element,
Why do my jQuery UI buttons no longer display the excite-bike theme?
On a previous site, I used the excite-bike jQuery UI theme on buttons, and (IMO) they look great: On my new site (which is now live here), which started with the same exact code as that previous one, and I just changed what needed to be changed for the new site, it no longer works. The buttons are outsized and generic (select the Media tab at that site to see them). Yet, I'm still referencing the necessary CSS and jQuery in my _SiteLayout.cshtml file (this is a WebPage project created with WebMatrix
any easy simple example explaining Deferrer and Promise ?
HI, I look everywhere to understand what is promise and deferred, what we need it for, but all blogs, articles, tutorials are very complicated, I will appreciated if someone give us an easy example for dummies. a working example in jsfiddle , codepen or any. Thanks
Input text not rendering with Windows Phone 8.1
Hi. I am currently developing a hybrid Cordova app that is using jQuery Mobile for UI. Right now, I have an issue with jQuery Mobile that it does not behave correctly on Windows Phone 8.1. Mine version of JQM is 1.4.5 and I am using jQuery 2.1.3. If I include the reference to the jquery.mobile-1.4.5.js, then the input text would not be rendered at all. Without loading the mobile script, the app loads the input field correctly. The app is working correctly on both Android and iOS, and per the support
Remove hover on one sigle menu-item (superfish & hoverintent)
Hi, I'm learning, spent a few hours trying a few things. Still, I don't see how I could stop the hover (underline) effect on one single menu item... Right now I'm using HTML in the menu item: <a class="noEffect">Link</>, and using a.noEffect:hover { border-bottom=0 !important;} and it works, but for a fraction of a second the border appears and disappears... :( I was looking into intercepting Superfish when the hover is added, but I'm not sure where to look. Something like if( $(this).hasClass('.noEffect')
Next Page