52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vijayram

How to change the following code for javascript to php code plz help me. <form> <select onChange="updatecalendar(this.options)"> <script type="text/javascript"> var themonths=['January','February','March','April','May','June', 'July','August','September','October','November','December'] var todaydate=new Date() var curmonth=todaydate.getMonth()+1 //get current month (1-12) var curyear=todaydate.getFullYear() //get current year function updatecalendar(theselection){ var themonth=parseInt(theselection[theselection.selectedIndex].value)+1 var calendarstr=buildCal(themonth, curyear, "main", "month", "daysofweek", "days", 0) if (document.getElementById) …

Web Development javascript php
Member Avatar for diafol
0
3K
Member Avatar for rouse

I am having problems accessing what for me is a complex JSON object. I successfully interrogated the Open Weather API and received a good response. What I am not accessing, and don’t know how to, is the individual items of the weather portion of the list group while in a …

Web Development api javascript json
Member Avatar for rouse
0
256
Member Avatar for andi.andiiimintoyouu

html <div class="example2"> <p>This is some text This is some textThis is some textThis is some textThis is some text This is some textThis is some textThis is some textThis is some textThis is some text</p> </div> Css .button{ -moz-border-radius:3px;-webkit-border-radius:3px;border-radius:3px; -moz-box-shadow:0 1px 1px rgba(0, 0, 0, 0.2);-webkit-box-shadow:0 1px 1px rgba(0, …

Web Development gui html-css javascript
Member Avatar for code_rum
0
263
Member Avatar for McLaren

Hello, there is a function which saves and sends post request: save_car: function(e) { if (e.keyCode != 13) return; if (!this.brand.val()) return; Cars.create({brand: this.brand.val(), color: this.color.val(), max_speed: this.max_speed.val() }); this.brand.val(''); this.color.val(''); this.max_speed.val(''); }, Request URL:http://localhost/backbone/car_list/backend/index.php/welcome/index Request Method:POST Status Code:200 OK Request Headersview source Accept:application/json, text/javascript, */*; q=0.01 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en,lt;q=0.8,en-US;q=0.6,ru;q=0.4,pl;q=0.2 …

Web Development first-post javascript json php
Member Avatar for McLaren
0
256
Member Avatar for PF2G

Hi, I'm creating a mentionInput, a textarea where i can identify people writing "@NAME" (like facebook) I have a this js file where i tell the info of the names i can identify: $(function () { $('textarea.mention').mentionsInput({ onDataRequest:function (mode, query, callback) { var data = [ { id:1, name:'Kenneth Auchenberg', …

Member Avatar for LastMitch
0
386
Member Avatar for showman13

Good Morning, I'v been combing through the net including many links on this site, trying to get the necessary information to make a video play on my webpage. No Luck I've tried multiple pieces of code to embed the video, but in each case I am faced with either a …

Web Development php video
Member Avatar for showman13
0
252
Member Avatar for mith_cool

Hi, I have a scenario where in I had to sort an array, find duplicates and increment one or the other by 1. So, Eg: An array has 22, 23, 21, 21, 24 within it then, an array should be able to find 21 and increment it by 1 i.e. …

Web Development javascript vbscript
Member Avatar for Troy III
0
955
Member Avatar for maxpaine69

Hi all, So i was doing globalization with resources, what happened, i tried basica country identification: pt - portugal; pl - poland; es - spain; and so on so on, what happen didnt work and a very big crash, after I put portugal file as language.pt-PT.esrx, and that one worked, …

Web Development asp asp.net
Member Avatar for maxpaine69
0
223
Member Avatar for arunpawar

Hi, I am trying to create a simple form submission using php and mysql. I am stuck at very basic level of mysql and php code. Here is what i am trying to do. 1. index page where name and email data is shown. 2. add-data.php page where i am …

Web Development mysql php
Member Avatar for arunpawar
0
218
Member Avatar for riteshsingh_22

I'm new to session management so can anyone tell me ,How to store multiple values selected from gridview into session. and retrieving that values stored in session in another page.. any suggestions r appreciated..pls help..

Web Development asp.net session
Member Avatar for annaharris
0
342
Member Avatar for NyQii

Hey Guys! ive been stuggling with this for a while I Have a Datagrid and a few comboboxes the one combobox should populate the Grid when an Item is selected I debugged my code , and it seemd that all the correct data is being pulled through but i keep …

Web Development asp.net
Member Avatar for annaharris
0
163
Member Avatar for riahc3

Hello I have this similar code: var SomeVar = Class.create({ one: null, two: null, three: null, initialize: function(one, two) { this.one = one; this.two = two; }, startListeners: function() { $j('#somediv1').mousedown(function(e) { this.three=3; three="hi" }.bind(this)); $j('#somediv2').mousedown(function(e) { console.log(this.three); console.log(three); }.bind(this)); }, }); As you see there are more can one …

Web Development javascript
Member Avatar for riahc3
0
288
Member Avatar for shilu2

If I have dropdownlist as below <select onChange="this.value;"> <option value="Volvo" id="volvo">Volvo</option> <option value="Saab" id="saab">Saab</option> <option value="VW" id="vw">VW</option> <option id="audi" value="Audi" selected>Audi</option> </select> I want to display discription of item selectd so I have below code <div id="boxpopup" class="box"> <a onClick="closeOffersDialog('boxpopup');" class="boxclose"></a> <div id="content"> This is popupbox of Audi </div><!--end of …

Web Development php
Member Avatar for broj1
0
208
Member Avatar for mjsmitten

If I have a array: $myarray = array("10"=>"apple", "20"=>"banana", etc..) up to 15 values. and I use $_GET['category'] to get my value from url for instance "10" How do I echo $myarray to be "apple"?

Web Development apple php
Member Avatar for paulkd
0
175
Member Avatar for BenWard

Hello, Whilst writing this I actually fixed the issue but I thought I'd post anyway as this technique might be useful to others... I have a javascript class I wrote (alas I can't post the whole code as the IP technically belongs to the company I work for) which presents …

Web Development javascript web-browser
Member Avatar for BenWard
0
401
Member Avatar for amkaos

Hi: i have contact form that i thought the validation (.js + php) worked fine because i received emails that were only submitted w/ all fields correctly filled in. i added submission to mysql database, then found out that empty fields were being submitted to database -- but not email.. …

Web Development email javascript php
Member Avatar for minitauros
0
563
Member Avatar for jencinas69

Is it possible to display a text box next to a cfselect upon selection in the cfselect. If someone selects an option from the dropdown I need a date type field to be display. Is this possible perhaps with coldfuision and ajax?

Web Development coldfusion
Member Avatar for paulkd
0
217
Member Avatar for mjsmitten

My url's are similar like this: website/search/category,Room/region,Oregon/ website/search/category,Room/ website/search/category,Room/city,Palm Bay/ website/search/city,Palm Bay/ website/search/region,Florida/ It always contains single or combination of CATEGORY CITY REGION I want to echo in an if statement, for example: if url contains "category,xxx" then echo "category is xxx". (xxx can be anything) I found this code: …

Web Development php
Member Avatar for diafol
0
394
Member Avatar for Bibek_NS

Can anyone pls help me with how to create a Progress Bar by using JavaScript methods like setInterval() ?

Web Development javascript
Member Avatar for radhakrishna.p
0
400
Member Avatar for Black_Lion

protected void Button1_Click(object sender, EventArgs e) { ClearTextBoxes(this); } public void ClearTextBoxes(Control control) { foreach (Control c in control.Controls) { if (c is TextBox) { ((TextBox)c).Text = " "; } } Hi all. I am writing a program using Microsoft Visual Web Developer. I have 3 textboxes (TextBox1, TextBox2 and …

Web Development asp.net
Member Avatar for annaharris
0
190
Member Avatar for coder91

I have a page that allows you to insert a new item or update an existing item. I am using a formview for it, I have custom validation in place for the insert to check that the item number isn't already stored in the database, if it is a panel …

Web Development asp.net
Member Avatar for annaharris
0
244
Member Avatar for coder91

I have a gridview that stores information about items - a number and a name, I have a custom validator set agains t to check the number doesn't already exist in the database to prevent duplication. protected void CustomValTBCodeServerValidate(object source, ServerValidateEventArgs args) { TextBox newCode = (TextBox)fvCode.FindControl("TbCode"); String XCode = …

Web Development asp.net
Member Avatar for annaharris
0
139
Member Avatar for kelvnese

:) hi everybody, im newer in asp.net. today, im trying to bind my data to the Nivo Slider by the Data List. The code is like this: [CODE]<div class="slideshow"> <div id="slider" class="nivoSlider"> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" SelectCommand="SELECT * FROM [SLIDEIMAGE]"></asp:SqlDataSource> <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource1"> <ItemStyle /> <ItemTemplate> <img …

Web Development asp.net javascript-jquery
Member Avatar for shanky007
0
231
Member Avatar for php.coder

how can i get a token that a user has requested if he/she clicks cancel NOTE the user doesnt have to input anything if cancel is clicked that particular token is deleted from the d.b and the user is redirected to index.php i really dont know where and how to …

Web Development php
Member Avatar for LastMitch
0
135
Member Avatar for BenWard

Hello you wonderful people you. I am getting most upset with a pathetically unimportant bit of code. I have an iFrame. This iFrame loads a php script, the php script is not however html, it is a pdf document generated on the fly with FPDF. I have a second iFrame, …

Web Development javascript pdf
Member Avatar for LastMitch
0
207
Member Avatar for php.coder

My forgot password is not updating the token table nor is it updating the password when changes it keeps echoing the error message below is the form code: Forgot Password</strong></h3> <form name="forgot" method="POST" id="forgot" action="includes/reset.php"> <div align="center"> <table width="372" border="0"> <tr> <td width="181"><p> </p> <p><strong>Password</strong></p></td> <td width="181"><span id="sprytextfield1"><br /> <label for="label"></label> …

Web Development php
Member Avatar for php.coder
0
336
Member Avatar for techyworld

Hi anyone can help, am having this error on line 10: uncaught TypeError: Cannot read property '0' of null. I have use the same code other places, same array but never got this error. I dont know why am having this error here. this.addEventListener("message",function(e){ importScripts('test.js'); var object=e.data; object=JSON.parse(object); mArray=object.array; var …

Web Development javascript json
Member Avatar for techyworld
0
164
Member Avatar for amkaos

Hi: i have site contact form that validates required fields w/ .js And php. if browser has javascript turned on, the req'd info error message will show next to the field boxes .. if javascript is turned off, then user will see the same thing but coming from php instead... …

Web Development email javascript
Member Avatar for paulkd
0
248
Member Avatar for turpentyne

I have a carousel that works fine on it's own, but something's killing it when I load its page into my main page. Not sure what would cause it? i'm using "Caroufredsel". Here's the main page, with script to load page based on which navigation selected. If the user selects …

Member Avatar for turpentyne
0
218
Member Avatar for michael123

I have a question about php mail() function. This function allows multiple recipients that separated by comma, for example: $mailto="a@test.com,b@test.com,c@test.com"; mail($mailto,$subject,$message,$headers); If all recipients address are correct, no problem, mail can be sent properly. However if one address is no longer valid (for instance he leave company), this mail function …

Web Development php
Member Avatar for minitauros
0
211
Member Avatar for bradly.spicer

hey guys, I've been working on that moodle database link and I have it somewhat working! I have it logging in and echoing the username. This is the login section: $query = "SELECT * FROM moodle_user WHERE username = '{$_POST['username']}' AND password = '$password'"; $result = mysqli_query($con,$query) or die(mysqli_error($con)); //setup …

Web Development php
Member Avatar for bradly.spicer
0
130
Member Avatar for davidjennings

Hi All I am trying to format the sql ouput reg_date into a date format current details echoed out 2013 - 03 - 08 12:12:11 I just require the date only echo stripslashes($row['reg_date']) $result = $mysqli->query($query) or die ($mysqli->error.__LINE__); if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo stripslashes($row['reg_date']) . …

Web Development php
Member Avatar for davidjennings
0
215
Member Avatar for asif49

For a script that needs to be run on multiple pages with different coding etiquettes, I need to be able to figure out when there is some dynamic change occuring in the DOM. MutationObservers cater for Chrome and Firefox but I'm having problems with IE so onpropertychange event is something …

Web Development javascript
Member Avatar for LastMitch
0
576
Member Avatar for riahc3

Hello This is one of those stupid questions but you gotta ask to be sure What is var h=0; h += 5; var l=0; l -= 5; Is it the same as: var h=0; h = h+ 5; var l=0; l = l- 5; Thanks and sorry for the stupidity

Web Development javascript
Member Avatar for deceptikon
0
237
Member Avatar for wplay

Hi all, I have been getting ImagickException with imagick on my server but cannot reproduce it on my computer(localhost). This is when I try to call thumbnailImage(with, height, true) for a JPG exception 'ImagickException' with message 'Memory allocation failed `/tmp/funYYmdPl[0]' @ cache.c/AcquireCacheNexusPixels/416' This is when I call writeImages(path, true) for …

Web Development cpanel php
Member Avatar for LastMitch
0
1K
Member Avatar for peterson10012

Hai everyone. I am new to this discussion. Can anyone tell me about xml site map creation.

Web Development seo xml
Member Avatar for sophina8888
0
150
Member Avatar for Fiorentino01^

Hi, I am working on an hotel booking system for a small hotel.I finally found a nice tutorial on HTML.it.It is in Italian but that's not a problem for me as Italian is my mother tongue.The site consists of the usual tables like clients, reservations, etc.I ran all the scripts …

Web Development php user-interface
Member Avatar for diafol
0
574
Member Avatar for jLamp

when include file to dreamweaver i cant edit anything in design view. <?php require('header.php');?> What should i do?

Web Development php
Member Avatar for minitauros
0
114
Member Avatar for riahc3

I currently have $tableName="thenameofthetable"; $someid=$_GET["someidthruget"]; $result = mysql_query("SELECT name,age FROM ". $tableName. " WHERE idp=". $someid); Which looks really insecure. How can I do it using a stored procedure which I think will make it a lot more secure? Thanks

Web Development mysql php
Member Avatar for riahc3
0
643
Member Avatar for weeraa

I want to pass a combo box value from url in php. I have no idea how to do it. I just try like this. This my combo box html code. <select id="ID1" name="place" > <option value="Colombo" selected="selected">Colombo</option> <option value="Matara">Matara</option> <option value="Galle">Galle</option> </select> //What i want is pass selected value …

Web Development php
Member Avatar for minitauros
0
2K
Member Avatar for xianamersu

Why does this code snippet keep getting Undefined offset: 2, Undefined offset: 7, Undefined offset: 11, respectively? I'm not sure where I'm going wrong, for($i = 0; $i < $user_length; $i++) // CHECKS IF THE USERNAME, FIRST NAME, IC NUMBER AND CONTACT NUMBER IS ALREADY BEEN REGISTERED AS A MEMBER …

Web Development php
Member Avatar for diafol
0
579
Member Avatar for rolanduk

Hy All I have another problem. When somebody going to my download link [Click Here](http://www.filemonster.org/download.php?id=11) a window pop up to download the file called get.php. I dont want that to appear. Because its not the file which is under the "regulr downlod button" . The get.php its the file which …

Web Development php
Member Avatar for cigoL..:)
0
409
Member Avatar for shilu2

I want to show popup on item selected in dropdown control. I tried popup script on this but doesn't works. my code is as below <select> <option value="1990">1990</option> <option value="1991">1991</option> <option value="1992">1992</option> <option value="1993">1993</option> <option value="1994">1994</option> </select> now if I have select option i.e 1992 popup window should display the …

Web Development javascript
Member Avatar for shilu2
0
170
Member Avatar for BuckOneArm

Hi, I was wondering if there is a possibiity that you can put a PHP form into a Jquery Accordion. SO when you slide it open and close a new form appears? If there is can sombody point me in the direction of a tutorial or article explaining this.

Web Development php
Member Avatar for wiselisle
0
98
Member Avatar for Djmann1013

I am having trouble animating a div on the same page as the div that is not animating. Here is my code: Page 2 <?php mysql_connect('127.0.0.1', 'root', ''); mysql_select_db('table'); $query = mysql_query("SELECT * FROM `blog`"); ?> <script> $('.post').click(function() { var value = $(this).attr('rel'); $('.load_post').html('Loading...').load('load_post.php?value='+value); $('.load_post').animate({"left": "-=1500px"}, "slow"); $(".posts").animate({"left": "-=1500px"}, "slow"); …

Web Development javascript
Member Avatar for LastMitch
0
98
Member Avatar for FutureWebDev

Not sure if I can do this but I'm reading through JavaScript: The Definitive Guide, and I'm going to be posting practice scripts that work. They may not make sense, but they work. I'd also like responses on how these simple snippets could be used and how they can be …

Web Development javascript
Member Avatar for LastMitch
0
233
Member Avatar for mohammed.ismail

What does the PHP error ‘Parse error in PHP – unexpected T_variable at line x’ means?

Web Development php
Member Avatar for cigoL..:)
0
243
Member Avatar for mark2326l

I have a MySQL DB with 2 Tables in particular, "Properties" and "Tenants". Each Table has a unique address Field "propAddress" & "TenAddress". I have a PHP page with a repeating reigon that lists all properties in the DB. What I'm trying to do is list all the tenants info …

Web Development html-css php
Member Avatar for cigoL..:)
0
231
Member Avatar for aithabuddy

Hi I have an array of format Array ( [1] => Array ( [1] => Array ( [27] => C1 [28] => Y1 ) [2] => Array ( [31] => C2 [32] => Y2 ) [3] => Array ( [34] => C3 [35] => Y3 ) ) [2] => Array …

Web Development php
Member Avatar for diafol
0
164
Member Avatar for xianamersu

How to I check for existing username without using mysql in php? I tried something like this but it isnt working. Please help. Thanks. Strictly no SQL... $name=$nme; $name = file("datatext/users.txt"); $ic=file("datatext/users.txt"); if (this.$nme== $name) { echo "this user exits, please log in"; }

Web Development mysql php
Member Avatar for diafol
0
344

The End.