199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jhbalaji

Recently i was Writing a Preg replace Function in PHP Here is the Code below [CODE]$suchmuster = "/".$textlinksname."/i"; $replace = "<a href='".$textlinksurl."' target='_blank'>".$textlinksname."</a>"; $body = preg_replace($suchmuster,$replace,$body,200);[/CODE] Since the variable $body contains links begins with http:// when it replaces the matched text in URL it becomes a problem Similarly for the …

Member Avatar for SikoSoft
0
100
Member Avatar for laghaterohan

Hello friends, I have a gridview which has 4 columns. In the first column i have Name. In the second i have School Name ( This is a Drop down list which is Disabled on Page Load) In the third i have Template filed wherein i have put an Button …

Member Avatar for laghaterohan
0
246
Member Avatar for umair.sabri

i m developing website in C#.net but my exception message is not displaying in alert box how can i disply my exception in text box in try catch any body pls tell me

Member Avatar for kvprajapati
0
1K
Member Avatar for sinyi

[CODE]<script language=\"javascript\" type=\"text/javascript\" src=\"datetimepicker.js\"></script> print "<script language=\"javascript\" type=\"text/javascript\" src=\"datetimepicker2.js\">"; print "</script>"; [/CODE] [CODE]print "<input name=\"EffStartDT\" type=\"text\" size=\"25\" value=\"".trim($_POST['EffStartDT'])."\"><a href=\"javascript:NewCal('EffStartDT','ddmmyyyy','true','24')\"><img src=\"cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>"; print "<input name=\"EffEndDT\" type=\"text\" size=\"25\" value=\"".trim($_POST['EffEndDT'])."\"><a href=\"javascript:NewCal2('EffEndDT','ddmmyyyy','true','24')\"><img src=\"cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>"; [/CODE] I want to create two date time pickers for …

Member Avatar for sinyi
0
164
Member Avatar for PetrQ

Hi folks, please help. My php script combine different fetch records and I use the jQuery pagination as the kind of menu. (jPagine from [URL="http://www.phpixel.fr/jpagine/"]http://www.phpixel.fr/jpagine/[/URL] I need change page numbers to words. I know the total number of pages. I tried use array in javascript but without success ... Many …

Member Avatar for pritaeas
0
151
Member Avatar for niths

hi all, i need to disable the back button if the url address is login.php. so i am having the code for restricting the back button. so if in url the address is login.php then the browser back button should not work. here is my code for restrcting back button. …

Member Avatar for charvie
0
186
Member Avatar for tacoman

Hi, I am writing a program that receives a binary data stream over serial. The size of the bytes I read fluctuates between 1 and 4 bytes. I want to read the specified number of bytes, and return an UInt32 with the binary data. I have tested around with the …

Member Avatar for renevdkooij
0
839
Member Avatar for chama89

I'm running Eclipse for Java. I created a DOM version of an XML file. Now I want to change an attribute of an element in the file. I called a method that called a method in the class that controls the DOM, and I got a dialog box saying "JDI …

Member Avatar for patrick076
0
1K
Member Avatar for BonaDrag

Im trying to write c# form validation for a xaml-form. The only two things that seem to work are the lines of code that clears the text- and passwordboxes and displays the messagebox. Are my regex-examples wrong, or do I need to work with some kind of while-statement(s)? [code=c] //start …

Member Avatar for BonaDrag
0
124
Member Avatar for Sandhya212

Hi, I need to make a pairs between array elements. For eg if the sored array I have is [CODE]1 1 1 2 1 4 1 6 2 3 2 5 2 8 2 9 3 7 3 10[/CODE] then I need to pair every element of the 2nd column …

Member Avatar for Sandhya212
0
245
Member Avatar for GamerXxX

I creating a 2d computer game, and I want to put enemies that in that appear at random coordinates. The problem is i'm not sure entirely how to do it. I have the "enemy" in a array of 30,and then i want to put these 30 enemies on a map, …

Member Avatar for GamerXxX
0
762
Member Avatar for refilltuffy
Member Avatar for itee

I have a table in SQL sever .How to create a dynamic dropdownlist using the entries in that table in such a manner that i am able to use the corresponding values to that entry that are given in the table?

Member Avatar for itee
0
134
Member Avatar for GameCherry

Hello All, I'm trying to modify some code for an auction site but my lack of PHP knowledge is preventing me from doing so. I bought an "Essential Guide To CSS, AJAX,& PHP" book and have been doing the PHP exercises at the W3 site, but it seems that it'll …

Member Avatar for GameCherry
0
724
Member Avatar for charvie

These are the steps in registering a new user. 1. A new user is registered (provide name, address, email etc.) 2. An email is sent to the email he/she provided, which contains his login information. the problem now is the emial code. I've never done this before so I don't …

Member Avatar for rajarajan2017
0
209
Member Avatar for beforetheyknew

I dont really know specifically what im searching for, which is why i haven't just found this via searching the web. Have you guys come accross or know of any sort of quiz questions like where it gives you a for loop which isn't in the normal format and then …

Member Avatar for dongbv
0
111
Member Avatar for niths

hi all, i had a logout page wer i am destroying the session value. so now i am logging out from a page and if i click browser back button it is going back to that page, so i placed a code in that page[CODE]<?php if(!isset($_SESSION['username'])) header("Location:http://10.70.2.142/Project/login.php"); ob_end_flush(); ?>[/CODE] it …

Member Avatar for niths
0
59
Member Avatar for gargi3542

hie all, i needed to make a code in simple turbo c for ethernet packet injection as well as data reception. I tried the code in windows but its not working. possibly due to linux based commands. plz help me..

Member Avatar for gargi3542
0
191
Member Avatar for abhilala

how to pass two parameters using a dataenvironment. I have a table salary record in which there are two coloumns date and unit, i want to pass these parameters at run time.

Member Avatar for Bashir ahmad
0
93
Member Avatar for Raakesh399

Hi every one!! I have a java program and i don't know how to delete a record from an array of objects using JOptionPane

Member Avatar for jwenting
0
93
Member Avatar for runjel

can someone help me setting up a log in form that can be found here in dani.. whenever you clicked the login link a box will appear wherein in thix box you can input your username and password?

Member Avatar for runjel
0
140
Member Avatar for maunica

hey, please can anyone help me to add new row or a column to the table whenever a user clicks on the add button? thanx in advance

Member Avatar for vibhaJ
0
105
Member Avatar for prem2

Hi , I dont have any basic knowledge in servlet program in java.Now i am using Redhat os. Please any one tell some steps how to execute the servlet program. Thank you, Prem.

Member Avatar for prem2
0
137
Member Avatar for sugikrish

hi friends, i want calculating values in two text box , result display in another text box and this result will be stored in database. if anybody know this say to me..

Member Avatar for rajarajan2017
0
53
Member Avatar for ohgee

Hey, Here is the situation: I have a gallery of images that are being displayed with javascript that requires the image files to be saved as img1, img2, img3, etc. I am currently trying to write the php code that keeps track of the number of image files and allows …

Member Avatar for rajarajan2017
0
284
Member Avatar for RamRod53

So, I am new here and have a few questions about using the "this" keyword in Javascript. I am new to javascript but have much experience with C++. First question, is the "this" keyword just like using self? Secondly, if it is like self, and I use it in say …

Member Avatar for rajarajan2017
0
303
Member Avatar for helios0684

Alright, let's try this again. I've started over from scratch and we have got the basic functions working. Everything so far has checked out, but I am still trying to get it to pull the right credentials. I can get it to pull one of the rows out of the …

Member Avatar for woooee
0
297
Member Avatar for WesFox13

Hello all, I need a bit of help with this program, I need to make my code create a complete binary tree using an array. As well as create a driver class that displays the tree graphically Here is what I have so far with my code Tree Code: [CODE]import …

Member Avatar for WesFox13
0
170
Member Avatar for sanjkadam

I need to submit a project in vb & sql I have a project in vb & access which I have to convert to vb & sql secondly I have basic idea of sql data connection. but unfortunately I have done my sql class long back & lost the notes …

Member Avatar for vb5prgrmr
0
85
Member Avatar for vwdmt

Alright guys, bear with me, im a noob when it come to PHP. When a user clicks I am currently redirecting users the following way: [code] echo '<li class="edit"><a href=updateInfoForm.html?id='.$siteInfoId.'><img src ="images/edit.png" class="editImg" height="23" width="23"/></a></li>'; [/code] The problem is I would rather not have this data in the URL, I …

Member Avatar for vwdmt
0
156
Member Avatar for Spider X

I can do this in Objective-C: [CODE]newNotewUTF8 = (NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)oldNote, NULL, (CFStringRef)@"!*'\"();:@&=+$,/?%#[]% ", kCFStringEncodingUTF8 ); [/CODE] Ex: oldNote looks like this: This is a note newNotewUTF8 comes out like this: This%20is%20a%20note And it works out fine. I can receive the above Note in a url: "http://www.siteurl.com/input.php?note=This%20is%20a%20note" in my PHP …

Member Avatar for Spider X
0
161
Member Avatar for albertkao

Pressing the enter key of the following page (created by JSP) submit page more than once. Both alert popup boxes appear as expected: alert('i ' + i + ' elem[i].checked ' + elem[i].checked); alert('alarmgroup ' + alarmgroup + ' rowsPerPage ' + rowsPerPage); appear. However, then this alert appear again, …

Member Avatar for fxm
0
155
Member Avatar for puppykillaz

I am getting an error message that is quite new to me. I normally can call methods without incident but this time, I saw a new error message. This code is sample coding I am using to see how to fix three of my issues. First Class [CODE] public class …

Member Avatar for puppykillaz
0
315
Member Avatar for bklearner

I believe that ofstream is for writing into a file and ifstream is for reading from a file. I am trying to write into a file by taking commandline input from the user which is the accept_data() function and and then display all the data from the file that the …

Member Avatar for NathanOliver
0
259
Member Avatar for drewpark88

Hey Guys, Before I start working on this I figured I would see if any of you knew the best place for information on building a Digg style function. I am not talking about the Digg button, I am talking about the "Submit a New Link" function that diggs through …

Member Avatar for drewpark88
0
141
Member Avatar for toadzky

I am writing a script to rename and reorganize the mp3 on my iPod. For those who don't know, if you drag and drop your music from the iPod to a computer, there is a crazy F## folder structure and all the names are 4 random characters. I want to …

Member Avatar for TrustyTony
0
185
Member Avatar for drewpark88

Hey Everyone, I have a blog that has three content/picture boxes on each page at the top. Below these boxes is the actual text content. Well what I want to do is create a script that will scroll smoothly down just right after those three boxes. This may sound confusing …

Member Avatar for fxm
0
94
Member Avatar for nevergone

Hi, I have a slot game written in flash actionscript 1.0 , all the data is inside the .fla file. This game communicates with a PHP file and gets some data from it,and updates a database based on the wins or loses of the player.(in the php file,the credit of …

Member Avatar for iamthwee
0
93
Member Avatar for avarionist

I'm trying to just use a normal stack and have it pop the numbers in the order stacks normally go but it just keeps popping 28 (or at least from output thats what i see) it should just be pretty straight forward but .... [CODE] #include <iostream> #include <stack> using …

Member Avatar for avarionist
0
116
Member Avatar for debugger09

hi guys!! i am wrting a program for a small arithemtic game,it displays two numbers and ask user to enter the sum of these two numbers,the program runs fine but i want to add a countdown timer,i mean time limit for user to answer all 10 questions within 30 seconds.i …

Member Avatar for debugger09
0
153
Member Avatar for brad82

Hey all, I am pretty new to C and am trying to make a basic HTTP server to learn more about sockets. I managed to get the sockets working fine, and sent some data to the browser when I hardcoded the data. However I am now trying to read from …

Member Avatar for Aia
0
110
Member Avatar for niconico96

Hello. I have a file, with some HTML in it. I would like to make a shell/bash script that moves ALL of the content of that file into ANOTHER HTML file at a CERTAIN line number... Does anyone have any suggestions? If not possible at a certain line, then at …

Member Avatar for niconico96
0
158
Member Avatar for jonow

I am looking for something that I can edit the code of a page online. I want something like [URL="http://notepad-plus.sourceforge.net/uk/site.htm"]Notepad++[/URL] but in the browser. I preferably want something with similar features of Notepad++ like tag highlighting, colored code. Stuff like that. Does someone know of anything like that? It also …

Member Avatar for jhbalaji
0
317
Member Avatar for Choink23

we were tasked to come up with a peer 2 peer chat program using serial ports using only nasm and C language. can anyone give me an idea on how i can do it? or references that can help me figure out what to do. i'd really appreciate you're help …

Member Avatar for thxliatdu
0
80
Member Avatar for vbx_wx

It is posible in a linked list implementation,the nod to hold more then one information ? for exemplei want the node to hold a person`s name,adress,country,etc....

Member Avatar for Narue
0
148
Member Avatar for Sandhya212

Hi, I would need to create unique filenames appended by the iteration number. For eg. [CODE]for( i=0;i<iterations;i++){ ofstream outfile("iterfile"+"i"); // i.e filename should be iterfile0 for 1st iteration. } [/CODE] I need to cast "i" from int to char so I tried [CODE]ofstream outfile("iterfile"+(char)i)[/CODE] but it did not work. How …

Member Avatar for Sandhya212
0
221
Member Avatar for Ole Raptor

I am having issues with the following script. I don't see anything wrong here. Very basic but it is giving me a headache. Any suggestions are welcome. I am running version 5.1.37 and the error is: Error Code : 1064 You have an error in your SQL syntax; check the …

Member Avatar for griswolf
0
957
Member Avatar for ferenczi

Hello, I have a question: [CODE] Algorithm DFS(Vertex V) mark[V] := 1; print[V]; for each (edge (V, W)) do if mark[W] = 0; DFS(W); [/CODE] I would like to realize this recursive procedure (depth-first search), but in my graph representation (with adjacency lists) I use two different classes, one for …

Member Avatar for thelamb
0
126
Member Avatar for WickidGRAFX

I have some ad code in a smarty .tpl file that I want to refresh every 10 seconds so it will load a new ad. My ads are getting plenty of views but I want people to multilple ads in one page view instead of when the whole page is …

Member Avatar for almostbob
0
178
Member Avatar for gsmoura

I really need help in some parts of my minesweeper code using Tkinter. I don´t have much experience in python and I am facing two major problems that I just can´t solve. The first one is that, as I generate buttons dynamically, they all have the same name and receive …

Member Avatar for strider1066
0
150

The End.