Standard pseudorandom number generators cannot withstand cryptographic attacks in jquery.js lib file
After running Fortify Security Report getting error in jquery.js main lib file.The error is math.random() is not secure for cryptographic attacks.So please suggest me any change in lib file or create separate functions and replace in lib file.
pagebeforechange event getting called multiple times
Hi, I'm using code under $(document).on('pagebeforechange', function (e, data) { //my code }) This method is getting called multiples time when i visit the page again. Also data.toPage[0] contains string some times and sometimes object. My code is failing as i am considering it object all the times. Please help me.
Using Access Token in jQuery
Hi everyone I have a question related to linking APIs to a third party service. What I’m trying to do is the following: 1- Uploading a file ( image or Microsoft word file) to a home page I have designed by HTML5 2- Posting the uploaded file to a third party platform ( I’ve built an app on their platform and I’ve the access token) The problem that I’m facing is in post step especially the part of writing the code that includes access token and folder ID (the place that the file will be uploaded
Issue with getting dropdown selector values
Hi all, I'm extremely new to JQuery and JavaScript in general, so please forgive my ignorance. I'm having an issue with getting the value from a drop down selector. I can get an alert to display all of the values in the dropdown, but I cannot seem to figure out how to grab a single value when it is selected. I've tried using "option:selected", " :selected", etc and nothing seems to be working. I'm not sure if it's a syntax thing or some other issue i'm overlooking. Here is my code: $('div[k="W105"]').click(function()
text from input not being sent to script
I have an on screen keyboard that when characters are clicked they are added to a text input. This part works fine. The problem is that the text is not getting sent to the search script I'm using. If I manually type in the text input with a real keyboard it works fine. The html for the text area is: <input id="songname" type="text" autocomplete="off"> The script I want to send the text to is: $("#songname").bind("input paste DOMAttrModified", function() { var Title = $("#songname").val();
Updating hide and show code problem
I'm updating some jquery hide and show code. The new code works on other pages. The difference is the new code on the working pages do not use the table tr and td tags. I think the tr and td tags are interfering or causing the div to be too far removed from the triggering anchor tag. Old code that uses an old hidenshow.js include script $(document).ready(function(){ $('.show_hide').showHide({ speed: 1000, easing: '', changeText: 0 }); ... <tr> <td><a class="show_hide" rel="#slidingDiv3"
Can we show FaceBook Page Plugin posts horizontally
Hi All, Can we show the facebook Page plugins posts horizontally on runtime. Can there is any JQuery solution available because we can change and override the twitter timelines horizontally. Can it is possible with facebook. Or there is any such JQuery plugin available for ASP.Net or SharePoint developers. Any idea please share
select input with given name and value from radiobutton
I’m trying to display a div tag, if the user selects option 4 from radiobuttion. I'm not an expect on javascript! <script type="text/javascript"> $(document).ready(function () { $("#GenderInAnotherWay").hide(); $("input[name='Gender'][value=4]").prop("checked", true);{ $("#GenderInAnotherWay").toggle(); }); }) </script>
Select an element of form field from an array of fields
Hi everyone I have a form with an array of field, like this <div class="thumbnail"> <img id="photoimg[]" name="photoimg[]" src="<?php echo $photo[0];?>" <div class="thumbnail"> <img id="photoimg[]" name="photoimg[]" src="<?php echo $photo[1];?>" <div class="thumbnail"> <img id="photoimg[]" name="photoimg[]" src="<?php echo $photo[3];?>" ...... and so on..................... I wish to update photo while i press "browse" button, something such: <input type="file"
My another account are blocked on jquery forum, I need help please.
My another account are blocked on jquery forum. I don't know why because I did not login for very long time ago. Does anyone (moderators) help me please?
Cannot view or modify jQuery UI theme with theme roller.
I have modify theme URL like this. http://jqueryui.com/themeroller/?scope=&folderName=custom-theme&bgImgOpacityError=0&bgImgOpacityHighlight=0&bgImgOpacityActive=0&bgImgOpacityHover=0&bgImgOpacityDefault=0&bgImgOpacityContent=0&bgImgOpacityHeader=0&cornerRadiusShadow=0px&offsetLeftShadow=0px&offsetTopShadow=1px&thicknessShadow=2px&opacityShadow=20&bgImgOpacityShadow=0&bgTextureShadow=flat&bgColorShadow=%23aaaaaa&opacityOverlay=90&bgImgOpacityOverlay=0&bgTextureOverlay=flat&bgColorOverlay=%23ffffff&iconColorError=%23cd0a0a&fcError=%23cd0a0a&borderColorError=%23cd0a0a&bgTextureError=glass&bgColorError=%23fef1ec&iconColorHighlight=%232e83ff&fcHighlight=%23363636&borderColorHighlight=%23fcefa1&bgTextureHighlight=glass&bgColorHighlight=%23fbf9ee&iconColorActive=%23454545&fcActive=%23212121&borderColorActive=%23aaaaaa&bgTextureActive=glass&bgColorActive=%23ffffff&iconColorHover=%23454545&fcHover=%23212121&borderColorHover=%23999999&bgTextureHover=glass&bgColorHover=%23dadada&iconColorDefault=%23888888&fcDefault=%23555555&borderColorDefault=%23d3d3d3&bgTextureDefault=glass&bgColorDefault=%23e6e6e6&iconColorContent=%23222222&fcContent=%23222222&borderColorContent=%23aaaaaa&bgTextureContent=flat&bgColorContent=%23ffffff&iconColorHeader=%23222222&fcHeader=%23222222&borderColorHeader=%23aaaaaa&bgTextureHeader=highlight_soft&bgColorHeader=%23cccccc&cornerRadius=0&fwDefault=normal&fsDefault=1.1em&ffDefault=Verdana%2CArial%2Csans-serif
Upgrade from myEclipse Spring to myEclipse 2017 of jQuery error
Dear Sir/Madam, I have opened and converted the web project in myEclipse 2017. It is JDK 1.7. Everything fine but it has error in jquery javascript compile error. 'with' is not allowed in strict mode as noted in the attached screen code. I believe it is setting in myEclipse about not set strict mode. Am I correct?? Please let me know if you have any ideas. Thanks,
jquery compile error on "
Dear all, I have below code that having compile error. But I do not know and cannot find in some web site. Is there any way to solve this?? Multiple annotations found at this line: - Expected end of statement or expression. <html:hidden property="authenticationCode" /> <input type="number" id="authenticationCode" class="text_field text1" min="0" max="99999999" inputmode="numeric" pattern="\d*" autocapitalize="off" submitName="" autocomplete="off" maxlength="8" onblur="$("input[type='hidden'][name='authenticationCode']").val(this.value);"
How to get google fonts automatically in FONT TEXT Box?
How to get google fonts list in form (font text box), without typing font families in jquery?
Remove a clone of a draggable item
Hi, is it possible to remove or cancel a clone of a draggable element after it was dropped? Thanks
links don't work
Hello, I want to make a new design for my website and want to use accordeon. it's work well, but my page is linked to a sql database and if I can see the result without problem the links don't work. don't know why, who have an idea? thanks you can see the test there: http://marcolympics.org/futur/2010-2012/e_jour.php the code: <h3><a href="#">Jeux</a></h3> <div>
<?php do { ?>
<table>
<tr bgcolor="<?php
if ($SSAdv_m1%$SSAdv_change_every1==0 && $SSAdv_m1>0){
$SSAdv_k1++;
}
print
Accessing td inside of div for editing
I need to provide users ability to edit within table using double click. For this I have the following code: $(function() { $("table td").dblclick(function() { var OriginalContent = $(this).text(); $(this).addClass("cellEditing"); $(this).html("<input type='text' value='" + OriginalContent + "' />"); $(this).children().first().focus(); $(this).children().first().keypress(function(e) { if (e.which == 13) { var newContent = $(this).val(); $(this).parent().text(newContent);
Unexpected token for JSON.parse
Hi, I am trying: JSON.parse(params.is_employee); but getting: Error: 'Uncaught SyntaxError: Unexpected token u in JSON at position 0', line 1, file 'http://localhost:54065/index.html#'. What's the reason? Thanks, Jassim
jQuery Intergatiion with Paypal Standard
Hi, I have a project to use (Paypal standard) for online payment. Is it possible to use with jQuery to avoid the standard payment form and use my own form then just pass the amount through jQuery? Thanks, Jassim
Issue Check size from input
hi all i m a beginner and i have a trouble, i'd like check multiple files size from input file and if it's too big do an alert. I'm too bad, i don't know why that doesn't work :'(. If you could help a dumie ^^. Check my input files with id "inputcontrol" and alert. But nothing append!!! Max Size 2000 Thks Guys :-) Below my html : <span class="btn btn-primary" id="browse"> Browse… <input type="file" style="display:none;" multiple id="inputcontrol" name="userfile[]"> </span> Below my Jquery:
jquery-ui sortable -- prevent drag above first row
I have a table where some rows are group names. I don't want any row to be dragged above the first group name row. I would appreciate any help fixing this so that no "kit" row can be dragged above the first "group" heading row. My code looks like this: <form id="groups" name="groups" class="ya" method="POST"> <input type="hidden" name="group_order" id="group_order"> <input type="hidden" name="kit_order" id="kit_order"> <table id="sortable"> <tbody> <!-- this is a group name
cycle plugin for wordpress
is this plugin no longer working for wordpress? https://wordpress.org/support/plugin/wp-cycle it seems that even the author of this plugin for WP is not the same as the author (Malsup) for the "regular" cycle plugin.. author mentioned here & here is Nathan...... (??) so what other slideshow plugins similar to cycle are there for WP? I have been using cycle for seven years now in "regular" websites, with excellent results, was hoping to use it for WP too....:-o thank you.....
Adding dash every 4 typed characters
Hello, I would like to have a "-" to addup to the every 4 characters of my codes but struggle with the jquery on this. The code has to look like : xxxx-xxxx-xxxx-xxxx Meaning that 3 dashes will be needed. The code I got at the moment is: <input class="form-control input-lg" id="coupon-field" type="text"> <script> $('#coupon-field').keyup(function(){ $(this).val($(this).val().replace(/(\d{4})\-?(\d{4})\-?(\d{4})\-?(\d{4})/'$1-$2-$3-$4')) }); </script> I thought this would work but doesn't,
Moving form.validate to document.ready breaks JQuery validation
I am missing something simple I bet. I have a working MVC form that uses JQuery validation emitted via Data Annotations. To simplify, the form has one textbox (UserName). UserName has a Required Data Annotation. I call this in the form.submit: $('#frmAddUser').validate(); var isValid = $('#frmAddUser').valid(); if (!isValid) { return false; } If UserName is blank then form.valid is false. But if I move form.validate to document.ready then form.valid is true even when UserName is blank. Why did moving
Cose button
Hi all, I want to make some changes on this http://demos.jquerymobile.com/1.4.0/popup-iframe/ I just want to put close "X" button on upper-right corner (video player example). Also overlay should be close by only clicking close "X" button. I dont want to fade away or close by clicking outside area of the iframe. Thanks
Why click event auto runs when page loads?
I have a modal <div class="modal fade" id="selectLanguageConfirmModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3>Select Language</h3> </div> <div class="modal-body"> <p>Are you sure you want to do this?</p> </div> <div class="modal-footer">
pointer-events: none; doesnt work in IE
pointer-events: none; doesnt work in IE but works in chrome, I need to disable checkboxes in IE, is there any way to disable checkboxes from CSS?
How to convert html div to pdf format in jquery
I want to convert html fields to pdf format using jquery.. I need to remove input fields , instead of that i need to display value in text My code as follows <!DOCTYPE html> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <script src="http://code.jquery.com/jquery-1.7.2.min.js"></script> <script src="jspdf.min.js"></script> <script type="text/javascript"> $(function () { $('#cmd').click(function () { var
jQuery UI via npm doesn't contain built js files
Hi, I tried to switch to npm from Bower for installing jQuery UI, but the npm package doesn't contain the built files. Now that Bower is being deprecated, it would be much appreciated if the npm package could include the built files. Many thanks :)
Cant change font awsome icon color on success post
I am trying to select a button <i> element using jquery and change its colour its a font awsome tag within a button grouping my problem is I have about 50 of these buttons on page at one time I am using a class to find them. $(".btnRemoveFave").find('.fa-heart').css('color', '#007c7a'); Now i believe why it wont find them is cause it is nested in a <i> the font awesome icon on a <span id="ctl00_BodyContentHolder_lblfavourite-xxxx"><button class="btnAddFave" id="btnAddFave_xxxx"
leaflet :receive value onclick event on marker.binbdpopup each time
I have an issue receiving data from my hyperlink to my on click function after bindpopup. Let me explain. First i receive a two dimensional array (data) from a json file .This array has lat and lng of markers plus some usernames which i want to put to the popups. So what i do is make a for loop for the markers to be added on the map , then bind the popups with them. This works. Now i want each popup to have a hyperlink inside ,each with a different name (that works too) and then when a user clicks
"Origin [...] is not allowed by Access-Control-Allow-Origin."
I tried to fix this with the approaches found here but the error remains, and no JSON data is fetched. I want to use an API found here but I can't get it to work. I'm aware that the code on line 7 would currently retrieve all JSON data from that url, but right now I'm just trying to get past the "Origin..." error. This is run on localhost. Here's my code: $(document).ready(function () { $.getJSON("https://api.tronalddump.io/random/quote", function (json) { $("button").click(function ()
How do I get multiple results when I search a js object?
Hello, I have this script to list movie titles. At the moment it only shows 1 result, the search term has to be exact and if nothing is found the old value reamins. Here's What I have. Html: <form id="form"> <h3>Movie Search</h3> <input id="moviename" type="text"> <button class="btn" type="button" id="go">Search</button> <div id="placeHolder"></div> </form>Jquery: $(function() { var data = { "movies": [{ "title": "Aeroplane" },{ "title": "Back to the future" },{
Determine Internet Speed using JQuery
Hi, Is it possible to determine client internet speed using JQuery? How can I do that please? Thanks, Jassim
Not sure how to add a getcookie to a jquery script
I have a jquery script on a html page, however I would like to check to see if a cookie has been added first. If I add the line if (!$.cookie( "success" ) ) location="index.html"; to the following, nothing works. Can it be added? <script type="text/javascript"> // <![CDATA[ $(document).ready(function() { $.ajax({ type: "GET", url: "json/170826_rendezvous.json", //json file dataType: "json", success: function(json) {
iframe auto resize hieght
hi how can make iframe auto resize width and hieght ? i had used some codes but not working
Nested Ajax calls
I have a list of users (returned as JSON) and I want to dynamically generate a profile for each user. The user has a set of social media channels that differ for each user. There are two templates that I am using one for the profile and the other for each social channel. I am fine until I try to load the social channels. $(function () { if ($('#allMyPeeps').html() === '') { var userData = 'allMyPeeps.json'; $.getJSON({ url: userData.myPeeps, format: "json" }) .done(function( peeps ) { console.log(peeps);
Multiple Datepicker
i am currently trying to develop an appointment book software. I have tried a field where i put in the name of the appointment and next to it is a Date picker. now i want to put in the name and select multiple dates on the Date picker but i don`t know how it works. i was thinking to pick multiple dates and they will be saved in an array or have you got better ideas?
Passing two functions with .click()
I want to understand why the code in my first example doesn't work as expected (only the anonymous function is called?), and why my other example runs fine. Is this problem specific to .click() or to callback functions in general? Here, only the anonymous function is called? $(document).ready(function () { $("button").click(renameButton, function () { $("div").append("<p>Para</p>"); }); }); function renameButton() { $("button").html("New Name"); } EDIT: Ok, so I added renameButton();
sidebar slide to left problem
i have a sort of side bar that acts as a navigaton menu but i want it to be hidden to the left of the screen with only the little rectangle at the end sticking out so when the user hovers their mouse over it the whole thing slides out i have tried for ages but just cant get it to work.. i just ended up creating a mess. HTML <div class="navshell"> <img src="Images/Untitled-1.jpg" class="menuhover"> <div class="navmenu"> <nav id="primary_nav_wrap"> <ul> <li class="current">Home</li>
Next Page