20,316 Topics
<?php include('connect.php'); $upid=$_POST['id']; $upname=$_POST['categoryname']; $updesc=$_POST['description']; $newupid=mysql_query("update tbl_category set categoryname='$upname', description='$updesc' where id='$upid'")or die(mysql_error()); echo "<script type='text/javascript'> alert('Updated Successfully'); window.location.href='view.php';</script>"; ?> This is updated code. It works successfully. but I want to show alert box "Nothing can be updated" if no changes made. And it should have the same .
Currently I'm using xampp, and creating chat-app with AngularJS and integrated with Laravel framework. My AngularJS front-ends is actually placed in Laravel's views folder. And the back-ends stuff (Angular's controller, services) placed in public/app folder. I try to integrate chat-app template (front-end) into my video template. So it's actually a …
Hi everyone, I am having some problems implementing a js slide caption on my webpage and I would appreciate if someone could help. Here is the Js caption http://ryun.github.io/HCaptions/ and here is the code I am working with : <html> <head> <style> .cap-overlay{ font-family: monospace; font-size: 26px; color: #666; } …
I have several pages that has the following mark-up in it, but the value of the datetime attribute is on each page different. <a class="index" href="#"> <time datetime="2015-W01"> <strong>week</strong> <strong>01</strong> <strong>2015</strong> </time> </a> On each page I include with PHP at the bottom a page with the following mark-up: <ul …
Is it possible to add a character entity to an input field using javascript? I've been able to do it statically by just including it in the value attribute of the input tag like this: <input id="degInput" type="text" value="180°"> However, I'm not able to use setAttribute() to add it dynamically. …
Hi, I would like to put steam effect on my home page. How to make animated steam effect using jquery? Please help me. My Website : http://hotels-b2b.com/biryani/
Dear All, We have been working on this plugin trying to add an additional feature. http://jsbin.com/utaxo3/139/edit?html,js,output Selection of multiple objects and movement(Drag and Drop), we have no luck yet so far. So we are looking for people who could solve and provide a programatical logic. Payment is assured on solving …
i have created one table dynamically using javascript & displaying on htmlpage in div tag, in that table i have 2 fields one is name & second is DeleteLink, one input textbox in html, my question is when i click on Name field the text on which i am clicking …
Hi I am having two textbox, textbox1 is having autosuggest feature. i want to display related value based on textbox1 value. can any one pls help me. i collected the code from internet **Output Example** Report Name : PHP Report Version: It has to display the Verison from the database. …
How to convert php associative array to javascript array
How to show multiple pictures in between a period of time. Can anyone give me with example?
Hello, I have just created a new page of form submittion but wanted to show different form value when different option is selected from the dropdown can any please help me out with this concirn. Here is my code <form method="post" name="form2" action="insert_report.php"> <label> <p><b>Campaign</b></p> <p> <select name="campaign"> <option value="">Select …
some month ago i work to make a interactive web with javascript but when i copy the project to my patner which use Apple Mac Pro then the interactive is not active. So i use another try change function showDiv(tahun){ document.getElementById(tahun).style = "display:none;"; } to function showDiv(tahun){ tahun.style.display = "block"; …
Hey everyone. Im creating a site and im trying to add a second RSS feed, even a third or forth if i can figure out how to do the second one first. The code bellow is in my index.html templeate. Its based off of Feedget. Im not sure how to …
so i have the following data in all-names.json { "copyright": "Copyright (c) 2014 The New York Times Company. All Rights Reserved.", "num_results": 44, "results": [ { "display_name": "Print & E-Book Fiction", "list_name": "Combined Print and E-Book Fiction", "list_name_encoded": "combined-print-and-e-book-fiction", "newest_published_date": "2014-12-14", "oldest_published_date": "2011-02-13", "updated": "WEEKLY" }, { "display_name": "Print & …
hello. is that possible to hide an empty table when there is no records found from the mysql database. if possible, how? i have no idea to do it. hope anyone can help me. below is part of my coding: <?php $count=0; include 'dbconnect.php'; if (!isset($_GET['startrow']) or !is_numeric($_GET['startrow'])) { $startrow …
Hi, im trying to increment the numbers to create unique id so i did: twin_chairid1 = 1; twin_chairid2 = 2; var twinseatsid = "twinseat" + twinseats; //create div for twin seats $("<div class='twin_seat' style='width:120px;display:table-row;'></div>").attr('id', twinseatsid).appendTo(cinema).draggable({ containment: cinema, snap: true }); //create unique id var twin_chair1_id = "B" + twin_chairid1; var …
This seems simple enough, but I can't find how to do this anywhere on any forum. I have a table of cells that have a schedule of classes. There are 8 buttons above the table that when pressed I want the cells to highlight in a corresponding fashion. For instance, …
For many years, I have been a server-side/database developer. I want to start doing more client-side development. But I can't seem to find much information concerning the overlap between ASP.Net and JavaScript. Can someone point me to any books/videos about how to do this? I know that using some constructs …
I am having a list of values inside a loop. I need to turn all those values into exact 5 star rating. I have searched a lot, but i cant get the exact answer what i need. <?php $a=0; while($a<5) { echo "<input type=text value=$a><br/>"; //need to display star rating …
Here is my [JSFiddle](http://jsfiddle.net/jimysb/bh8t0d8u/) demo and username doesn't display minlength message and remote. For remote I'm not sure how to check the username if exist or not.
i have this code that creates a div, adds id and appends the div. I am trying to drag that div but its not working like it should. $("<div class='twin_seat' style='width:120px;display:table-row;'></div>") .attr('id', twinseatsid) .appendTo(cinema) .draggable({ containment: cinema, snap: true, helper: 'clone' }); im using `helpe: clone` because i just want …
Hello There, I have used below code for input field and error span <form name='SubmitGuest' class='simple-form'> <div> <span class="lable"> Guest Name</span> <input type="text" style="margin-left:0.5px;" name="guest_name" ng-pattern="/^([a-zA-Z]+\s*)*[a-zA-Z]+$/" ng-model="guestData.guestName" required placeholder="Guest Name"/> <span ng-show="SubmitGuest.guest_name.$error.pattern"> Please enter valid Name </span> </div> <!-- such multiple div for fields. --> </form> It is working correct. …
OK, here's a question for anyone willing to step up and answer or point to solution: I have some HTML forms for site visitors to request product information. Some of these forms send data to SalesForce. There has been an issue of spam coming through, so I have implemented CAPTCHA's …
Hello, im trying to create a page that drag, drop and clone image on the drop plus dynamically add ids to the clones images. i sort of have it except the dynamic id part im not doing it right. $(document).ready(function(){ var cinemascreen = $("#cinema-screen"); var cinema = $("#cinema-wrapper"); var single …
Hey my website www.m.keybench.com is using jQuery mobile and having some serious problems! sometimes my script fires and other times it doesn't.. someone please help?
Good day! I just want to ask a little help on how to redirect the user to the previous page after 5 seconds? Thank you!
Dajia hao, daniwebians! Just a quick question, is it possible to focus on a textbox on an externally loaded website? My goal is to load an external website, focus on a textfield, auto fill it with the current date, then submit it to then run my newly created scraper tool …
hi guys... i want to make a hover button in react.js.. so there is a button.. when the mouse in on the button(hover),the new button appears above the previous button.. this is my code so far var Category = React.createClass({displayName: 'Category', render: function () { return ( React.createElement("div", {className: "row"}, …
i want to know how i can get a json response from my node.js server and display the response on my web page ` var request = require("request"), username = req.body.username, password = req.body.password, url = "https://api.ecoachsolutions.com/main.php?ecoachsignin=1&server=remote&user="+username+"&pass="+password; console.log("url is "+url); request.get( { url : url }, function (error, response, body) …
I have an endless scroll application in PHP and jQuery. This my javascript: var base_url = window.location.origin; $(window).scroll(function() { if($(window).scrollTop() + $(window).height() > $(document).height() - 100) { var offset = $(".badge-item").length; console.log(offset); $.ajax({ url : base_url+'/index.php/display/jQuery_movies', type : "post", data : { offset_cnt : offset }, datatype : 'html', success …
The error is on this line according to the browser console Uncaught TypeError: Cannot set property 'onclick' of nullcal.php:26 (anonymous function) When the a date is clicked other than in the january, april, novemeber the form doesnt opens. the code on like 26 is from the console browser is document.getElementById('trigger0').onclick …
I have the following code: //list is the result of the query of the database var list =[]; var _this = this, $div = _this.$div, opts = _this.settings, $table = $div.find(opts.tableSelector); var fieldsToShow = ["Right Identification", "Left Identification", "Total", "RIGHT IDENTIFICATION RELAPSE", "LEFT IDENTIFICATION RELAPSE", "Total", "IDENTIFICATION TOTAL IN "]; …
i add this <head> <link href="/css/jquery.bxslider.css" rel="stylesheet" /> </head> <body> <ul class="bxslider"> <li><img src="/images/pic1.jpg" /></li> <li><img src="/images/pic2.jpg" /></li> <li><img src="/images/pic3.jpg" /></li> <li><img src="/images/pic4.jpg" /></li> </ul> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script src="/js/jquery.bxslider.min.js"></script> <script> $(document).ready(function(){ $('.bxslider').bxSlider(); }); </script> </body> but all i get is unordered list of the images what s wrong
I'm recording this time and date for posterity - January 18, 2015 at 5:03 p.m. (Pacific Time). What is the significance of this moment in history? It's the exact time and date that I *finally* solved what was probably the most plaguing problem I've ever encountered in *any* subject I've …
How to focus cursor using jquery for text box, while moving to next field , if it is empty,
what this mean Note that the call must be made inside of a $(document).ready() call, or the plugin will not work! any1?
I've worked with alot of jquery galleries before but this one won't work.I'm using Twitter bootstrap and I wonder if it's JS bootstrap files are interfering with the JS file for the Unslider jquery gallery -> [Unslider](http://unslider.com/) that I'm using. ` <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- …
I manage to copy/write/edit this code, but it doesn't seem to work, not even `alert();` is executed, it does exactly nothing. <?php // include "from_db.php"; ?> <!DOCTYPE html> <html> <head> <script src="http://maps.googleapis.com/maps/api/js"></script> <script src="http://code.jquery.com/jquery-1.11.2.min.js"></script> <link rel="stylesheet" href="styles.css" media="screen" /> <script> function initialize() { var mapProp = { center: new google.maps.LatLng(51.509, …
I am new to bootstrap framework..I need just small loader WITH bootstrap .. and Just call that small loader with javascript.any help ??
Is it possible whether with JS or jQuery to take an image, make it fit a container proportionally if it's too big for the container, then export the results to a PNG image, saving the step of redoing the image from scratch in a smaller image size ?
I cleaned up my code but now when I run it I am getting an error. I am not sure where it is coming from since it was working before I added the nested view and did not change the controller. Here is my [plunkr](http://plnkr.co/edit/vN06ZQYWW0cpO4izBtgT?p=info). Let me know if there …
On my readURL() function in my scrtipt. I would like to know what would be the best method in being able to auto get the ID from my img tag. Because I have mulitple img rows that get created with own id. What would you think so that the reader.onload …
Can someone help me in building Interactive map with the help of javascript
i used text avatar jquery for dashboard profile image [avatar JS](http://judelicio.us/initial.js/). when Jquery append <img /> tag dynamicly not getting profile avatar.below is sample script <img data-name="Steve" id='SteveID' class="profile"/> <script> $('#SteveID').append('<img data-name="Jhon" id="JhonId" class="profile"/>'); </script> <script> $('.profile').initial(); </script>
Hi, so for my .net project I've to use HTML/CSS provided by another colleague. Ive copied this into the site master page in .net but it doesn't appear in the child pages, anyone have any ideas how I can fix this. The code is: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" …
... but I can't for the life of me figure it out. I have an object that comes from an application which has a Status property, and within that property is Name and Key. So I can do things like `object.Status.Name = x`. I have created another of these objects …
When I remove or comment out the alert statement it fails. $(document).ready(function(){ $('#div_db, #div_tables, #div_data, #div_nav').hide(); $("#div_db").load("generic_get_dbs.php"); $('#div_db').show(); alert('line 5'); });
The End.