17,029 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for tapas.chand

i am saving some records in an excel file on click of a button currently i am hardcoding the path like [CODE]FileOutputStream fileOut = new FileOutputStream("c:\\test.xls"); [/CODE] but i want to take the path from user,i.e.,something like 'save as' option how can i do it? please help. Thanks in advance.

Web Development java-jsp
Member Avatar for tapas.chand
0
102
Member Avatar for diafol

Hi all. Am messing about with an ajax form at present which loops through records in a DB. This is my issue: I have a reset image link in my form (called "file_edit") which calls a 'confirm reset': [CODE]function reset() { if (confirm("Reset? You'll lose any changes!")) { document.file_edit.reset(); } …

Web Development javascript json php
Member Avatar for liamfriel
0
132
Member Avatar for Spikae

am using an example of tooltips from [url]http://www.dynamicdrive.com/dynamicindex5/stickytooltip.htm[/url] on [url]www.euroworker.no/order[/url] I have this code here to work with, but it just doesn't seem to work correctly, I've tried everything I can think of. It's not a problem with the Smarty or html, css as far as I Can see, when …

Member Avatar for Spikae
0
235
Member Avatar for nccsbim071

I built an ajax chat in one of my mvc website. everything is working fine. I am using polling. At certain interval i am using $.post to get the messages from the db. But there is a problem. The message retrieved using $.post keeps on repeating. here is my javascript …

Web Development asp asp.net javascript json
Member Avatar for nccsbim071
0
344
Member Avatar for bharatshivram

hi i have a database with the following coloumns thid thname thdate i have used the gridview control to display this info, also enabled paging and selection with it. i want to jump to "one.aspx" page and set the value of a querystring variable "thid" to the value in the …

Web Development asp.net
Member Avatar for REwati
0
143
Member Avatar for niths

hi i am new to php. i am getting the following error. ------Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\login\login.php:23)----------- <html> <body> <form action="login.php" method="post"> <div> <table width="100%"> <tr> <td><img src="Logofinalcopy.gif"></td> </tr> <tr> <td bgcolor="aqua"><h2>Login</h2></td> </tr></table> <table align="right" style="width:40%"> <br> <tr> <td>username:</td> <td><input …

Web Development apache php
Member Avatar for niths
0
120
Member Avatar for kumiyare

Hi every body!, I am new to PHP and I'm developing a basic PHP CMS, now specially I'm developing the database backup & restore section of the CMS, so I've experienced one problem. I want that CMS users able to upload their database back ups to restore, they will use …

Web Development cms php
Member Avatar for kumiyare
0
98
Member Avatar for MDanz

this curls a webpage correctly, the bottom 5 lines of the code is where its not working correctly. It should collect the keyword($search) from the page and the first 5 words before the keyword and after the keyword. i've only got the first part working, it collects the keyword and …

Web Development php
Member Avatar for somedude3488
0
86
Member Avatar for Zurompeta

Within a function, I am creating a new variable that contains an HTML element. The variable declaration works fine in Firefox for example, however it comes up "undefined" in Google Chrome. [CODE]function updateName(num) { name = document.getElementById("id_name_"+num); } [/CODE]

Web Development google javascript
Member Avatar for Airshow
0
116
Member Avatar for motters

hi does any one know why this code won't display my links [CODE] <div id="columnRight"><div id="innerColumnRight"> <div class="marginBox"> <h1>Second Menu</h1> <!-- Vertical Navigation Start --> <div id="navVertical"> <ul> <?php do { ?> <?php echo '<li><a href="'. $row_website_domain['website_domain'] . 'content.php?id=' . $row_side_bar['id'] . '">' . $row_side_bar['title'] . '</a></li>'; ?> <?php } …

Web Development display php
Member Avatar for motters
0
103
Member Avatar for degenz

i am having a problem where i want to give user an option to select more entry from one dropdown...example : <form name="form1" method="post" action=""> <label> <select name="service" id="service"> <option value="service1">service 1</option> <option value="service2">service2</option> <option value="service3">service3</option> <option value="service4">service 4</option> <option value="service5">srvice5</option> <option value="service6">service 6</option> </select> </label> </form> in this case, …

Web Development html-css javascript php
Member Avatar for katarey
0
118
Member Avatar for dabobrow

Modal not showing up when show is called, also error on loading page. Attaching code below, can anyone help me discover my syntax / logic issues here? NOTE: Did some research on this before posting, some claimed it can be an issue of where the modal is placed on the …

Web Development assembly javascript listview
Member Avatar for dabobrow
0
90
Member Avatar for Excizted

Hi. I have multi-language functionality on my page, and the settings are saved in a cookie, so that the user may change something different than his browser language. But this is whats happening: [U]/home.php?setlanguague=en[/U] The page shows it's text in English, and prints my user info aswell as the content …

Web Development php
Member Avatar for Excizted
0
107
Member Avatar for Bobon

Hey guys, new to javascript. I was just wondering could you point me in the right direction as to where i might be going wrong. Please see code below. [CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <script language="JavaScript">function …

Web Development javascript
Member Avatar for Bobon
0
168
Member Avatar for Pleasant Day

I'm having some trouble with some code, I found a script that makes a countdown then sends you to another page, I like the script a lot, I tried editing it to change its look, in this case its font, does this look right to you, I notice its colour …

Web Development javascript
Member Avatar for Pleasant Day
0
160
Member Avatar for MDanz

in a cell in mysql i have tree, car, bus, dog, apple, ocean, tire. now i'd like to query only the words beginning with the letter T. So it should echo tree and tire. this hasn't been successful; [code] <?php mysql_connect("localhost", "Master", "pword"); mysql_select_db("db"); $letter = "t"; $user =mysql_query("SELECT * …

Web Development apple mysql php
Member Avatar for somedude3488
0
83
Member Avatar for achiman

I am using this code to validate a form to check that only numbers have been entered but when I enter alphabets the javascript raises an error but still submits the form. So please can anyone tell me where I am going wrong. [CODE] <script type='text/javascript'> function isNumeric(elem, helperMsg){ var …

Web Development javascript
Member Avatar for achiman
0
111
Member Avatar for whiteyoh

Hi All, I thought I was getting along well with PHP, but i have been given a project at work to interact with a 3rd party client using SOAP and im lost. Can anybody help me get started with this? They are going to send me a url with a …

Web Development php session
Member Avatar for whiteyoh
0
118
Member Avatar for KevT

Hmm...I haven't had much luck using a combination of functions to get this working like file() etc. so I instead of boring you with unsuccessful code, I was wondering if anyone had thoughts on this? NEED Have a file I append IP's of visitors to a site. I want to …

Web Development file-system php
Member Avatar for KevT
0
139
Member Avatar for txwebdesign

I have a [B]dB named "txbDb"[/B] I have a [B]table called "txbUpdates"[/B], in that table I have the following [B]cols: ID, LOCATION, MODELS, PHOTOGRAPHERS.[/B] "LOCATION" refers to a page name or URL; i.e. may1toJun12009.php and ID is simply the current row I'm on, right now I have 46 rows so …

Web Development php web-design
Member Avatar for txwebdesign
0
309
Member Avatar for DealthRune

Well, I'm making this script that deals with numbers that can go up to some VERY large numbers. Like 1.0E+150 I have tried [CODE] <?php echo number_format(1.0E+10); ?> [/CODE] But that returns 10,000,000,000 I want a way to show that number, but without the comas. Can anyone help?

Web Development php
Member Avatar for DealthRune
0
143
Member Avatar for cwarn23

Hi and I remember reading in a really old topic that somebody here was able to write a chatroom without using mysql or any other database system. Can somebody explain how this is possible with just javascript and ajax? What I want to do is to have a script that …

Web Development client-server mysql php
Member Avatar for cwarn23
0
156
Member Avatar for jonathanroy

Hi, I am looking for the best solution to my situation: - I have businesses listed in a MySQL table. - Each business can bid on up to 10 keywords (different prices for different keywords). A user inputs a keyword and then I must find a way to query my …

Web Development mysql php sql
Member Avatar for hashinclude
0
141
Member Avatar for Ryujin

Greetings! I'm trying to make [URL="http://faculty.kutztown.edu/rjensen/charcoun.htm"]this tool[/URL] for some fellow librarians who answer questions via text messaging. As you see beneath that page's text box, the catch is that the PC-to-SMS client treats the forward slash as [I]two[/I] characters. I'd like if possible for the JavaScript character counter to recognize …

Web Development javascript
Member Avatar for Ryujin
0
388
Member Avatar for Exploded Fiber

hey all. Have a list of checkboxes with SQL data in table. Currently using echo to ensure I'm using the correct data, however, echo it returning the last checkbox data only. Here is a segment of what I've got. [CODE] echo "<table border='1'>"; echo "<tr><th>Last Name</th><th>First Name</th><th>Party</th><th>Description</th><th>Cast Vote</th>"; while($row = …

Web Development php
Member Avatar for hashinclude
0
93
Member Avatar for sicoev

I would like to use Galleria to display photos on my website but I'm having trouble getting it to function. I don't know an awful lot about html but I think I've followed the instructions correctly. I would like my gallery to function something like this: [url]http://monc.se/kitchen/stew/galleria/index2.htm[/url] but right now …

Web Development javascript
Member Avatar for sicoev
0
95
Member Avatar for hallinan

I have a drop down box which is working but I want to put it on the same page twice because the document.drop_list.? is hard coded it will not work if I try and use it twice on the same page I have tried sending the id to the javascript …

Web Development javascript
Member Avatar for hallinan
0
111
Member Avatar for jamey8420

Hello, First a little background on my issue. I have two multi select boxes. The first select box (box1[]) is populated from a table. The second select box (box2[]) will be populated by "clicking over" options from box1. These options are rights to be assigned to a specific person. The …

Web Development php
Member Avatar for jamey8420
1
170
Member Avatar for azegurb

hi there i have table consist of 5 columns it looks like this [CODE]id title theme image category 1 PHP tutorial tutorial self 1.jpg PHP 2 Javascript tutor tutorial self js.jpg Javascript 3 PHP tutorial 2 tutorial self ad.jpg PHP[/CODE] category here is changed for ex: how i can count …

Web Development mysql php
Member Avatar for xylude
0
104
Member Avatar for cfHutton

Hi all, first time post here. I'm using jquery/ajax to create some links with window.open method. Here's the relevant code: [CODE]$("#content").empty(); $.ajax({ type: "GET", url: "webapps.xml", dataType: ($.browser.msie) ? "text" : "xml", success: function(xml){ var newXML = parseXml(xml); $("#content").append('<h2>'+ cat + '</h2>'); $("#content").append('<div id="appLinks"></div>'); $(newXML).find("APP").each(function(){ <!-- alert("before if"); --> if …

Web Development javascript javascript-jquery xml
Member Avatar for cfHutton
0
175
Member Avatar for Exploded Fiber

Hey all, Im a little confused about taking the values of a 2D array and placing them into a query or string to use in query. I've done some homework but unfortunatly square eyes and a caffeine comedown just isn't helping. Essentially I have an array named $myarray. It looks …

Web Development php sql
Member Avatar for Exploded Fiber
0
122
Member Avatar for sniigg

Hi All, I am getting the error "There is already an open DataReader associated with this Command which must be closed first. " [code] protected void Page_Load(object sender, EventArgs e) { nbseapi nbsi = new nbseapi(); Guid guid = new Guid(); if (Request.QueryString["Id"] != null) { string Id = Request.QueryString["Id"]; …

Web Development asp.net
Member Avatar for sniigg
0
276
Member Avatar for Pooja J.

Hi to all, I have two listboxes, one is state and another is city. As user changes the state, the value of city listbox w.r.t state shuld changed. I do it with using, but I want to do it when user make a selction from state listbox. //two-list.php [code] <?php …

Web Development php
Member Avatar for manishmannan
0
96
Member Avatar for retareed

I have text in a MYSQL database like such: "2/22/10 - Called Lisa today. She emailed the app. 2/8/10 - No response to previous email. Forwarded again today. 1/27/10 - Emailed Lisa Gregory to see how soon we can start the application process." The thing I'd like to do is …

Web Development php
Member Avatar for retareed
0
98
Member Avatar for visualmonk

Hello, I'm just starting to use PHP after years of working with ASP, so pardon me if this sounds like a very basic question, but how do I get PHP to acknowledge zero (0) in a form field. Whenever the user enters "zero" and hits submit on the PHP form, …

Web Development php
Member Avatar for visualmonk
0
281
Member Avatar for vinumat

when I try running this asp using iexplorer, it does not return anything other than 'Country..... City..... Currency..... Population' as heading. How come it's not connecting and getting the data from the database?? Please help! Thanks [code=vbscript] <% @language = VBScript %> <head> <TITLE>ASP - Country Query</TITLE> <body> <% Dim …

Member Avatar for WebspoonUK
0
153
Member Avatar for dwapayan

Hello Everyone, I am new to ASP.net. I recently developed a application using VS2005 that uses a SQL database. This application contains a Login page Main.aspx. This page redirects to second page after authentication (avlActions.aspx) using FormsAuthentication.ReDirect. This works when i run application from VS2005 and locally on IIS after …

Web Development asp asp.net publishing
Member Avatar for dwapayan
0
563
Member Avatar for phoenix_dwarf

Im doing some stuff in the code behind page and then putting that data into javascript respectively. This javascript is then connected to the asp.net page with a literal control. I.E. [CODE] StringBuilder sb = new StringBuilder(); sb.Append("<script type='text/javascript' src='http://www.google.com/jsapi?key=ABCDEFG'></script><script type='text/javascript'>google.load('maps', '2'); ...SOME MORE CODE HERE.... }"); sb.Append("function createMarker(point, htmlSTR) …

Web Development asp.net google javascript
Member Avatar for phoenix_dwarf
0
596
Member Avatar for sting23

hi im still a beginner in PHP and this is the code i have so far and it only calculates value of two numbers put in manually. I want to generate two numbers and add the values. [code] <form name="form1" method="post" action=""> value1: <label> <input type="text" name="value1"> </label> <p>&nbsp;</p> <p> …

Web Development php
Member Avatar for manishmannan
0
1K
Member Avatar for Monster Killer

I am making my own CMS website and the body content is echoed onto the page however some of the page content is php code but the actual code is echoed out. How can i make it so that it works properly. Code: [CODE]<div id="form"> </div> <h1>Form</h1> <br /> <?php …

Web Development cms php
Member Avatar for jonathanroy
0
207
Member Avatar for dhudnall

Hello, I am very new to .asp and I have been tasked with updating a dropdown box in one of our web applications to include a "blank" field at the top of the dropdown box so that if a matching result isn't found, it will default to a blank value …

Web Development asp
Member Avatar for almostbob
0
139
Member Avatar for cloud09

I have a form that "activates" the submit button; switching a greyed out version that does nothing for the working one, when all the fields are correctly filled in. The problem arises in IE 7 when the submit button is supposed to be activated. The greyed one disappears, but the …

Web Development display javascript
Member Avatar for cloud09
0
133
Member Avatar for gangsta1903

Hello, I am trying to write a simple javascript to read all forms. My ReadForm function works right. I tried it out of ReadAllForms function, there is no problem with it. I think document.getElementsByTagName returns false. Why can this happen? [CODE=javascript] function ReadAllForms() { if (document.getElementsByTagName) var myforms = document.getElementsByTagName("form"); …

Web Development javascript
Member Avatar for PierlucSS
0
203
Member Avatar for loligator

IE tells me there's an error on line 17, which is the onload method of the body tag. So here's the code... [code] <script language="javascript" type="application/javascript"> function startUp() { setFocus(); } function setFocus(){ document.frmSearch.txtSearch.focus(); document.frmSearch.txtSearch.select(); } </script> [/code] And here's how it's called: [code] <body onload="startUp();"> [/code] I tested this …

Web Development javascript web-browser
Member Avatar for loligator
0
2K
Member Avatar for saiprem

Hi All, I am trying to add a an element(Select Box and added a function in onChange) through Javascript, which is working fine in IE6, IE7, FF and Opera. But i am failing in IE8. If anyone has come accross this issue please help me. here is my code [code=javascript] …

Web Development javascript
Member Avatar for Airshow
0
159
Member Avatar for phid2002

Can someone take a look at the code to see where is the mistake because i can't display the 10 records of my database per page [CODE] <% Option Explicit ' ADO constants used in this page Const adOpenForwardOnly = 0 Const adLockReadOnly = 1 Const adCmdTableDirect = &H0200 Const …

Web Development asp
Member Avatar for phid2002
0
121
Member Avatar for whiteyoh

Hi All, Below are two files, one being the index page, and one being the functions page. My problem is when i use a function it just gives me a blank screen. The echo at the top of the index page is simply a sanity check. Do i have an …

Web Development php
Member Avatar for whiteyoh
0
87
Member Avatar for akabir77

I am very new to this and trying to call a method which will update the record depending on the check box user clicks. now my jsp looks like this [CODE] <input TYPE="checkbox" name="<%=as.getAppId()%>" id="<%=as.getAppId()%>" <%=((as.isStatus()==true)?"CHECKED":"")%> onClick="update('<%=as.getAppId()%>')" /> [/CODE] and the scripts [CODE] function update(appId) { var stat = eval("document.getElementById(appId)"); …

Web Development javascript
Member Avatar for akabir77
0
70
Member Avatar for kiyu2keith

How do I exchange data from page to page? for example: on the 1st page I voted for 1 person, when I click submit it will go to the 2nd page that will let you see the output of the vote? I can't seem to do it, as I don't …

Web Development java-jsp
Member Avatar for peter_budo
0
170
Member Avatar for WoW Me Web Girl

im building a clone youtube site and the templates have smarty code every-time i try to add a style to it or even change the bg color of the template i get this error. could someone show me an example on what im supposed to do. and how it should …

Web Development html-css php
Member Avatar for WoW Me Web Girl
0
375K

The End.