Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~28.9K People Reached
Favorite Tags
Member Avatar for raghujosh

I have a page which does an AJAX call and loads an entire page. The page that gets loaded has some Javascript. The javascript works on page by itself when loaded, but when its gets loaded by AJAX, the Javascript does not work. I dont know what I am missing. …

Member Avatar for MMSWEBSD
0
5K
Member Avatar for raghujosh

How can I pass multiple values from a JSP to a servlet using an hyperlink. Following is my code [CODE]<div style="width:500px;height:20px;border:2px solid blue; padding-top:25px; padding-left:40px; padding-right:20px; padding-bottom:10px;"> <jsp:include page = "/Alphabet.jsp"/> </div> <a href = "cart.jsp"><img src="shopping_cart.jpeg" width=50 Height=75 alt="Shopping Cart" border="0" style="float:right;"></a> <%@ page import="com.classes.chemical.*, java.util.ArrayList" %> <td width …

0
132
Member Avatar for raghujosh

I have a JAVA method that executes the following query to SQL server database SELECT [CHEMICAL_NAME],[CHEMI_UNIT],[PRICE],[VENDOR],[CATEGORY]FROM [RPS].[dbo].[Chemicals]where CATALOGNO = '" + catNo+"' ;"; Following are the column names of the database table CATALOGNO, CAS_NO, CHEMICAL_NAME, CHEMI_UNIT, PRICE, VENDOR, CATEGORY, I get the above mentioned error "com.microsoft.sqlserver.jdbc.SQLServerException: The column name CATALOGNO …

Member Avatar for debasisdas
0
150
Member Avatar for raghujosh

I am outputting the contents of a product from a product object(containing catalog no, product name, vendor, price, quantity(a textbox) and a checkbox(to select the product)) as a tabular display. When a user checks a checkbox(indicating the product checked), I get the values into a servlet. However, when I have …

Member Avatar for raghujosh
0
561
Member Avatar for raghujosh

What would be a regex pattern for the following ' and ® in Java. I have tried the following but have not been successful 1.&#[0-1][0-1][0-1] 2.&#\d\d

Member Avatar for Ezzaral
0
64
Member Avatar for raghujosh

I have a google maps application which has an address text box. When we type in the postal address, it gives the corresponding latitude and longitude as a pop up info window on a google map. All i want to do is to be able to get the latitude and …

Member Avatar for Airshow
0
4K
Member Avatar for raghujosh

In some cases of HTML cleaning, I would like to retain the text enclosed between the tags(which is the default behaviour of Jsoup) and in some cases, I would like to remove the text as well as the HTML tags. Can someone please throw some light on how I can …

0
82
Member Avatar for raghujosh

I want to be able to match a HTML tag in a given string. The string could be like this [CODE]<a href = "http://learnmore.com">Learn </a>. [/CODE]I have a replace function that replaces the HTML tag with whitespace when I hard code the tag, but I want a regex pattern that …

Member Avatar for raghujosh
0
171
Member Avatar for raghujosh

I want to create a simple 2 frame page in which the left bar will have links to the content on the right. If I click Frame A, the right fluid content will change to frame A, but the left menu will be fixed. This is the code in HTML. …

Member Avatar for raghujosh
0
118
Member Avatar for raghujosh

I am trying to do some simple form validation in a JSP. But the javascript just does not work....as if its just not there. Dont know what is amiss. Here is my code [CODE] <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> …

Member Avatar for Airshow
0
1K
Member Avatar for raghujosh

I have an application which accesses a catalog of items which can then be added to a cart. When a user selects the item(s) which could be "n" number by checking a checkbox and clicking the "Add to cart" button, the data has to be posted to a cartservlet. I …

0
53
Member Avatar for raghujosh

How can I set the value of a textbox to the user entered value(it's a number). [ICODE]<input type = "text" name = "somename" value = "">[/ICODE] User enters 3 in the textbox The code should transform to [ICODE]<input type = "text" name = "somename" value = "3">[/ICODE]

Member Avatar for twiss
0
101
Member Avatar for raghujosh

I have a dropdown box which should display an appropriate text box only when a particualar option is selected. Currently, the textboxes are displayed all the time. I do have a Javascript function that works for 2 options(hides always and displays only when the correct option is selected). But I …

Member Avatar for twiss
0
191
Member Avatar for raghujosh

I have a string [CODE]$var1 = colors<select><option value = 'blue'></option></select>[/CODE] I can get the value colors as a string with this statement [CODE]$needle1 = "<select>"; $result_string1 = substr("$var1",0,strpos($var1,$needle1));[/CODE] [CODE]echo "$result_string1";[/CODE] will give me [CODE]colors. [/CODE] Then I want to get everything between <select> and </select> so I use the following …

Member Avatar for twiss
0
433
Member Avatar for raghujosh

I have a string "<select><option value = 'LB1'></option></select>" What I want to do is replace only the <select> with <select name = "somename">. Currently, i have a preg_replace statement that replaces the </select> statement also. How can I prevent this. My current code is $string = "<select><option value = 'LB1'></option></select>" …

Member Avatar for diafol
0
208
Member Avatar for raghujosh

I need a string appended to a variable. [CODE]$name = "app200.php"; $string = <form name = "$name" method = "post"> echo "$string";[/CODE] The result I need is [CODE]<form name = [B]"app200.php"[/B] method = "post">[/CODE] But I am not able to echo the string this way. Any help. Thanks

Member Avatar for raghujosh
0
150
Member Avatar for raghujosh

I have a string [B]$initial_string = "<input type = 'checkbox' name = 'cb[]' value = '[a-zA-Z]'>"[/B] In this I want to [B]match the letters 'cb'[/B] and [B]replace it with '1cb'[/B]. The final string should look like this [B]$final_string = "<input type = 'checkbox' name = '1cb[]' value = '[a-zA-Z]'>"[/B] My …

Member Avatar for raghujosh
0
125
Member Avatar for raghujosh

I am doing a preg_replace on a string and the replacement contains a count variable that needs to be placed inbetween the pattern. But I am having difficulty doing that as the count is taken as a pattern and not as a count variable. Here is my code. $count = …

Member Avatar for vibhaJ
0
120
Member Avatar for raghujosh

How can we establish an or condition in a regex pattern. I would like to match the following in a string ">" OR "/>". How can I do that using regex?

Member Avatar for vibhaJ
0
80
Member Avatar for raghujosh

I have a Javascript function that allows the display of a textbox upon selecting an option from a dropdown menu. In my case when a user selects listbox as the option, the text box appears. I want the same thing to happen when another option (checkbox) is selected. when I …

Member Avatar for raghujosh
0
6K
Member Avatar for raghujosh

I have a page on which I have 2 dropdowns. Both are similar. I have a piece of code that whill make a textbox appear if we select "list Box" as the option in the drop down. But for some reason, the first dropdown works fine, but for the second …

Member Avatar for raghujosh
0
2K
Member Avatar for raghujosh

I am trying to print a label and a textbox together in a HTML file that I am trying to write using fopen, fputs in PHP. For some reason the output is just a text box and not the label along with the textbox. This is the piece of code …

Member Avatar for ko ko
0
379
Member Avatar for raghujosh

Is it possible to read array variables one by one in a numeric array in PHP? I have an array that I need to read each element and depending on the element, do something else. But I am finding that there are no functions to read each element of a …

Member Avatar for diafol
0
93
Member Avatar for raghujosh

Are dynamic insert statements possible in MySQL. I am creating an application that generates a database driven web application with minimal human intervention. Briefly, a user is allowed to build an HTML form(by adding HTML form elements) on a web portal and then he/she submits the form. Once the form …

Member Avatar for smantscheff
0
1K
Member Avatar for raghujosh

I have an HTML page(PAGE 1) that allows a user to select an HTML form element, and get it displayed on the next page(PAGE 2) when the user clicks "next". What I want to do is on the display page(PAGE 2), be able to display the newly created HTML form …

0
63
Member Avatar for raghujosh

I want to pass the checkbox values from my form to another PHP file upon clicking the next hyperlink. But I am unable to do so. I have javascript in my form which checks that only one checkbox is selected. To use this javascript, I need to name all my …

Member Avatar for raghujosh
0
1K
Member Avatar for raghujosh

I have a simple login module wherein I enter login info to a database. After that, I use another file, loginauth.php which validates the login info. However, I am getting the else statement executed. Can somebody point out what's wrong. [CODE]<?php session_start(); if (isset($_POST['userid']) && isset($_POST['password'])) { $userid = trim($_POST['userid']); …

Member Avatar for raghujosh
0
113
Member Avatar for raghujosh

I am developing an application wherein I have a JSP page with clickable links to all the 26 alphabets. In my database, I have data starting with all the alphabets. The way, I have(want to) structure the application is something like this. I click a alphabetical link, say A, it …

Member Avatar for raghujosh
0
285
Member Avatar for raghujosh

I want to get the list of items from a database as a Java resultset. When I use the following SQL statement it works perfectly fine [CODE]SELECT First_Name FROM dbo.Names where First_Name LIKE 'A%';[/CODE] However when I pass it as a parameter, it does not work I have tried a …

Member Avatar for raghujosh
0
139
Member Avatar for raghujosh

I am developing a form(PHP) that will accept some data. The data will be displayed on a web page. However, before it is displayed, a moderator of the site has to grant permission to display the data. The way it works 1) A user logins to the site and enters …

Member Avatar for vaibhav1983
0
97