52,566 Archived Topics
Remove Filter ![]() | |
Hello: I am trying to validate an ASP.NET radiobuttonlist using client-side javascript in a "Custom Validator" control. Here is my javascript validator: [CODE] function ValidatePrem(source, args) { var Array1 = document.getElementsByName('<%= rblPremModes.ClientID %>') var i; for (i = 0; i < 4; i++) { if (Array1[i].checked) { if (Array1[i].value == … Web Development asp.net javascript | |
Hello, I am trying to fix this problem with my site. If any can please help me and let me know how I may fix the problem or find what is causing the problem. Thanks Warning: session_register() [function.session-register]: Warning: session_start() [function.session-start]: Cannot find save handler 'memcache' - session startup failed … | |
I am calling this javascript function: var facing = "First"; [CODE] function switchit(list){ if (list != facing){ document.getElementById(facing).style.display="none"; }; var listElementStyle=document.getElementById(list).style; if (listElementStyle.display=="none"){ listElementStyle.display="block"; } else { listElementStyle.display="none"; } facing = list; } </script> [/CODE] inside a nested div so that when a hyperlink is clicked it will show one … Web Development javascript pay-per-click | |
The full error message is: missing ) after argument list [Break On This Error] change_content('imagediv', '<img src='images/painting_2.jpg'>'); Maybe I've been staring at this for too long, but I believe the parentheses are in the correct position. This code is contained in an include. Thank you. [code]<?php $paintingBack=$paintingNumber-1; $paintingNext=$paintingNumber+1; if ($paintingBack … Web Development javascript php | |
Hello everyone, I'm trying to create a PHP cURL script that does two main things. 1) Login to website (works) 2) Export table as CSV (doesn't work) To export the table as a CSV, two things need to be selected. Which table I want to export, in this case customers, … | |
Hi friends, In my php form I just blocked the sql injection by adding below into my processing page [ICODE]$comment=mysql_real_escape_string($_POST['comment']);[/ICODE] But I need to add "Richtext format in My Form ( Ie BOLD, ITALICS and UNDERLINE ). Now I just want to enable only these in my processing page ( … Web Development php | |
I'm getting an error: mysql_fetch_array(): supplied argument is not a valid MySQL result resource [CODE] function next_record() { $this->myrow = mysql_fetch_array($this->result); return $this->myrow; } [/CODE] Please help! | |
Hello: I am trying to validate an ASP.NET radiobuttonlist using client-side javascript in a "Custom Validator" control. Here is my javascript validator: [CODE] function ValidatePrem(source, args) { var Array1 = document.getElementsByName('<%= rblPremModes.ClientID %>') var i; for (i = 0; i < 4; i++) { if (Array1[i].checked) { if (Array1[i].value == … Web Development client-server javascript | |
Hi Can Anyone help me in creating custom controls to add or remove textboxes dynamically. Any help is appreciated Thanks Manju Web Development asp.net | |
I'm creating this web application using asp.net in conjunction with vb.net. will i have difficulties in finding a host company around given people prefer the more open source frameworks like mysql instead of sql server and Apache instead of iis. what other constraints could i face in publishing this app, … Web Development apache asp asp.net open-source publishing | |
I have a scenario where I show a drop-down-with-few-items in a JSP page, to the user. The length of few options in the drop down is greater than that of the drop down's, hence our requirement is to show the hovered (not selected) option as tooltip for user's convenience. I … Web Development javascript web-browser | |
Hi, I need to develop an interface where scanned barcode information is inserted in MySQL database with using PHP. Is this possible? If so, how it actualy works? It will be done with Wired and Wireless scanners. Does it differ? Regards | |
Hello guys, Hopefully a nice easy one for you. I currently have a form field that I would like to turn green when the correct entry has been entered and red when an incorrect entry has been returned. I'm very close to a solution (I think!) But I just need … Web Development html-css javascript | |
I guys, I want to upload files to a MySQL database in PHP.... The connection is OK... but there is a problem with the document column.. If anyone can help me , please give me a working solution.. ![]() | |
hi guys, i am a newbie to javascript. i was working with a form which has two combo box linked to display text. First box contains names of cars, second box contains luxury type options(ac or nonac), the last one is a input box which is only readable and displays … Web Development javascript | |
Hallo, I have made a login system using sessions. It have been working fine for 3 months. The last week some problems are occuring. First let me write the code i use. There is a mysql database which contains all the data necessary. There is also a form which the … | |
The mysql database I set up used date format for the field. Consequently dates have to be entered as 0000-00-00. So when I retrieve the field name news_date from the database it will print as 2011-02-02. I would like to display it as February 2, 2011. Can someone help me … | |
well I have a search feature on my site and it works great if the query returns results but if it doesn't it falls apart what do I do to make it say "no search results found" when the query comes up as empty My code is this to handle … Web Development php | |
[url]http://s56.photobucket.com/albums/g194/flameingulfedpyro/?action=view¤t=slideshow.jpg[/url] In the picture I have a picture div and a text div. The picture and text are related to one another. I want it that when you click the right or left arrow the pic and text change together. I dont really care how they change, slide, fade, or … Web Development javascript javascript-jquery php | |
Hey guys just a quick question, my AJAX is working in FF and Opera just fine, As in it repeats the function whenever the button is clicked, but in IE the first click works, but then it doesn't repeat... I've been searching around form some fixes, and found quite a … Web Development javascript php | |
ok so i know how to do this within theory but not how to code this one. i have within my page a {blah:6}. i know that if i want to call a static string i would do this [CODE] $replaced_content = str_replace("{blah}", $page_name, $page_content); [/CODE] but the problem is … Web Development php | |
Xampp is telling me that apache and php are up and running properly, but viewing html pages with <?php ?> tags in the apache doc root folder is not doing anything with the php code, i can see the php code when viewing source via firefox. I've experimented with every … | |
[CODE]package Grade; import java.util.Scanner; public class grade { public static void main(String[] args){ System.out.println("Welcome to the Letter Grade Converter"); System.out.println(); Scanner sc = new Scanner(System.in); String choice = "y"; while (choice.equalsIgnoreCase("y")){ System.out.println("Enter numerical grade: "); int grade = sc.nextInt(); char letter = 0; if(grade <= 100 || grade >= 88) … Web Development javascript | |
Hi there, please help. I have a page that creates a simple combobox with items from the first field in my mysql db. [CODE] <html> <head><title>Customer</title></head> <body> <div class="dbconnect.php"> <?php include("includes/dbconnect.php");?> </div> <?php $result = mysql_query("SELECT * FROM customers ORDER BY company"); echo"<form action='customer.php' method='POST'> <select name='company'>\n"; while ($row = … Web Development php ![]() | |
Hi I have a dynamic website which is already online and it works great, but,I recently decided to add an event calendar and I have ran into some problems. The website only uses 1 page and i then use URL variables to display content or include additional files. So i … Web Development php ![]() | |
Hi, I have just started to learn php.I wrote a php code to list/add/edit/delete values of a mysql table which is already created and filled.I can print existing values in the table.However,when I want to delete one of them,the code doesn't work.I get errors for switch case.If you can give … Web Development html-css php web-browser xml | |
right now my php script is vulnerable to anyone putting in a random member_id into the url and having it excute sucessfully how can I encrypt the id="id#" in the url, so a guest is unable to type in there own id in the posted id retrieved through the url? … | |
I have this pdf search engine script [url]http://pdfsearchmachine.com[/url] and when you type "g" it give some suggestions ,my problem is that why I am getting some ? marks in search suggestions beloa is the code [CODE] <? $search = $_GET["search"]; $replace = " "; $with = "+"; $search = str_replace($replace, … ![]() | |
Hello everyone! I'm wondering if there is a way to assign the values of a column in SQL as the key name in a multidimensional array. Here is what I have, my database looks like this: Table Name = SJCFPCB date | totalin | cdulep | icu | ----------------------------------- 2011-01-27 … | |
Hi, I made a basic PHP upload system in order to allow file uploads to my server. The only problem I run into is that I want to be able to upload .php files (and other possible files that are executed by the webserver before being sent to the client), … Web Development client-server php | |
Currently trying to update a balance column in my table using this query [CODE] UPDATE vendors SET balance = (SELECT SUM(balance) FROM vendors WHERE Code = $ud_payee) + $ud_minDue WHERE Code = $ud_payee [/CODE] When variables are translated, for testing purpose I would have the following: [CODE=mysql] UPDATE vendors SET … Web Development php | |
Hi everybody, I have a js(using jQuery lib) file where all events and following actions(functions) are written. For one of such events there is a function that prepends one more similar element from which prepending was called: $("[COLOR="Red"][B]#id1[/B][/COLOR]").click(function(){ $(...).before("<div [B][COLOR="Red"]id='id1'[/COLOR][/B]></div>"); }); so that when I will click to just prepended … Web Development javascript javascript-jquery | |
Hello friends,I have some problem regarding dropdown list.I have 3(Pair of two dropdown list,1st showing categories & 2nd showing subcategories of selected categories)dropdown list having same functionality.When i select a category from 1st dropdownlist,then it showing all the related subcategories of selected category. the problem is when i am selecting … Web Development php | |
[CODE]<?php // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the … | |
Hi, I was wondering if it is possible to fetch all items in a form in one go in PHP rather than using $_POST[] or $_GET[] for each individual element in the form. I often deal with forms having more than 30-35 elements and it get really tedious (not to … Web Development php | |
Hi, I'm trying to select from 3 tables but I can't seem to get it right. Here is the code: [CODE]$query_Recordset1 = sprintf("SELECT * , image.user_id, image.name, page.user_id, page.urlcode FROM users JOIN mystuff.page JOIN mystuff.image ON page.user_id = image.user_id = users.user_id WHERE users.last_name = %s AND users.first_name = %s", GetSQLValueString($colname_Recordset1, … Web Development php | |
I m developing module in my eclipse IDE, I have designed a web page using JSP and Hibernate concepts where in i have to enter required details and after clicking on submit button they are directly entered into database. this part is done successfully but the only problem is when … | |
does it's possible to retrieve data from a javascript ?? coz js is a client side script and php is a server side how can i get value of my js??[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script type="text/javascript"> … Web Development client-server javascript php | |
I getting an error that one when click on the Export Button in the show shows the data of GridView Along with PageIndexing NUmbers also [CODE] protected void btnexcel_Click(object sender, EventArgs e) { Response.Clear(); Response.AddHeader("content-disposition", "attachment;filename=Emp.xls"); Response.ContentType = "application/vnd.ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTextWriter(sw); GridView1.RenderControl(htw); … Web Development asp.net | |
i am a starter and this has been giving me some head ache.. i have been working on something....and not really getting good results its like an admin page where the contents of a form submitted on the site can be reviewed before the contents are actually posted on the … Web Development php ![]() | |
Hello i have created a webpage for a project using jsp in netbeans. I have created a listbox. I want it to display data from database(MS-access) and I should then be able to modify data in database like I should be able to change an entire record through the listbox … Web Development java-jsp | |
Hi, stuck and haven't been able to find a solution. Problem is pretty simple, I'm importing XML content using Javascript in an HTML page. I managed to display the XML elements and positioned it correctly using a table. Now I wanted to style the fonts of each element extracted specifically. … Web Development javascript xml | |
Hi All, I have a problem and I dont understand what's happening, because my method usually works. I am querying a bunch of records from a database given a foreign key id. See code as follows [CODE] $castQuery = "SELECT * FROM cast WHERE production_id = '$newID' "; $cresult = … | |
Hi guys, I need to pass a variable from a php page to another php page. There are two methods GET POST both involve user action like submitting by clicking a button or clicking a link How to send a variable without such user actions? Web Development php | |
Hello Hope you guys can help me. I have created a system that stores information using php and my dbase is MS Access.Currently im on the debugging phase since i finished all major development a while ago.Now im stuck because i need an incrementing 4 digit number.Can anyone assist me … Web Development php | |
I should probably begin by stating that I am not a mathematician, not even close. When asked to produce a JavaScript program using the Sieve of Eratosthenes, I started googling. There are a lot of examples out there but very few are for JavaScript, and even fewer include comments. Could … Web Development javascript | |
I'm busy working with servlets now and when I try and compile them, I get erorrs stating that it can't find javax.servlet etc. Getting errors where I do the import statements to them. So apparently I have to add that servlet.jar file to the CLASSPATH? And that file can be … | |
Hello, I currently have hashed passwords in my database. I want to set them for clear. I do not care about any kind of security. I just want plain, simple passwords. I don't even care if I have to delete all my users and start over fresh. I desperately have … Web Development asp.net | |
Friends, I am trying to display data with limits from my MYSQL Records. It Shows the data, but it does not work with Next or Previous Page. Here is the code: [code] <?php // Connects to your Database mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("shipments") or die(mysql_error()); //This checks to see … Web Development php | |
Hi everyone, i'm newbie here just want to catch some knowledge here, i just wondering to know how to make link like mediafire download link, such as [QUOTE][url]http://www.mediafire.com/?eml6e0uxl3e[/url][/QUOTE] is that using .htaccess editing? thanks Web Development php |
The End.