15,694 Topics

Member Avatar for
Member Avatar for hrushi9

I'm Using **AdminLTE-2.3.0** template, **jquery.imgareaselect.js** I'm using bootstrap modal to submit form via ajax. Inside Modal I have preview of image before upload. And **imgareaselect** is not working well that I proceed further with image cropping. **ScreenShot of error is attached.** **Please help.** **Thanks.** **imgareaselect-animated.css** .imgareaselect-border1 { background: url(images/border-anim-v.gif) repeat-y …

0
217
Member Avatar for shashigowda

Hi, i need urgent help.. iam working on leave management system(LMS).if the employee apply for the leaves means,one message go to HR inbox (internal application inbox). iam designing inbox for this..it has two parts(2 coloums).in the first coloumn iam displaying messages with employe name,id nd subject(just like preview of the …

Member Avatar for shashigowda
0
247
Member Avatar for FarrisFahad

I am trying to build a scrolling system for my website. This is what I have com up with ... $.ajaxSetup({ cache: false }); $(window).scroll(function(){ if($(window).scrollTop() == $(document).height() - $(window).height()){ picturesCount = $(".Picture-1A").length; allPicturesCount = $("#allPicturesCount").text(); alert('picturesloaded:' + picturesCount + ' PicturesDB: ' + allPicturesCount) if(picturesCount < allPicturesCount){ $.post('ajax/load-latest-pictures.php', {pictures_loaded:picturesCount}, …

Member Avatar for FarrisFahad
0
1K
Member Avatar for priyanka85

I have an input field which is showing vulnerable in security scan using XSS attack as: STYLE="xss:e/**/xpression(try{a=firstTime}catch(e){firstTime=1;alert(969)});" Could you please suggest how can we prevent from vulnerability like this ? Field: <input id="{ControlItemUniqueID}Data" style="width:150px" name="{ControlItemUniqueName}" type="hidden" {MaxLength}{IsEnabled} {IsReadOnly} class="datatext {CssClass}" value="{Data}" onkeypress="sanitizeEmployeeDateData()" onmouseover="sanitizeEmployeeDateData()" onblur="sanitizeEmployeeDateData()> <script> function sanitizeEmployeeDateData() { var EmployeeDate …

0
168
Member Avatar for AleMonteiro

Hey fellas, some time ago I started trying out Brackets, and guess what? Loved it! If you don't know, it's an open soude editor made out of html, css and javascript, powered by node JS and chromium and sponsored by Adobe. A lot of open sources projects coming together to …

Member Avatar for AleMonteiro
2
435
Member Avatar for Praveen_15

Hi everyone i need help in getting value from 3 depenedable dropdown menu and after selecting option from 3 dropdown menu the data showed be shown in textbox eg. First value **package1** Second Value **car1** Third value **Type** and textbox value **Rate1** **Rate2** **Rate3** Please help me in this Thanks …

Member Avatar for Praveen_15
0
424
Member Avatar for seularts

I am trying to make the smooth scroll effects with this basic script for this site: http://greaca9.ro/test/index.html $(function() { $('a[href*="#"]:not([href="#"])').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); if (target.length) { $('html, body').animate({ scrollTop: …

Member Avatar for panduranga_1
0
324
Member Avatar for didinadeen

I'm trying to populate a multidimensional html table with data from a JSON. The idea is that the first row is with the dates and the next ones start with with the name of the value and for the value for the date in the first row. Just like and …

Member Avatar for panduranga_1
0
399
Member Avatar for shashigowda

Hi, how to pass variable value inside js. i want to add **Days** value to **From** date and dispaly it as **To** date here is my code,please go through it,i have explained in comments HTML days:<input type="text" id="capped_days">//manual i/p From:<input id="dt1" type="text">//date picker1 To:<input id="dt2" type="text">//datepicker2 javaScript $("#dt1").datepicker({ dateFormat: "dd-M-yy", …

Member Avatar for AleMonteiro
0
325
Member Avatar for ramsiva

given below my code is displaying two date pickers <script> $(function() { $( "#from" ).datepicker({ minDate: -2, maxDate: "+1d", changeMonth: true, numberOfMonths: 2, onClose: function( selectedDate ) { $( "#to" ).datepicker( "option", "minDate", selectedDate ); } }); $( "#to" ).datepicker({ minDate: -2, maxDate: "+1d", changeMonth: true, numberOfMonths: 3, onClose: function( …

Member Avatar for ramsiva
0
827
Member Avatar for dawbin

I need to dynamically create two DIVs and an item to drag/drop between the two. If I code static HTML this works fine but dynamically I am missing something. Has someone been able to define drag events dynamically and have them work? <html> <head> <script> function main() { //SOURCE var …

Member Avatar for AleMonteiro
0
331
Member Avatar for jonow

Hi I have an iframe on my website and it will load new content inside of the iframe when a user clicks on a link. You never navigate away from the page. Is there a way to display the source of the iframe or the html file that is being …

Member Avatar for Kevon
0
2K
Member Avatar for baig772

I have a div with `width: 200px` and I am adding text in it dynamically, I want the text to fit in this div but the text is getting out. I have tried to change the font size on character count but it does not work in all cases, like …

Member Avatar for AleMonteiro
0
387
Member Avatar for Lau_1

Hello, anyone have any idea on how to display selected image in popup box? and then upload. Currently, the basic way is to display the selected image in a <div> tag, and i want to change and display the image in popup/dialog/confirmation box. Below is the code to select image, …

Member Avatar for AleMonteiro
0
1K
Member Avatar for Lau_1

Hello, i not sure what is the problem with my code. Below is my code. <?php if(isset($_SESSION["products"]) && count($_SESSION["products"])>0){ $total = 0; foreach($_SESSION["products"] as $product){ $product_name = $product["name"]; $product_price = $product["price"]; $product_code = $product["product_code"]; $product_qty = $product["product_qty"]; $currency = "RM "; $img = mysqli_query($link, "SELECT img FROM internet_shop where id=$product_code"); …

0
227
Member Avatar for Martin_11

<div id='ad' style='position:absolute; left : 174px; top : 14px; width : 597px; height : 740px;'> <div style="opacity: 1.0;"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- 500-400 --> <ins class="adsbygoogle" style="display:inline-block;width:500px;height:300px" data-ad-client="ca-pub-********" data-ad-slot="*****"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <script type='text/javascript'><!-- window.onscroll = function () { //hope this works, havent tested …

Member Avatar for rproffitt
0
314
Member Avatar for Amr.Mohammad87

Greetings, I am a newbie in web development and I am working on a website backend using ***ASP.NET***, ***Bootstrap***, and ***jQuery*** and I need to upload files, simply photos, that will be used to be displayed on the frontend banners. I already used the HTML5 file API to read the …

Member Avatar for AleMonteiro
0
368
Member Avatar for hastings.george.5

In my javascript code, I want to clear the text fields after done with the operations using onclick command. Question: Is there a predefined fuction to serve this purpose?

Member Avatar for hastings.george.5
0
174
Member Avatar for janicemurby

hi im not sure if come into the right section but im looking at adding a chatroom to my site for my users to use and im wanting it where they dont have to log in or register to chatroom instead they login on site and the username is same …

Member Avatar for mblan180131
0
208
Member Avatar for Carsten_1

I'm currently working on a website; crafterguide.azurewebsites.net; and I was woundering how to get the best possible login/register/logout page, how get it where when someone creates/log's in to a(n) account that it redirects them to a profile page, and just some feed back and critisizum. And lastly how to get …

Member Avatar for rproffitt
-1
302
Member Avatar for mblan180131

hello, fellow computer geeks. I seem to be having a problem with this javascript code. It's for a new game that I am making in cloud9.io's developer. when I run it, it executes everything up to the document.write("<img src='loading.gif' id='load' />"); and ignores everything else. I can't seem to get …

Member Avatar for mblan180131
0
222
Member Avatar for sahilmohile15

Hello i am developing a project but getting an error i don't know why is this happening and i have tried everything i can. please help me i am providing code below it requires 3 files to understand it so i am sending them: index.php <!-- Main Content--> <div class="col-md-8"> …

Member Avatar for hericles
0
438
Member Avatar for du_ebrithil

how would I add text that the viewer could see and not just to the console as well as it not getting rid of the other text on the page? <!DOCTYPE html> <html> <head> <title>help me</title> </head> <body> <p>this is a line of text</p> <p>this is another line of text</p> …

Member Avatar for mblan180131
0
301
Member Avatar for AntonyRayan

HI to everyone, I am fully confused. I have a selectbox with dynamic values. No body what value will come in that select box, based on that value , I want to do hide and show. How to do that? Here I included my dynamic select box, <select name='category' id='category'> …

Member Avatar for mblan180131
0
358
Member Avatar for TObannion

So I'm trying to make a script that prompts for two strings, then searches the second string to see if it contains the first using a function triggered by a button. Something is off with my comparison. Let me know what I am doing wrong. <!doctype html> <html> <head> <meta …

Member Avatar for mblan180131
0
183
Member Avatar for AntonyRayan

Hi, I need a help from you. I tried but I can not. Can anyone tell me how to increase the font size in mPDF, Here is the code, where I tried, require('mpdf/mpdf.php'); $mpdf=new mPDF('C','legal','10');

Member Avatar for Bachu
0
4K
Member Avatar for RikTelner

Consider following back-end script. <?php if (isset($_GET["req"])) { $req = $_GET["req"]; if ($req == "delete") { // Very intense calculation which finally results in deletion. } if ($req == "add") { // Very intense calculation which finally results in addition. } if ($req == "modification") { // Very intense calculation …

Member Avatar for jkon
0
233
Member Avatar for James_43

Hi all, Something disturbing is happening... I make an AJAX call to a page and it returns unprocessed PHP, not HTML. However, when I navigate to the page manually, the PHP is processing as expected. This must be a huge security vulnerability? My AJAX call is: $('#forgot').click(function(e){ e.preventDefault(); lFormContainer.load("ajax/?page=authenticate/username"); }); …

Member Avatar for James_43
0
679
Member Avatar for priyanka85

I have this function call which I need to convert to POST request because this is getting popped up in query parameter in SSL security threat. Could you please help ? Thanks LoadYearMakeModelUsingAutoVin(controlId, 'RequestXml.aspx?name=GetVehicleInfoUsingVinCanada&VinOrSerialNumber=' + vinOrserialnumber); ------------------------------------ function LoadYearMakeModelUsingAutoVin(controlItem, dataSourceUrl) { var xmlDoc; var xmlDoc2; if (window.ActiveXObject) { var xmlHttp …

Member Avatar for AleMonteiro
0
350
Member Avatar for ramsiva

how to use on() event with autocomplete. I am using below jquery code $(function() { $( ".skillsex" ).autocomplete({ source: 'search.php' }); }); but i want to use on() event with auto complete any body help me. how to use

Member Avatar for ramsiva
0
100

The End.