199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Dex09

Just a simple question, this has always bugged me. I always wondered why JS includes and code were split into separate script tags. jQuery, Analytics, and others do this: [code=javascript] <script src="/js/scriptname.js" type="text/javascript"></script> <script type="text/javascript"> //code here </script> [/code] Why use multiple tags? Why not: [code=javascript] <script src="/js/scriptname.js" type="text/javascript"> //code …

Member Avatar for Airshow
0
223
Member Avatar for Enrico!

hi, I'm trying to load cell values from a table, to a form in Javascript.... I can caught the cell values but I can't load them to a form.... this is how I caught the cell values: [code=html]<td id='cellText' >writing the text </td> <script> alert(document.getElementById('cellText').innerHTML); </script>[/code] Thank everyone.....

Member Avatar for Enrico!
0
195
Member Avatar for mindfad

Hi Ive recently tried to move a python code from a mac version to a version of Psychopy IDE. Now the code wont work on the pc it tells me there a syntax error. Is there something different that mac uses in the python code then the pc? if not …

Member Avatar for mindfad
0
161
Member Avatar for red999

Hi, I am writing a program that allows a user to enter a string of 0s, 1s, and x's. The program will then print out all of the possible combinations that a binary number can have with the string. Example: If the input is 1xx0 The output would be 1000 …

Member Avatar for JJS
0
80
Member Avatar for meshari

hello Everybody . . I am a new member and I am looking for somebody can help me . . just I want the code in Assembly language if somebody can write the code for me that do these things :- 1-Make a data file named "datafile.txt" with 100 integers, …

Member Avatar for Salem
0
112
Member Avatar for musman007

Hey Guys, I am trying to call codebehind onclick event from my markup from Firefox works find in IE. I hv created an image button and onClientClick I m calling a javascript function after checking some fields it should call onClick event in code behind but unfortunately its not, Please …

Member Avatar for agrothe
0
138
Member Avatar for meo

Hello! I am a very green ASP user (but a fast learner), and am hoping someone can help me understand why my response.redirect is not redirecting. Here is the situation: I have a form on one page that, once a visitor clicks one of 2 buttons, sends visitors to "decision.asp". …

Member Avatar for agrothe
0
156
Member Avatar for ChristineB

Hello - I am new to this forum. This post is to get your input on the best location to set up a small Delphi/Pascal development shop. Are there areas in the US where highly skilled Delphi/Pascal programmers are available? We want to co-locate to utilize Scrum development techniques. Your …

Member Avatar for mark.b
0
204
Member Avatar for gptArun

hi all, pls reply, is there any multiple format video player which can be used in php. OR any other idea??? thanks, Arun

Member Avatar for diafol
0
74
Member Avatar for Josh Connerty

Hey guys, Basicly my nephew has just been born and I need to put soem images on my site for my grand parents (the great grad parents) to see. I can upload smaller galleries and all is well but for some reason if I upload a larger archive, for example …

Member Avatar for Josh Connerty
0
127
Member Avatar for imaloner

I am posting two threads because I have two different problems, but both have the same background information. Common Background Information: I am trying to rebuild code for a working, commercially sold application with only partial build instructions. The previous maintainer of the code (a mixture of C and C++) …

Member Avatar for imaloner
0
822
Member Avatar for drjay1627

I'm trying to code a Trie in Python. Any suggestions as to where I should begin? drjay

Member Avatar for jlm699
0
113
Member Avatar for brashli

I am trying to do calculations onto a file that I created in python. But I can't seem to make a string with the data without loosing my quotations or going word by word... i have attached my code... This then produces... ['Corn', 'For', 'Grain', 'Irrigated', '1970', 'Colorado', 'Chaffee', '8', …

Member Avatar for jlm699
0
153
Member Avatar for hughesadam_87

Hey all, I have a class with various methods and I want to pass the output of one method into the next method. For example: [CODE]class RockPaperScissors: '''Rock paper scissors game, best of 3''' tries = 3 def __init__(self, name): 'Reads in users call' self.name = name print 'You picked …

Member Avatar for jlm699
0
180
Member Avatar for Potato.Head

Hi to all, I have the following problem, I have a div that includes a pictures and texts, if you put the following code in a html, and see the result, you can notice that in IE the text is displayed inside the DIV, in Firefox you can see the …

Member Avatar for Potato.Head
0
106
Member Avatar for ankushbansal89

i have recently started to learn c programming. while learning i came across a problem in which we are supposed to find the product of divisor of numbers of range upto 10^6. so, plz if someone can give me any direction on this problem.

Member Avatar for ankushbansal89
0
87
Member Avatar for lamiv007

Hello, [CODE]<?php ######################################################## # Login information for the SMS Gateway ######################################################## $ozeki_user = "0013246594464"; $ozeki_password = "password"; $ozeki_url = "https://sms.xxxxx.com/send_sms.php?"; ######################################################## # Functions used to send the SMS message ######################################################## function httpRequest($url){ $pattern = "/http...([0-9a-zA-Z-.]*).([0-9]*).(.*)/"; preg_match($pattern,$url,$args); $in = ""; $fp = fsockopen($args[1], $args[2], $errno, $errstr, 60); if (!$fp) { return("$errstr …

Member Avatar for digital-ether
0
629
Member Avatar for sunilsinha

Hi, In Firefox, div is not fitting to its text contents. There is requirement that on selection of fontsize from dropdown, div contents font size changes accordingly. Font Size DropDown values ranges from 5-95. When contents font size is increased, text contents are overflowing. To solve this, i defined div …

Member Avatar for Airshow
0
165
Member Avatar for neclark2

Hi, I've got a webpage that hides divs using the off left method whereby hidden divs float 4000 pixels to the left of the screen, instead of actually being hidden. I was unable to take the approach of using display:none because this page has embedded google maps within the hidden …

Member Avatar for neclark2
0
116
Member Avatar for sohoit

Hi, I have just inherited a website with an existing contact us form. however, it isn't doing what is should and I can't work out why. Does anyone know of a simple script with 4 fields (Name, Phone, Email and Comments) which I can simply insert into the existing contact …

Member Avatar for sohoit
0
196
Member Avatar for jaseerabubakar

I am trying to write a scipt which will take a movie name, search it in google with 'I am Feeling lucky' and return the redirected page. [CODE]import urllib.request import urllib.response import urllib.parse proxy=urllib.request.ProxyHandler({"http":"http://www-proxy.us.oracle.com:80"}) auth=urllib.request.HTTPBasicAuthHandler() opener=urllib.request.build_opener(proxy,auth,urllib.request.HTTPHandler) urllib.request.install_opener(opener) url= 'http://www.google.co.in/search' values = {'hl' : 'en', 'q' : 'Departed imdb', 'btnI' : …

Member Avatar for jlm699
0
209
Member Avatar for kingarthur

Hello everybody! I want to create a JTable (showing data from mysql..) on a Panel. But I dont get it..nearly every method is unavailable. Here is my code for creating it on a frame: [code] package gfx; import java.awt.*; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.io.*; import java.sql.*; import java.util.*; import …

Member Avatar for cruzer45
0
148
Member Avatar for sravan953

Hey guys... I created a uber-basic brute force program(not exactly 'brute force'), where in the program opens a 'log.txt' file and reads the contents. I created a list of alphabets A-Z and numbers 0-9....what I wanted the program to do was, try out different combinations with the given set of …

Member Avatar for vegaseat
0
130
Member Avatar for mem81

Hi Guys, Spent lots of time looking around , reading MSDN help and whatnot. I don`t seem to get the right answer still. What I would like to do is To parse XML file to an array in vb.net console application.The XML file is very simple. The thing is that …

Member Avatar for mem81
0
2K
Member Avatar for san gabriel

output should like that: input #: (909)869-2511 area code: (909) exchange: 869 ext.: 2511 telephone #: (909)869-2511 this is my code so far: [code=cplusplus] #include "stdafx.h" #include <iostream> #include <iomanip> #include <cstring> using std::strtok; using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char sentence[32]; char *tokenPtr; tokenPtr = &sentence; …

Member Avatar for siddhant3s
0
170
Member Avatar for peter6960

Hey all I have a request i need to help implement We have this company who has 10 packages they need to distribute for download to 21 departments via the internet Eg. User1 logs in, then he clicks on accept, and then goes to a page that shows he can …

Member Avatar for Josh Connerty
0
147
Member Avatar for worldthreat

I usually dont have a problem with simple CRUD work, but these queries in particular are boggling my mind. looking at it now, i may have an extra foreach... anyone have any ideas how i can properly execute this? the code populates a form based on each distinct "dealer_id" (user) …

Member Avatar for worldthreat
0
96
Member Avatar for serkan sendur
Member Avatar for serkan sendur
0
2K
Member Avatar for jforward5

Why does the code below have the error in the subject of my post? I don't get it.... How do I make it go away. Any help is appreciated [code] Partial Class NIR_Approvals_NIA Inherits System.Web.UI.Page Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged Dim unitCost As …

Member Avatar for sknake
0
134
Member Avatar for obiphil

Hi, i wonder if someone can help me with this, I am trying to get the results of top across multiple machines at the same time. I only care about the first process listed by 'top'. I can't figure out how to make this happen. I have got passwordless SSH, …

Member Avatar for obiphil
0
112
Member Avatar for DayOldPorridge

I was wondering if there's a simple way to create a wget-like program in C? If anyone could point me in the direction of a short guide/tutorial focusing on fetching web pages in C, that'd be great. Beej's guide is a bit too detailed, for me -- I just want …

Member Avatar for marco93
0
72
Member Avatar for shakeelahmed22

what is the difference between throw and throws clause in java???? mmm.....i no that all methods in java use the throw statement to throw an exception and the throw statement requires a single argument : a throwable object.... but plz can any1 tell me the function of the throws clause?????

Member Avatar for shakeelahmed22
0
111
Member Avatar for samir_ibrahim

I have this issue which I did not find an answer to it. I am creating a small app which SUPPOSE to be easy and it is about getting 4 things (User Name, Pc Name, Domain Name, and IP Address) I have over 35 pc's connected to a domain, and …

Member Avatar for samir_ibrahim
0
92
Member Avatar for serkan sendur

i understood that foreach statement's function call part only executes once : form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication32 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { …

Member Avatar for serkan sendur
0
117
Member Avatar for serkan sendur

this is not a question, this is snippet to encode any file to base64 string and decode that encoded string to that file back. i attach the project to this post too. Form1.cs : [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.IO; …

Member Avatar for serkan sendur
0
329
Member Avatar for ia2196

I have a list which is of type class people. def class people: name="" age=0 class poeple has two data members name, age I have a list of all person stating in the city as a list of objects of this class.list is called population now i get an query …

Member Avatar for jlm699
0
82
Member Avatar for wattle99

Hi Everyone I am working through a book called Dreamweaver PHP Web Development. It has a tutorial for creating a booking system for a hotel. The because went out of publication in 2002 and there isn't a errata on the Glasshaus site for it . When creating the search page …

Member Avatar for fello
0
346
Member Avatar for jbisono

Ok I have seen to many post about this and nothing work for me, I just do not get it. I have a simple datagrid which i want to add rows, NOTE: this datagrid have no relation with database so everything has to be done datatable or arraylist whatever you …

Member Avatar for jbisono
0
214
Member Avatar for d.devendran

hi, currently i'm working on new project, where once login using a particular id, it can not be use again to login in same machine even with different browser or even in other machine. how can done this. can i create a separate table in database so i can save …

Member Avatar for kvprajapati
0
76
Member Avatar for gautam.ap

Hi, everyone i want to display the corresponding values when i click on the primary key ... How to do this in jsp...??? Thanks in advance

Member Avatar for kvprajapati
0
127
Member Avatar for kap_sni

i am making a project. i want my web page to send a same copy of text to diffrent names specified with difrent email ids. pls help. thanx in advance

Member Avatar for dreamer14
0
121
Member Avatar for Xessa

Hi. I have a textarea and i want my button to be enabled when the contents of the textarea is changed. But i don't want onchange method because even when i type even a letter it keeps firing the js function. I got the contents of textarea from the database …

Member Avatar for Airshow
0
109
Member Avatar for servis

i want to display alert on the basis of responce text in AJAX, meaning to say i am getting responce text in id "responce " through php file by AJAX method, when responce is incorrect it shows alert before form submission the code is as follow, [ICODE] <?php session_start(); ?> …

Member Avatar for Airshow
0
123
Member Avatar for lexusdominus

Hello! google has turned me up at this forum so many times i think it would be stupid to ignore the hints & not get registered! Im having some problems with objects. Here is my code: [CODE]#include <iostream> #include <string> using namespace std; class planet{ public: int moons; int mass; …

Member Avatar for lexusdominus
0
140
Member Avatar for aga

Hello everybody! Is in possible to change a page url during callback (ICallbackEventHandler) ? Thanks.

Member Avatar for aga
0
90
Member Avatar for Motiranjan

HI, I need some quidance how to practice vc++ to attend some interview. What are the main topics I have to cover. Thanks Motiranjan <snip email>

Member Avatar for Motiranjan
0
84
Member Avatar for whizzykid

i have this code,but it only displays the name but doesnt display other rows frm my database.i am very new to loop and arrays. thanks [CODE]mysql_select_db($database_profiles, $profiles); $query_Recordset2 = "SELECT * FROM biodata"; $Recordset2 = mysql_query($query_Recordset2, $profiles) or die(mysql_error()); while ($row = mysql_fetch_assoc($Recordset2)){ $row_Recordset2 = $row ['Name'][/CODE]

Member Avatar for kvprajapati
0
105
Member Avatar for sangam100

Hi all, I have a table named comments having columns id, name, email, comment, commentedon, approved, and approvedon. In some cases I would like to let the admin of my asp.net web page to approve all the comments at once. Which would be the effective sql code and why? update …

Member Avatar for kvprajapati
0
99
Member Avatar for sfener06

i need something like a function to do a specific job which work in a specific time.Like every first day of the year i want to sum all the members account amount to my tbl_information table's column. How can i do that?

Member Avatar for kvprajapati
0
64
Member Avatar for antobx

Hi , I create a xml string using a xmldocument (c# 2.0 ) This is my code (more or less) XmlElement MySearchNode = xmlDoc.CreateElement("MySearch"); xmlDoc.AppendChild(MySearchNode); ... XmlNode node1 = xmlDoc.SelectSingleNode("/MySearch/Objects"); XmlAttribute nameAttrib = xmlDoc.CreateAttribute("result"); nameAttrib.Value = "012"; node1.Attributes.Append(nameAttrib); xmlDoc.outerxml I want to validate the xml string against a XSD : …

Member Avatar for kvprajapati
0
449

The End.