199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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..... | |
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 … | |
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 … | |
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, … | |
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 … | |
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". … | |
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 … | |
hi all, pls reply, is there any multiple format video player which can be used in php. OR any other idea??? thanks, Arun ![]() | |
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 … | |
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++) … | |
I'm trying to code a Trie in Python. Any suggestions as to where I should begin? drjay | |
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', … | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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' : … | |
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 … | |
![]() | 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 … |
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 … | |
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; … | |
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 … | |
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) … | |
i want to be able to send sound file in an xml message, is that possible, how? thanks. | |
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 … | |
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, … | |
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 … | |
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????? | |
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 … | |
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) { … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 | |
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 … | |
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(); ?> … | |
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; … | |
Hello everybody! Is in possible to change a page url during callback (ICallbackEventHandler) ? Thanks. | |
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> | |
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] | |
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 … | |
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? | |
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 : … |
The End.