52,566 Archived Topics
Remove Filter ![]() | |
i need to validate a form using only JavaScript all the validations seem to work except that when it runs the function validateform() it doesn't return anything if all validations have been passed [CODE] <html> <head> <script language = "Javascript" type = "text/javascript"> function echeck(str) { var at = "@" … Web Development javascript video-card | |
Hi Everyone... I am trying to do some Object calls within a PHP script which is INLINE within HTML. However the "->" PHP syntax is effectively closing the <?php start tag. How do I escape this syntax within the PHP to ensure the browser doesn't perceive it as a tag … | |
I have tried to wrap my head around regex and have failed pretty miserably. Here is my problem. how would you do the following with regular expressions in php. replace [CODE]<use xlink:href='#gpPt4' transform='translate([B][U]261.7,184.3[/U][/B]) scale([B][U]4.50[/U][/B])'/>[/CODE] with [CODE]<use xlink:href='#gpPt4' transform='translate([B][U]261.7,184.3[/U][/B]) scale([B][U]4.50[/U][/B])' onclick="alert('a variable name from php')"/>[/CODE] where the bolded/underlined sections (only used … | |
Ok the problem I am having is difficult to explain. I'm working on a project for work and I am allowing people to upload a variable number of tables (up to 5 maybe 10 later). Then I am taking the uploaded tables and normalizing them (I'm fairly sure all the … Web Development php | |
Hey this is a code to print the times table of a particular number entered by a user, The thing is I want to validate the form so that it checks to see if what is entered is numeric, and ranges from 1 to 12 if not I want it … Web Development php | |
hi i'm pulling multiple rows of data from my database to display in a csv document but every row it displays is the same as the first row. appreciate the help. [CODE] <?php session_start(); include 'include.php'; connect_db(); $filename = date("Ymd")."_summary.csv"; header("Content-type: application/csv"); header("Content-Disposition: attachment; filename=$filename"); $date = date("Y/m/d"); $sql = … Web Development php | |
Hey guys, I am in need of a live real-time clock to count down to zero depending on the length of days specified in a database (Like an auction count-down timer). For example, I can retrieve the length of time specified in the database, somehow put that value into the … Web Development javascript | |
Some of the fields in a form are desired but not required. As a result of these fields being left alone, PHP will return errors similar to: "Notice: Undefined index: manager in C:\wamp\www\form.php on line 12". My current question is how do you tell PHP to disregard a field if … Web Development php | |
Hi all, I think I've got myself into an unresolvable situation. I have a form (it is used so that non-techies can create their own questionnaires) that asks for a user to enter a number that reflects the number of options they want that question to have. A button is … Web Development asp.net | |
Hi. I have this UpdatePanel with som boundfield content. In this panel, there is an edit link, which will edit the content. It works fine. Now I want to make all the boundfields clickable as a link, so they act as the edit button. In that way, I dont have … | |
I performed the following code to retrieve the path from database and show image [CODE]protected void Button2_Click(object sender, EventArgs e) { string t = TextBox2.Text.Trim(); SqlConnection con = new SqlConnection("Data Source=.\\SQLEXPRESS;AttachDbFilename=D:\\Anshul\\College site\\App_Data\\afset.mdf;Integrated Security=True;User Instance=True"); SqlCommand cmd = new SqlCommand("Select dmc from Semr Where Rollno='" + t + "'", con); con.Open(); … Web Development asp.net image open-source | |
Hello, I am writing an ASP.NET application using javascript. It uses a modal dialog which has a button. When pressing the button another window is opened. I'd like to perform the action on submit without opening a new window. Here is some code for example: [B]code for first.aspx:[/B] [CODE] <html … Web Development asp.net html-css javascript | |
Hello to everyone.Sorry if the question has been already made, but is like i need to waste 1 day to find what i'm lookin for so if someone could tell me please how to pass data from ajax to a php page in resonable way(meaning that i don't need to … Web Development javascript php | |
Hello all. I'm sorry if this question has been answered before, but I'm a real noob trying to understand Ajax and JavaScript. Therefore I need a (simple) explanation how to pass multiple selections from a list to my Ajax-script - if there are any simple solutions. I'm not using any … Web Development javascript | |
can somebody tell me how does data reader work in following list and what will the result of............if(dr.Read()).. [CODE] public List<clsproductprp> RetFind_rec(clsproductprp prp1) { SqlDataReader dr=null; List<clsproductprp> obj = new List<clsproductprp>(); SqlCommand discmd = new SqlCommand(); try { if (con.State == ConnectionState.Closed) { con.Open(); } discmd.CommandText = "spFindFromProduct"; discmd.CommandType = … Web Development asp.net | |
I have been programming in PHP with globals enabled since around 2005. I have started to develop on a more professional scale now, and with security at stake, I need to make the change. Trouble is, I haven't been able to find a tutorial that answers my questions regarding globals … Web Development php | |
Hi friends, I am facing this problem while adding a panel to another panel. Please give me the solution. I have put my code below. [CODE] Dim pan As Panel = DirectCast(UserControlTest1.FindControl("Pan_ItemBind"), Panel) pan.Controls.Add(Panel1)[/CODE] Thanks in advence... | |
I had a working ticket purchase page and I have done something to break it but cannot find what I did to do so. I have the following javascript functions: [CODE]<script type="text/javascript"> function newqty( what ) { price = document.getElementById( what + "_cost" ).innerHTML.replace( "$", "" ); var qty = … Web Development javascript | |
Hi I have this table inside a form and in this form Im also fetching data from a csv file to display product informations in a table. I want a javascript code that when a user inserts a quantity value of the product he wants to buy the total column … Web Development javascript | |
Hi Daniweb Team, I am MCA graduate 2010 passed out and i have done my final year project in PHP platform.I had a confusion in starting a carrier in Php or Java.I have known both the languages .My country is India. I do no what much of scope is available … Web Development php ![]() | |
hello, i am doing email concept. in this user can set the automatic email option i mean when user registered there account then he was set receive emails at this time on this day... how to set this...any suggestions plz... | |
Hello, I'm using Windows 7 Ultimate 64bit, Visual Web Developer 2010 and Microsoft SQL 2008 Express SP1(local). SQL server is set to windows authentication, I'm on admins account but the problem is that I can't work with database. It keeps doing errors with connection etc. (I have to use VirtualBox … Web Development asp.net sql web-server | |
Hey Guys- do you have any idea how to redirect on another page after Response.End() ? I want once file download compelte it will redirect user on another page. I have tried a lot but didn't get any success. If you have any idea to achieve this then please let … Web Development asp.net | |
Hi All, On a registration form im pulling a list of countries from mysql. When i select, say england, i want to populate the provinces of england select option. Im using a standard loop to do this. What i dont want to do is force the user to click a … Web Development php | |
object reference not set to an instance of an object............. when this problem arise? Web Development asp.net | |
hi, I had a project page where we can see projectname and allocate memory text boxes. so my query is that wen we enter a project name and if already a project exists with the same name then i should get a popup. i mean it should not allow duplicate … Web Development php ![]() | |
hi all, i am having a projects page, in which we can create a project by giving projectname and allocate some memory(we had restriction on memory i;e 60MB). so i had created a project and allocated some memory of 65MB. so now i wil get a popup as "insufficient memory" … Web Development php | |
Hi, I am developing a website for a club and I am trying to get the next games to show up. I am trying to get some info out of one database and then use that info as a key for the next query, then display all the results that … Web Development php ![]() | |
I have some doubt regarding jquery and ajax. What is the difference between jquery and ajax? Do jquery accesses server resource or its just do the things at client side? while solving a problem what to choose out of these two? Web Development client-server javascript javascript-jquery | |
Ok, I am totally stuck. I've spent hours on this today, and I can't figure out what is going on. This is my .htaccess file: [CODE] RewriteEngine On RewriteRule ^articles/([0-9]+)/([a-zA-Z0-9\-]+)$ /article.php?id=$1 [L] RewriteRule ^articles/([0-9]+)/([0-9]+)/([a-zA-Z0-9\-]+)$ /article.php?id=$1&page=$2 [L] RewriteRule ^topics/([0-9]+)/([a-zA-Z0-9\-]+)$ /topic.php?id=$1 [L] RewriteRule ^topics/(.+)$ /sub-topic.php?topic=$1 [L] RewriteRule ^authors/([0-9]+)/([a-zA-Z0-9\-]+)$ /author.php?id=$1 [L] RewriteRule ^preview/([0-9]+)/([a-zA-Z0-9\-]+)$ … Web Development php | |
So I have being asked to create something in JavaScript and was told what they want it to be like, since I am beginning JS amongst other web development languages. Anyway have a look at the image and let me know if it is possible to do with JS or … Web Development flash javascript open-source | |
hi all, I have installed wordpress in English language. But in my language there not any available languages in wordpress official site My language is [B]Azeri[/B] [COLOR="Red"]Azerbaijan[/COLOR] country which wordpress files must i make changes thanks beforehands ![]() | |
Hi I am quite new to web developing and I am starting to struggling with this code. I am basically trying to enter a name along with a mark and store this in a javascript cookie. From this I want to create the mean and graph for up to 100 … Web Development html-css javascript | |
I would like to show a Div based on the URL. I'm using PHP to update a database and the page just refreshes when it's done. I'd like to set the URL to something like [url]http://www.whatever.com/update.php?id=5&ud=y[/url] So if the URL had ud=y in it, it would show a div with … Web Development javascript | |
No idea if this could be done by just javascript but don't know where else to post it... I have a contact forum where i want the visitor to select if they're a member of not, if they select no, nothing happens but if they select yes a new text … Web Development html-css javascript | |
Hey, My database currently stores the location of a specific image, however i'm trying to get the page to change the [CODE]img.ImageUrl = "C:\mug.jpg";[/code] However it doesn't display the image, is there any reason for this? If I use a local image it works perfectly IE: [CODE]img.ImageUrl="~/images2/mug.jpg";[/CODE] Any ideas at … | |
ok i am currently having a problem with my shopping basket. it works fine when you go to a product and select to add it to the basket, it shows on there and you can go back to shop by clicking on the products link and add as many items … Web Development database-design html-css php session web-browser web-design | |
I'm a newbie at this so couldn't figure this one out. [CODE]<html> <head> <title>Test JavaScript</title> </head> <body> <script type="text/javascript"> var frst=true; function first() { if(frst==true) { window.alert('Don't forget to Capitalize.'); } frst=false; } </script> <form> <input type="button" value="Derke" onclick="first;" /> <select> <option>color</option> <option>smell</option> <option>rain</option> </select> <br /><br /><br /><br /><br … Web Development javascript | |
im trying to set up a calendar using the code from the following site, however i have only got up to the code displayed below, which the site says it should show a calendar however im getting this error. I do however want to set up the whole calendar to … Web Development php | |
hello, i have to share products in facebook from my site. i used ths code for share. [CODE]<a href="http://www.facebook.com/sharer.php?u=http://<?=$_SERVER['HTTP_HOST']?>/blockbuys/details.php?route=product/product&product_id=<?=$fetpro['auto_id']?>&t=<?=$fetpro['productname']?>"><img src="images/facebook.jpg" /></a>[/CODE] but product image is not displaying in facebbook. how to do this task? thnks. Web Development php | |
Hi, So basically I have a php file that fetches database records and displays it. Now i would like to add the ability to edit each record using lightbox. here is the main file [CODE=PHP] <?php $username="root"; $password=""; $database="lhs_anniversary_banquet"; mysql_connect("localhost",$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query="SELECT * FROM … | |
Hello, I would like ask you how works the FLV Metadata, i use it in order to analyse video streaming websites such as YouTube. It analyses the video header only or the whole video? [CODE]<?php class FLVMetaData { private $buffer; private $metaData; public $fileName; private $typeFlagsAudio; private $typeFlagsVideo; public $VCidMap … | |
I use php for web building . my html table sorting ( js ) not working . it is working in other table but not working in my php page . Web Development php | |
How a doc file can be open inside browser without prompting the download dialog box Web Development asp.net | |
Hi, I got a problem which I can't solve and I will be most thankful if you can help me out. Ik got a gridview showing data from an XML file and before that data I've created checkboxes in the gridview. The user can select which if an image should … | |
Hai.. Different type of service in asp.net? what is web service and remote service. if any explain to me. Web Development asp.net | |
I am tryin to embed youtube in my webpage. I am a starter so i might be doing something wrong here. can any please help me on this. I have included the swobject. [code=html]<html> <script type="text/javascript" src="swfobject.js"></script> <div id="ytapiplayer"> You need Flash player 8+ and JavaScript enabled to view this … Web Development flash java-jsp javascript | |
8:16 pm on Apr 28, 2010 (utc 0) I currently have a website that I am using SPRY Accordion on for the navigation. anu-d dot c o m When I try to add another javascript element the SPRY Accordion stops working and the javascript element I am adding does not … Web Development html-css javascript json | |
Yesterday I setup a message/note script for a "view project" page. It seemed to work fine. Today I went to test it out a bit more and on random occasions I get stuck in a confirm loop. Screenshot: [url]http://rawrgv.com/images/screenlnl.png[/url] I tried unsetting the form submit variable, but that doesn't seem … Web Development php | |
[CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>JavaScript Window Open Example</title> </head> <body> <SCRIPT language="JavaScript1.2"> function openwindow() { location('http://www.google.com','_self'); } </SCRIPT> <P> <input type="button" value="Replace Me!" onClick=" window.location = 'http://www.google.com/' ; "> <A href="javascript: openwindow()" >LINK 1</A> </P> <P>Back to the article:<br> <a href="http://google.lk" target="_self">LINK 2</a> </P> … Web Development javascript |
The End.