52,566 Archived Topics
Remove Filter ![]() | |
The comparison operators: * === * <=> * eql? * equal? * == Both are performing equality check I know. Some of them overrides `==` also. But now my query is how to think,what to use in what situations? Explanation with a code would be better idea to understand. Thanks … Web Development ruby | |
Hey all, cant get this very very simple query to work but I have been going 26 hours and my thoughts are numb. Please assist? I have error reporting on and request mysql errors but I'm getting nothing. Contents of config.php $db_host = 'localhost'; //IP of database server (most likely … Web Development php | |
Hello all, I have a frameset which contains two frames called 'menu' (to place my menu) and 'content' to place my main page. when you click a link in the 'menu' frame, the url opens in the 'content' frame. In the 'content' frame I have an iframe name 'bodyText'. I … Web Development javascript | |
Hello I wish to convert the following jQuery each to fors....This way I can see it a lot clearer.... var draws = this.canvasListener.getDrawManager().getAll(); $j.each(draws, function(index, draw) { var points = draw.getPointManager().getAll(); $j.each(points, function(index, point) { }.bind(this)); } Yes, I know "each" is faster and better optimize but I dont care. … Web Development javascript javascript-jquery | |
Hi Guys, I'm starting on a new project, it's a login page, let say I have a sql column[dateReg], it is the time the user registered or change his password, then everytime he login, I want to compare his login date to the dateReg and if the next time he … Web Development php | |
I run a text based game and I am having some trouble. I have a hospital section of the game where if you loose a fight you go here for a period of time. Now you see the time is supposed to go down say if you go to the … Web Development php | |
Hi I have modified the dropbox script with the following <script type="text/javascript"> $(function(){ var dropbox = $('#dropbox'), message = $('.message', dropbox); dropbox.filedrop({ // The name of the $_FILES entry: paramname:'userfile', maxfiles: 10, maxfilesize: 50, url: '<?php echo base_url();?>ajax/post_file.php', uploadFinished:function(i,file,response){ $.data(file).addClass('done'); // response is the JSON object that post_file.php returns }, … Web Development file-system javascript php video ![]() | |
Hello guys, I'm building a website for tablets and i want o add the ability for the user to swipe down to another div. I've found some jquery plugins for this but only for left/right, and from some blogs that jquery doesn't support this ? Is that true and how … Web Development javascript javascript-jquery | |
I need to use a <hr> tag under the date based on a condition. however its within a listview template and am haiving issues either finding it or trying to dynamically add it. below is the code that loads the first article and stores its date in a temp location, … | |
Hi I have three job interviews coming up in the next week, all of them for PHP developer roles. I am an intermediate level php developer with just under two years experiance. However, I have mainly worked for web development agencies where getting the job done as fast as possible … Web Development career | |
I'm new to php and im running xampp and the apache server is running, i created an html (phptext.html) form below which inputs the user's name and sends it to a php file called phptext.php. now the problem i'm getting is the html form sends data to the php file … | |
So, I have a small site for the highschool I'm currently in, a pretty simple site connected to MySQL for a simple HelpDesk app (I used a lot of scripts that I found here to make the site work, thanks for the contributors btw!!), and some useful links for school … Web Development cms css-bootstrap php | |
I got everything working on the edit information page even the delete picture and insert a new picture. However when I delete or insert a picture, every field in the details table dissapears, if it turns out to be a field that is editable then it gets replaced with a … Web Development php | |
Hi, Is there any difference between `inject(:+) and inject(&:+)` ? If `NO` hen how these two kind of syntax with same method? And if `Yes` then why the output are same for both? irb(main):005:0> [1, 2, 3].inject(&:+) => 6 irb(main):006:0> [1, 2, 3].inject(:+) => 6 irb(main):007:0> Thanks, Web Development ruby | |
***Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/crysta21/public_html/hospital.phpon line 53*** <?php /* MCCodes FREE hospital.php Rev 1.1.0c Copyright (C) 2005-2012 Dabomstew This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the … | |
Ive created a dropdown box dynamically getting datea from a database but when I try to get (or set) the first value, it always says undefined. Ive tried something like: $j("#mydiv").val(1); var somevariable = $j("#mydiv").val(); console.log ("print it out " + somevariable); And it says print it out undefined If … Web Development javascript javascript-jquery | |
Over the last couple of days the online media seems to have gone crazy for the news that the Google Chrome web browser client has overtaken Microsoft Internet Explorer to become the most popular browser on the planet. This based entirely upon the fact that, for a single week, and … Web Development client-server microsoft seo web-browser | |
Reorder 5 divs dynamically...Right now i am able to swap between two divs using jquery....I want to reorder divs as per wish...For instance if there are 5 divs as div1,div2,div3,div4,div5 etc i must be able to reposition as any order (div4,div3,div2,div5,div1 etc or div3,div2,div5,div4,div1 etc).....I tried many javascript mentioned but … Web Development javascript javascript-jquery | |
I have an array having unique 'table_id' that will find 'parent_id' and goes under parent index. My Array: Array ( [0] => Array ( [table_id] => 7 [table_name] => Macro [parent_table] => 1 ) [1] => Array ( [table_id] => 4 [table_name] => Dise [parent_table] => 7 ) [2] => … Web Development php | |
is it possible in php java scrip and jquery that we give a condition and redirect page to another pages on depending on those condition like if($id==1) { header(location:page1.php); } else { header(location:page2.php); } the value of id comes from database. something like that using jc jquery enything please help … Web Development http-protocol php | |
<?php session_start(); include("connection.php"); $id=$_SESSION['id']; ?> <!DOCTYPE html> <html class="beautiful js " xml:lang="en" lang="en"> <head> <link href="120gb_files/index_packaged.css" media="screen" rel="stylesheet" type="text/css"> <title>mackbook_how to find</title> </head> <body> <form method="post"> <div class="box"> <div class="button"> <select id="screen_size" class="fancy" style="border:1px solid #ccc;" > <option selected="selected" value="">Screen Size</option> <?php $sql="select * from `mackbook`"; $result=mysql_query($sql); while($row=mysql_fetch_array($result)) { ?> … | |
hello, i have a basic code, and i want to fetch a data from mysql using PHP, and display in my html page; i just want to have a basic idea so i can add more details later on, like data of birth, nationality, profession etc. im planning to make … | |
Hello Im wondering if Thickbox is movable. If not, is there a alternative that I can quick change to (meaning almost no transtition) so I make a modal window movable....Must support iframes. Web Development javascript | |
hello guys, how can i display the data from php mysql with text decoration for example underline or a dotted line css/html? thanks. | |
Aside from multiple-page access, when is it a better idea to use external js files than to embed scripts in a webpage? Web Development javascript | |
My problem is that when I try to convert a unit, the result does not is displayed in the textbox this is my code <script type="text/javascript"> function convertVals() { // retrieve values and types of and for conversion var sel1_val1 = parseFloat(document.sel1.conv[sel1.conv.selectedIndex].value) var sel1_val2 = document.sel1.conv[sel1.conv.selectedIndex].value2.toLowerCase() var sel2_val1 = parseFloat(document.sel2.conv[sel2.conv.selectedIndex].value) … Web Development html-css javascript ![]() | |
i just started reading how to connect ur cart to paypal. i get the main idea but when i hit paypal buy button. data doesnt tranfer. so on paypal site it alway say to have 0 items in ur cart. <?php ... $x=1; $pp_checkout_btn = ''; $pp_checkout_btn .= ' <form … | |
Hey everyone, I was under the inpression that PHP would refresh dynamically and not necessarily the whole page. When I make forms in PHP I am noticing the entire page gets refreshed before the new content is displayed. this is the oppsite of what I am trying to acheive. If … Web Development php ![]() | |
main.aspx ----------- <body> <form> id="form1" method="post" runat="server"> <asp:TextBox ID="TKullanici" runat="server" Height="27px" style="text-align: left" BorderColor="Silver" BorderStyle="Solid" Font-Size="Medium" ForeColor="#999999" BorderWidth="1px"></asp:TextBox> <asp:TextBox ID="TSifre" runat="server" TextMode="password" Height="27px" style="text-align: left" BorderColor="Silver" BorderStyle="Solid" Font-Size="Medium" ForeColor="Gray" BorderWidth="1px"> <asp:Button ID="BGiris" runat="server" cssclass="SBGiris" Text="GiriÅŸ" onclick="BGiris_Click" xmlns:asp="#unknown" /> </form> </body> main.aspx.cs ------------ protected void BGiris_Click(object sender, EventArgs e) { string … Web Development asp asp.net c# first-post | |
![]() | I have this code to parse XML file I need to take elements "Name" and write them all to csv header (from every product in XML) with rest of the XML data, but I need values to be as data in csv For Now I can write just header, but … Web Development engineering php xml ![]() |
i have a popup hover menu showing diner menus on our business website... couple issues. one, on iphone/ipads it is not showing up by curser, as it does with IE, or firefox... i noticed on chrome, it works, but i did an X and Y offset, that IE and Firefox … Web Development ipad iphone javascript | |
hi i have some data in mysql db and i need to create a page where i have a dropdown down box with different categories. when a user select a category from a the drop down it will show data form the mysql table from that category. so how can … | |
Im passing a long string to a method that will return the first 20 words, however when i return the value the old value is still in the string. any ideas? My code is as follows: string textContent = txtDiaryText.Text.ToString().Trim(); int NumberOfWords = 20; getLimitedWords(textContent, NumberOfWords); { //do stuff with … Web Development asp.net | |
<html> <head> <title>Grade Calculation</title> <script type="text/javascript"> function Add() { var a=parseInt(document.getElementById("fptxt").value); var b=parseInt(document.getElementById("sptxt").value); var c=parseInt(document.getElementById("fgtxt").value); var d=a+b+c; document.getElementById("sgtxt").value=d/3; } //grade equivalent if(sgtxt >= 95&& sgtxt < 100) { document.write("etxt").value=excellent; } else if(sgtxt >= 90&& sgtxt < 95) { document.write("etxt").value=VeryGood; } else if(sgtxt >= 85&& sgtxt < 89) { document.write("etxt").value=Good; } … Web Development display javascript | |
I have a FormView that has a datasource bind as a object which is a WCF service. In the WCF Service i have a Object PublicationDetail which has a attribute List<string> authors; I want to join the contents of the list and print them out in the form view however … | |
I am attaching the saved html of a usage report. Basically, it gives you daily usage by date. I needed a better data like the accumulated usage for the month to date of subscription, AND the percentage of quota use ..etc.. I wrote jquery to do that. My first attempt … Web Development javascript javascript-jquery perl | |
i dont even know how to title this subject. curious how i would go about inserting data from an array file i have name array.php into my cgi. i have a set of links at the bottom, and i change one of the anchors depending on the season #summer, #fall … Web Development php | |
Hi. I have a select box with the id=1. I need a solution for: when changing the select box with the id=1 to appear another select box with the id=2 and when changing the select box with the id=2 to appear another with the id=3, and so on. I have … Web Development javascript javascript-jquery | |
Hi I have a problem with retrieving first populated, than selected by user quantity from the select dropdown menu. I have several the same numeric type of menus. They contain values 0-20. Event onchange causes the selected number to be displayed in an html div. It works fine. However, if … Web Development javascript | |
Hello, I was following series of tutorials http://net.tutsplus.com/tutorials/javascript-ajax/build-a-contacts-manager-using-backbone-js-part-5/ 5 part is not finished yet. BUt I 4 parts are done. In 5th part there is written about .net, but I want to use php. The problem is - application worked fine when I was not using php - only html … Web Development javascript php php-codeigniter | |
Hi, I'm coding a game, i have a form to create player. I use html5 storage to create this. But the problem is if you go to tools>local storage, the password is visible. I want to implement some sort of security to hide this password in javascript. Can someone tell … Web Development algorithm html-css javascript storage | |
Hello, I have just completed a rather large project which involved data that was less than optimal html wise. Our biggest problem currently is that we have a structure like this: <ul id="postblockinfo"> <li>List One</li> <li>List Two</li> <li>List Three</li> <li>List Four</li> <li>List Five</li> </ul> Text that is suppose to be … Web Development data-structure php | |
Hi, I am planning to create location tracing based on IP and presenting the relevant contents to the user as par his country, similar to msdn website. I have installed the php_geoip.dll and change the ini file too, to include this dll The dll shows enabled in IIS as well, … Web Development php ![]() | |
irb(main):001:0> time=Time.new => 2013-01-12 11:22:54 +0530 irb(main):002:0> puts time.to_s 2013-01-12 11:22:54 +0530 => nil irb(main):003:0> puts time.ctime Sat Jan 12 11:22:54 2013 => nil irb(main):004:0> puts time.local_time NoMethodError: undefined method `local_time' for 2013-01-12 11:22:54 +0530:Time from (irb):4 from C:/Ruby193/bin/irb:12:in `<main>' irb(main):005:0> puts time.localtime 2013-01-12 11:22:54 +0530 => nil irb(main):006:0> puts … Web Development ruby | |
I am having the form.php file- <html> <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> <script src="form.js"></script> </head> <? mysql_connect('localhost','root',''); mysql_select_db('test'); $query="SELECT * FROM user"; $result=mysql_query($query); ?> <div id="contact_form"> <form name="contact" action=""> <fieldset> <label for="txn_unit" id="txn_unit">Txn Unit</label> <SELECT name="name" id="name"> <OPTION value="">SELECT</OPTION> <? while($row=mysql_fetch_assoc($result)) { ?> <OPTION value="<? echo $row['id']; ?>"><? echo $row['first_name']; ?></OPTION> <? … Web Development php | |
Hi sirs I have a problem with Menus and Sub menus.Main menu create horizontally but sub menu alo displayed in Horizontally.I want to Display the horizontal Main menus and vertical sub menus. I am using ASP.net Thanks in Advance..... | |
How to Convert number from digits to words into two languages **English language** and **Marathi language** Is it possible using php? Can anybody help me? Web Development php | |
I have a file login.php <?php session_start(); include_once "../lib/opendb.php"; include_once "products_make.php"; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ $email= $_GET['email']; $pswd= $_GET['pswd']; if ($email=="admin") { $arr['id']=0; $arr['judge_name']="Administrator"; $_SESSION['gVars']=$arr; if ( $pswd == "2755") { $arr['status']="admin"; } else { … Web Development php | |
I am using jquery.filedrop.js to create a HTML5 drop box for users. Currently I have it working about 2/3s the way I want it to. The company does yearly conferences, and I have a file path 'file/path/to/conferencefiles' where I save media (docs, images, vids, etc) based on the YEAR of … Web Development javascript javascript-jquery php | |
hello, i found an interesting source that would help me extract 2007 excel file and save it to SQL server 2005 using ASP.Net but i have encountered an error and i don't know how to solve it. i used the vb file. And i got the error at this part … Web Development asp.net |
The End.