52,566 Archived Topics
Remove Filter ![]() | |
I am tinkering with prototypal inheritance in JavaScript. I have the code below and I am trying to find out if there is a way of getting the code which makes Cat inherit Animal actually inside the Cat function - so that it is all niceley encapsulated as one unit … Web Development javascript | |
Hi when i click on a link and there are three select box populated dynamically now i want to change the first select box value and want to add the third one select box value add.as much as i populated select box all the value of third select box is … Web Development javascript javascript-jquery | |
I want to display images based on what user checked from number of checkboxs. I'm trying this code, but it not working <!Doctype html> <html><body> <form method="post" action="" id="myForm"> <div class="opt-first"> <h1><b>Subject</b></h1> <input type="checkbox" value="Account/Finance" name="subject[]" /> Account/Finance<br /> <input type="checkbox" value="Marketing" name="subject[]" /> Marketing<br /> <input type="checkbox" value="" name="subject[]" … ![]() | |
I am trying to access the site hacksummit.org but it kept on being redirected to Freelancer's site. Any ideas as to why this happens? Web Development | |
hello, I am having issues inserting comma separated values to my database, this is what I have: $invoiceProducts = "14:12,"; // eventualy the 14:12, will multiply to other values 43:2,34:1,45:1, etc $invoiceProducts = addslashes($invoiceProducts); //stripslashes() to remove the slashes tried with and without stripslashes. $stmt = $conn->prepare("INSERT INTO invoices (invoiceActive, … Web Development php | |
this code will display all courses user has <h1>YOUR COURSES</h1> <form action="delete.php" method="POST"><ol> <?php $con=mysqli_connect("localhost","FYP","123","FYP"); $sql= mysqli_query($con, "SELECT C_Code FROM F_COURSES WHERE F_ID=".$_SESSION['userid']); while($row = mysqli_fetch_array($sql)){ echo "<li name='course'>".$row['C_Code']."<input type='submit' value='Delete'>";} ?></ol></form> I need when user click on delete button that course delete from F_courses <?php session_start(); if (! empty($_SESSION['logged_in'])) … | |
model controller function viewdashboard(){ $this->load->model('AgentPerformance/agentPerformance_model'); $value = $this->agentPerformance_model->dashboard(); //echo $value; return $value; view <html> <head> <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <script> $(function () { $('#container').highcharts({ chart: { plotBackgroundColor: null, plotBorderWidth: null, plotShadow: false }, title: { //alert('ttttt'); text: 'Browser market shares at a specific website, 2014' }, tooltip: { pointFormat: '{series.name}: … Web Development javascript json | |
Guess this is javascript. Similar as in excel, (I have seen this before), lets say I have 3 fields in a form. Now when entering a numeric value in field 1, and lets say field 2 has the value of 5, then the value of field 1 times field 2 … Web Development javascript microsoft-office | |
Hello i have this codes to try to get this working. But when on ./index.html all the li are given a class of current_yes exept for the ./clients.html link. And the other way aroud if i go to Clinets/clients.html then all li exept ./index.html are given a class of current_yes. … Web Development javascript javascript-jquery | |
Hi , i hv created 2 tables : a Department table with fields Deptname , Deptid and Employee table with Empid , Empname, Salary . I have created a datagrid with fields empname , address , Salary , Deptname and edit and delete command columns . By clicking on edit … | |
Hello every body i have searched a lot to get the script that convert .swf files into .flv mp4 but i always found software's that do this not a script. Actually m making a web based application that do this but don't find anything good... Some Suggestions, help, links please... … | |
Hello,I've a gridview control and inside a cell, i've put 3 radiobuttons under a same group. I'm not able to get which radio button is selected through checked property. As checked property is giving false always, when i check it with breakpoint. How can i get a the selected value … | |
Hi I am not familiar in how to create HTML Embeded emeil. Currently I am using below code, It is work fine and send email with plain text. It is not look nice. I need to formated embeded email with logo and below information together to the email. I have … | |
how to make multilevel menu like .A .B .C .D C & D is the sub-menu of B , B is the sub-menu of A A is main-menu Web Development php ![]() | |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <platformCore:searchResult xmlns:platformCore="urn:core_2012_2.platform.webservices.technoplat.com"> <platformCore:searchRowList> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17678</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17705</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> <platformCore:searchRow xsi:type="tranSales:TransactionSearchRow" xmlns:tranSales="urn:sales_2012_2.transactions.webservices.technoplat.com"> <tranSales:basic xmlns:platformCommon="urn:common_2012_2.platform.webservices.technoplat.com"> <platformCommon:tranId> <platformCore:searchValue>17777</platformCore:searchValue> </platformCommon:tranId> </tranSales:basic> </platformCore:searchRow> </platformCore:searchRowList> </platformCore:searchResult> </searchResponse> </soapenv:Body> ![]() | |
Hey guys, I am having problem for some time, and can't figure it out by myself I have code like this html page with select options which execute javascript function ajaxKupac and send request to page ajaxKupac.php and response is put inside div with id opcije then inside that content … Web Development javascript | |
I am writing a web page for an online radio station that uses SHOUTcast 1.9.8. I am trying to retrieve the currently playing song from the server, display it on the page, and keep it updated. I am looking for the best way to do this. I can get the … Web Development | |
i am getting that error when i try to insert a record. this is my code <?php include "config.php"; include "header.php"; ?> <a href="index.php" class="btn btn-success btn-md"><span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span> Back</a> <?php if(isset($_POST['bts'])): if($_POST['nm']!=null && $_POST['ln']!=null && $_POST['gd']!=null && $_POST['tl']!=null && $_POST['ar']!=null){ $stmt = $mysqli->prepare("INSERT INTO personal(name,lname,gender,telp,address) VALUES (?,?,?,?,?)"); $stmt->bind_param('ssss', … Web Development php | |
so i am trying to output course information when the course number is selected and the button is clicked. here is the html <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Course Info</title> </head> <body> <h1>Course Information Search</h1> <form action="" method="post"> <select name="course" id="course"> <option value="420-121">420-121</option> <option value="420-122">420-122</option> <option value="420-123">420-123</option> <option … Web Development html-css javascript javascript-jquery php | |
I have found several different methods for doing this online but for some reason i just cant get any of them to work for me, it may be they way im calling them or something but it also might involve my lack of expereince with JS but regardless I have … Web Development javascript json php | |
Hi, I have been searching and trying for days now but still cant get this to work. Id like to group my result from a SQL call into a multidimensional array. The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly. As long as the … ![]() | |
angular .module('abc') .factory('dashboard', dashboard); function dashboard($http, notifier) { var service = { getAllMasterJobsNames: getAllMasterJobsNames }; return service; function getAllMasterJobsNames(request) { return $http.post('/JSONServices/JSONCampusManagementService.svc/GetAllMasterJobsNames', request).then( function (response) { if (angular.isUndefined(response.data) || (angular.isDefined(response.data.IsException) && response.data .IsException)) { notifier.error('Error fetching the Active Events : ' + JSON.stringify(response)); } return response; }, function (response) { … Web Development javascript json | |
hello, i tried with below code but its not working for me. I am send it to gmail. is there anything which i have missed out? $subject = "Happy Work Anniversary !" ; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $link = public_path() . … | |
Hello, sorry - another newbie. I found a lot of similar FQAs and Solutions, but they do not fit ... For some reasons I do not use Visual Studio and not Razor. My code example is a single .aspx page (with no code behind). I would like to get the … Web Development asp.net email session visual-studio | |
In the course of installing adquick 2.4 as instructed. I came across this error Parse error: syntax error, unexpected '''' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING) in C:\xampp\htdocs\ads\install\index.php on line 1226. I HAVE JUST BOLDED THE LINE 1226 FOR EASY REFERENCE IN THE CODE. <? function startparsing () { $content = '' … Web Development data-structure gui php | |
Would it be inserting this as a type? 'application/x_bittorrent' or is there more to it to allow torrent uploads? Web Development file-system php | |
I hvae been working on this code for hours and can't figure out how to delete information from a database. It is currently claiming that result and checkbox aren't variables... I have looked at countless websites but can't seem to get this to work. Thank you ahead of time. <head> … Web Development php | |
![]() | I have an asp table with 5 rows and a button that, when clicked by the user, adds an additional row to the table. The row contains 5 cells for the user to input information into. When the text changes in the 3rd cell, its supposed to calculate the sum … Web Development asp.net first-post |
I've went over this code a number of times but I can't see where the issue lies. I'm trying to make the age text field numeric only however it won't validate If someone can point what I'm doing wrong here it be greatly appreciated :) <!doctype html> <html> <head> <meta … Web Development ide javascript | |
I have website that enables user to select favourite websites, date of visiting the website, comments like how satisfied with the website they visited on that day. Initially there are four rows are hard coded and inserted into the mysql database. Then there is a add button enabling user to … | |
Hi, I have been searching and trying for days now but still cant get this to work. Id like to group my result from a SQL call into a multidimensional array. The columns that are extracted are Timestamp, room, device and value and gets sorted accordingly. As long as the … | |
I have been trying to google and find out how to make a .php script that will make a an automatic slideshow of images from a folder, I've only managed to get the pictures to automatically show up on the php page, but I can't figure out how to make … Web Development php | |
<?php if (isset($_POST['submited'])) { if (isset($_FILES['upload'])) { $allowed=array('image/JPEG','application/x-bittorrrent'); if (in_array($_FILES['upload']['type'],$allowed)) { if(move_uploaded_file($_FILES['upload']['tmp_name'] , "../upload/$_FILES['upload']['tmp_name']")) { echo'Your file has been successfully uploaded!'; } else { echo'Please upload a torrent file!'; } } } if ($_FILES['upload']['error']>0){echo 'An error has occured.';} if (file_exists ($_FILES['upload']['tmp_name']) && is_file( $_FILES['upload']['tmp_name'] ) ){ unlink ($_FILES['upload']['tmp_name'] ); } … Web Development peer-to-peer php | |
Hi. I want to set `read more` for my cms posts. The code i found was `<?php the_content( $more_link_text , $strip_teaser ); ?> ` but still don't know how and where to use it. Any suggestion? | |
When Im working out on MVC edit. It shows that `it must be a date`. How can I resolve This? Web Development asp.net | |
HI I want to make an image slider where show user uploaded images from his directroy his directory or folder. [Image slider like this.](http://postimg.org/image/hl3pdp3mr/) Web Development file-system image php | |
Hello All, We have created classified software for real estate market. We could say that software is now ready for additional niche markets. Markets that we are intend to market: car/bike, boats, pets etc Real Estate version: http://www.cubescripts.com/real-estate-script It is made in PHP and revision tracking is done through the … Web Development php | |
I want to insert from product (id, name, price). How can I insert it using mvc[c#], mssql manually. Web Development asp.net mssql software-architecture | |
Hi every one I need to retrieve categories and subcategories by category type this my data category_id INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, category_parent INT(11) UNSIGNED NOT NULL DEFAULT '0', category_name VARCHAR(255) NOT NULL DEFAULT '', category_type VARCHAR(30) NOT NULL DEFAULT 'news', like News++++++ category1 category2 subcategory1 Video++++++ category3 category4 category5 … Web Development php | |
I want to insert into DB 000001 and 000002 and .... but inserting 1 and 2.. any body help me to solve this problem my code is $b = mysql_query("SELECT MAX(app_number) FROM tb2_payment ")or die(mysql_error()); while($row_b = mysql_fetch_array($b)){ $app_number=$row_b['MAX(app_number)']; if($app_number=="") { $app_number2=000001; } else { $app_number2=$app_number+1; } } echo $app_number2; Web Development php | |
<?php include("connect.php"); $cat_id=$_REQUEST['cat_id']; $search_key=$_REQUEST['search_key']; if($search_key != "") { $sql=mysql_query("SELECT * FROM tbl_products WHERE title LIKE '%$search_key%' OR short_descrp LIKE '%$search_key%' OR description LIKE '%$search_key%'")or die(mysql_error()); $count=mysql_num_rows($sql); if($count > 0) { while($row_city=mysql_fetch_array($sql)) { //echo $row_city['title']."<br>"; //echo $row_city['short_descrp']; ?> <div class="section group"> <div class="city"> <div style="float:left"> <img src="images/member_posts/<?=$row_city['image1'];?>" title="<?=$row_city['title'];?>" height="100" width="160" > … Web Development php | |
I am getting all instead of am or pm any body help to get am or pm function display_ct() { var strcount var x = new Date() var x1=x.getMonth() + "/" + x.getDate() + "/" + x.getFullYear(); x1 = x1 + " - " + x.getHours( )+ ":" + x.getMinutes() … Web Development javascript | |
im sure im missing something obvious, i just cant see it any more. i had a fail on a site as i tried live, i tried to break the problem down i found the error as below with a foreach and an if condition. This is working fine on my … Web Development client-server php | |
I would like to know if possible to convert this to the codeigniter active record way using this->db->join etc. What's the best. It works fine with the code I got but would like to make it work with codeigniter db active records. http://www.codeigniter.com/userguide2/database/active_record.html public function get_category($category_id) { $language_id = $this->check_language(); … Web Development php | |
Hi. I'm working on my own CMS, i want the script to echo 3 posts in every page, and want the script to echo from the recent post and back to the oldest post. I mean like this: For example there is totaly 30 posts; First page => posts 30-29-28 … | |
Hello. I need help with my javascript code.. In the screenshot I just uploaded here, When I input a non-numerical character on the 1st box, it should make the 2nd text box output 0 instead of NaN. <form method="POST"> <!-- my html form... for clarity sake --> <p><span id="errMsg" class="errMsg"></span></p> … Web Development javascript ![]() | |
I have two tables in my database.Users table and contact table,i want to use the ID that was generated from Users table to contact table.Below is the script for Users and contact. <?php // If the values are posted, insert them into the database. if (isset($_POST['username']) && isset($_POST['password'])){ $username = … | |
Here's my product table. [id, name, price, description, unit] For example. I want to edit only the name and description. How can I do it in mvc? Web Development asp.net mssql software-architecture | |
I need to draw line chart for the data present in the database, my database looks like CREATE TABLE `details` ( `id` varchar(2) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL, `value` varchar(5) CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; INSERT INTO `details` … Web Development api google-api php | |
hello guys i have a problem and i beg for help, i'm doing a student IS i have a result table which store students results it is named capture 3 i have developed html form accept user who add marks for a particular student these are the hmtl code <?php … Web Development php |
The End.