SharePoint Online Disable all Webart Tooltips on a Page
Hello. The jQuery below disables the hyperlink attribute for all webparts on a SharePoint Online page when you hover over a ListView webpart title. $(document).ready(function() { $('.ms-webpart-titleText').each(function() { var link = $(this).find('a'); if (link.length > 0) $(this).text(link.text()); }); }); I also need to disable the tooltip that pops up when you hover over the webpart title. I've tried various javascript and jQuery functions and nothing seems
can't get AJAX to access request.done function
This is related to my last post which I never did figure out. I am sending an AJAX request and am getting a response but not through the request.done function. What happens is that the console shows this: ["Costs","rdata","show","sqlite_sequence"] Which is the correct data returned from the URL sent to AJAX. The alert("data returned"+data[0]); is never seen. <script type="text/javascript" > $("#dbForm").submit(function() { $("#dbForm").hide(); var
How to pass value with apostrophe.
Hi, I have to run php file and I pass a value that can contains apostrofe and the variable is truncates just after apostrophe. https://jsfiddle.net/tegatti/y8vs70ru/7/ This is my line: var IdFornitore = 2; var ragione = " L'eden della frutta"; $("<form method=post action='https://greenwindow.altervista.org/eventiFornitore.php'><input type=hidden name=a value='"+IdFornitore+"'/><input type=hidden name=b value='"+ragione+"'/></form>").appendTo("body").submit(); }) If ragione has not apostrophe
serialize() after loading a form from PHP
Hello to the forum :-) I am not very familiar with jquery so the first problems are not long in coming. I am loading a form from PHP via ajax into a div container. <div id = "" formdiv "> </div> The form is displayed correctly, but the source code of the page does not show the html code of the form. (Only available in the cache?) The form code is only accessible via $ ('# formdiv').html() If the form is now to be sent to a serversite script, I need the values of the fields. key_value = $ ('# formdiv').serialize()
how to make submenu to open on the left side?
Hi, Please, can someone helps me. I have to change opening a submenu on left side, instead on right side when it floated right. I've used this function, but it doesn't work: $('body, html').css('overflow', 'hidden'); var screenWidth = $(window).width(); $('body, html').css('overflow', 'visible'); if (screenWidth > 767) { $(".dropdown-menu").hover(function () { var menuPos = $(this).offset().left + $(this).width() + $(this).find('ul').width(); var newPos = $(this).offset().left
Value of Menu-Item-Text on Sharepoint Top Navigation Selection
I need to capture as a variable the value of Menu-Item-Text for the "static selected" item on the Top Navigation bar of a SharePoint 2013 page. A couple of posts got me close but I can't seem to get that value. In the html below, I want to capture "Tools and Resources" as a variable so I can use it. There is only one "static selected" class among the Top Nav tabs. All the others are just "status". I'm only interested in the one that is currently selected. Thanks. <div id="zz11_motTopNavHolder"
wheel of fortune with random prize win
Hi all, I am hoping that some may be able to help me out here, or point me in the right direction. Long story short I am trying to set up a wheel of fortune installation for a music museum, all pro-bono as it were, it's all run on a voluntary basis... the installation is very basic in principle click the button and spin the wheel and depending on where it stops - the user gets given a lyric... there are only a set amount of lyrics / lines - roughly 19/20... ideally what the museum would like to do
Get user ID from dropdown and show content related
The admin has a drop down of all the current users in the system. On a particular page it loads content related to that user when they are logged and it’s based off their user ID. What I’m trying to do is when the admin clicks another users in the drop down the content in that area changes according to the new users ID. I can get the jQuery to get the users ID and then send it via Ajax. However what I get back is just the number with a 0 behind it. I’ve checked and that means something went wrong.
I want to be able to post all the information of the selected list link onto the page
This is the format of the json file i am using { "year": 2013, "title": "Rush", "info": { "directors": ["Ron Howard"], "release_date": "2013-09-02T00:00:00Z", "rating": 8.3, "genres": [ "Action", "Biography", "Drama", "Sport" ], "image": "https://ia.media-imdb.com/images/M/MV5BMTQyMDE0MTY0OV5BMl5BanBnXkFtZTcwMjI2OTI0OQ@@._V1_SX400_.jpg",
reveal submenu when key is hit with JQuery
I'm attempting to make my menu accessible. I would like so that when a user tabs to menu items they are highlighted. (I have this part working). I'm told that it shouldn't reveal the dropdown until a user hits enter or down key. This is an abbreviated version of the nav code: <nav id="main-menu-con" class="mmenucon"> <div class="menu-menu-1-container"> <ul id="menu-menu-1" class="main-menu-items"> <li id="menu-item-51" class="menu-item menu-item-type-custom
How can I search a url and append?
Hi there, I'm really stuck and would be very grateful if someone could please help me. I have the following code: <a href="downloads/file/trf.pdf">TRF.pdf</a> <a href="downloads/documents/file/trf.pdf">XYZ.pdf</a> I need some code that can search through all a-links on a page and check for any of them that contain 'downloads/file' and then add a small icon after the 'trf.pdf' or any other pdf file that happens to be on that a-link. Any other link that doesn't have /downloads/file in its path should
input empty check
Hi I have a code where empty check doesn't work properly, it looks only email works, please help me, thank you, frank <!DOCTYPE html> <html lang="en"> <head> <title>Bootstrap Example</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
need Jquery plugin or code for video thumbnail
i need a jquery plugin that creates thumbnail on the server when a video uploads. and in video gallery instead of showing of video it displays poster or thumbnail Please Help
Event not firing on Dynamically Created Button.
First of all, Thank you for taking some time to help me! Basically I added an event for buttons with class DeleteNumber like this: <script> $( document ).ready(function() { $('.DeleteNumber').on('click', function(){ console.log('Tadaaa!'); }); )}; </script> and it works fine if I add a regular button like this: <button class="DeleteNumber btn btn-success">click me!</button> Now, I did create a button using the following code: var newBtn = $('<button>').addClass('DeleteNumber btn btn-success');
how to append my click result in ajax success?
i made simple like code that can any user inside the chat room can make like for public message <?php // Set the header to accept JSON // Insert your database connection here (should probably use mysqli) $host = "localhost"; // or IP or whatever $db_user = "root"; $db_pass = "xx"; $db_name = "x"; mysql_connect($servername, $db_user, $db_pass) or mysql_error(); mysql_select_db($db_name) or db_name(); // Grab user id from post data if (isset($_POST['likeid'])){ // Write
php ajax post call for registration
hi all How to get all error responses like password dismatch or password not more than 6 chars. or email is invalid. // process the form $('#employer').click(function(e) { // get the form data // there are many ways to get this data using jQuery (you can use the class or id also) //Personal account var image = $("#avatar").val(); var first_name = $('#first_name').val(); var last_name = $('#last_name').val(); var email = $('#email').val();
From console to browser
Hi In my browser I make a request var ourRequest = new XMLHttpRequest(); ourRequest.open('GET','https://............../bedparams'); ourRequest.onload = function(){ console.log(ourRequest.responseText);}; ourRequest.send(); The response comes int my console back as {"Items": [{"datestamp": "2019- {"Items":[ { "datestamp":"2019-12-10T15:00:03Z", "humidity":"45.0", "deviceid":"moisture1-2", "temperature":"19.799999237060547", "voltage":"3.1"}]} How do I get this into my browser please. Thanks
Inserting Accordion code into a Jekyll page does not work . .
People, In isolation as a stand-alone index.html this page https://jqueryui.com/accordion/ is working fine, However if I insert that code without these lines: <!doctype html> <html lang="en"> <head> </head> <body> </body> </html> into an existing Jekyll page that starts with: <!-- Section --> <section id="phr" class="container content-section text-center"> the accordion text shows up fine but the accordion doesn't work - I presume the parent Jekyll css / js is over-riding the accordion stuff? Any
Need to add one column while inserting a row from another table
Hi friends, I am just adding one row from table1 to table2 using jquery. While copying need to add two columns dynamically and then insert into table 2. How to do that please help me . i have shared my piece of code here in jquery $(".addSubject").click(function() { var html = $(this).closest("tr").clone().find('td:last').remove().end().prop('outerHTML'); //$('addSubject').append(`<tr>${$(this).closest('tr').html()}</tr>`); //$(this).remove(); $(".scenario").append(html); });Here
Submitting a form: trapped submit event triggers itself
I have the following JavaScript code in a page: var flagProceedWithSubmit; function WarnDate() { flagProceedWithSubmit = true; $("#popUpDialog").dialog({ modal: true, dialogClass: "no-close", buttons: [{ text: "Sim", click: function () { alert("yes"); $(this).dialog("close"); // $("form").attr("action",
How to hide html header when corresponding td body is empty
I want to hide an html header th when the body td item is null. Below is portion of my code <table class="table table-striped" id="report">
<thead>
<tr>
<th id="hide">ID</th> ---> Hide this
<th id="admins">Admin Name</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr>
How to pass browser info to hidden fields
How can I identify the browser type and OS and pass that information to hidden fields that will pass into our system when the form on the page is submitted? I found some info from over a year ago, but there seems to be a lot of different opinions about the best way to do this.
Hover not working after ajax function
I've got a filter on the website that uses ajax to pull through the specific post category. Before I choose a filter, the hover feature works fine and no issues. However once the ajax function has run, the hover no longer works despite every reason it should. I've googled and tried a number of ways to no success. Two of the options I've found so far which work fine before the ajax are; jQuery(document).on('mouseenter','.cont_panel__img', function(e){ jQuery(this).toggleClass('active'); jQuery(this).siblings().toggleClass('inactive');
Getting “Object not defined” even when it's loaded before the current script
I have two JS files. One defines a const object called WebRequest and the other uses the WebRequest object. The file with WebRequest are loaded before the file that uses the object, but I get: ReferenceError: WebRequest is not defined Html: <script crossorigin="anonymous" integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU=" src="https://code.jquery.com/jquery-3.4.1.js" type="application/JAVASCRIPT"></script> <script src="/SCRIPT/WebRequest.js" type="application/JAVASCRIPT"></script> <script
Ask for changes before close form
Hi, I'm making a form using jquery and PHP. I'm looking for a way to 'ask users to save changes before closing it' in case he/she forget it. I will appreciate any insight. B. Rs. Amaury
How to validate that at least one of two unrelated checkboxes is checked
I have a form with two unrelated checkboxes. How can I validate so that at least one of the checkboxes is checked? I have the HTML5 'required' for both checkboxes, but I think when I click submit, it sees those first and does nothing else. So I tried this after removing 'required', but it's not seeing the second checkbox. if($("#unsubscribe input[type=checkbox]").prop('checked') == false){ $('#checkboxAlert').show(); evt.preventDefault(); } <form id="unsubscribe"> <input type="checkbox" id="group0001"
IE11 ignoring script
I have the following submitHandler that's being ignored by IE only... IE11 in my case. The form data is passing through to our database, but the modal doesn't hide and the window/tab to the downloads page doesn't open. Any ideas? submitHandler: function(form) { HTMLFormElement.prototype.submit.call(form); $('#modalForm').modal('hide'); window.open("http://www.foo.com/downloads"); }
Submit a Form from Button Button Click
Hi, I have below form: <form id="FormFounder" name="FormFounder"> <input id="uuid" name="uuid" type="hidden" value=""> <label for="FullName" style="color: red;">الاسم الثلاثي :</label><br /> <input id="TextFullname" name="TextFullname" type="text" name="FullName" style="width: 100%; font-family: 'Cairo', sans-serif;"><br /><br /> <label for="FullName" style="color: red;">تاريخ الميلاد :</label><br /> <input type="date" name="fname" style="width: 100%;"><br /><br /> <label
jQuery stops the page from loading
Hi, Please see this link: https://www.angelsemirates.com/ when you enter: 7841973xxxxxxxx where xxxxxxxx is 8 any numbers the page will stop loading the rest of the page after the FounderEmiratesID I have more fields to show as you can see below: <!DOCTYPE html> <!-- To change this license header, choose License Headers in Project Properties. To change this template file, choose Tools | Templates and open the template in the editor. --> <html dir="rtl" lang="ar"> <head> <meta charset="UTF-8">
POST to a PHP page using jQuery
Hi I am using below code to get the card number if exists: <script> $(document).ready(function() { $("#ButtonContinue").click(function() { if(!$("#EmiratesID").val()) { alert('Please enter Emirates ID Number!'); return; } alert('Thank you'); $.ajax({ method: "POST", url: "https://www.angelsemirates.com/get_founder_details.php", data: { emiratesid: $("#EmiratesID").val() }, dataType: "json"
Event not firing (JQuery with XSLT)
Hello, I'm trying to integrate JQuery with XSLT and it's not working as intended here is my xsl: <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes" /> <xsl:include href="include.xsl" /> <xsl:template match="/"> <html> <xsl:call-template name="header" /> <body> <div class="jumbotron text-center"> <h1>My First Bootstrap Page</h1> <p>Resize
passing javascript variable to php and redirecting page to php file
how to pass javascript variable to a php file using post method I want that after click my page should be directed to r.php and it should display the passed js variables from client side here is the code <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script> $("#text-id").click( function () { $.ajax({ type: 'post', url: 'r.php', data: { source1: "some text", source2: "some text 2" } }); }); </script> </head> <body> <div> <a href="#" id="text-id">Send
input type='file'
Hi, I need you help to understand why I receive empy sting from this: $("<form 'enctype=multipart/form-data' method='post' action='upload.php'><input type='file' name='file' value='"+arg1+"'/><input type='text' name='a' value='"+arg1+"'/></form>").appendTo("body").submit(); arg1 is the name of the file. in update.php if I use $_POST['a'] it returns the correct name. Instead if I use $_FILES["file"] ['name'] it returns an empty string. Controlling my console: file: a: myFile Thanks in advance. Tegatti
Does jquery 3.4.1 support IE 11?
Specifically with regards to the "getRootNode" that I see mentioned in "isAttached".
Change custom error message
I have a form with two unrelated checkboxes and am trying to configure it so that it requires one checkbox to be checked. I accomplished that with the code below, but now need to change the error message so that it doesn't point to the first checkbox and read, "Please check this box if you want to proceed". I'm trying to figure out how to... a. Change the invalid message to "Please select at least one option to proceed". b. Possibly not have it point to the first checkbox. Here's what I have so far:
Getting the files twice when submitting
I created a form that allows drag and drop for images. So what I've done is that when a user drops an image then the $("#fileuploader").on('drop', function(e) grabs the filename and then uses the $(this).trigger('got-dropped', [filename_list]); to then pass on the filename to the saveForm(). The problem I'm having with my code is that if I do submit a form with an image then my form is submitted twice, one with the image and one without the image. I know that the problem I'm having is due to this
On enter scroll down to next input field and select it ready to write somthing.
I'm hoping this makes sense, but I am building a form and have got a script that so far has disabled submission on enter and scrolls down to the next input field. However I want that next input field to have the cursor selected and to be ready to start typing. This is what I have so far; jQuery('form input').keydown(function (e) { if (e.keyCode == 13) { var nextQuestion = jQuery(this).closest('.form--wrapper').next(); if (nextQuestion.length !== 0) {
JQuery Upgrade 1.1x to 3.0 - Browser Compatibility
After Upgrading JQuery 1.1x library to 3.0. My Application not working in Google chrome/Edge.
Strange Regex Issue with [^0-9]
OK - no laughing at my Regex (it drives me mad!!) I'm trying to only allow digits and replace spaces with commas - this is the line I had var fixedInput = currentInput.replace(/[A-Za-z!@#$%^&*()]/g,"").replace(/[^0-9]/g, ",").replace(/,+/g,",").replace(/^, /,""); There was a strange thing happening - when this output on load the 0 was removed from the digit line - like this: var fixedInput = currentInput.replace(/[A-Za-z!@#$%^&*()]/g,"").replace(/[^-9]/g, ",").replace(/,+/g,",").replace(/^, /,"");
How to get src from video
Hi, I have a problem to get src from video or from document, in the same way I can do this with image, and it works fine: var src = $(this).closest(".client").find("img").attr('src'); I've tried this: var src = $(this).closest(".client").find("video").attr('src'); How can I do? Thanks in advance. Tegatti
Next Page