I am new to programming and I am working on a web application using JAVA EE, struts, jsp, HTML,
I have a table which shows some statistics and my client wants me to add a feature to pick a back date to see that dates statistics, but I am totally confused.
I had pre built queries which were getting data from oracle database and displaying data on my table on a JSP page. But now I change my query to a prepared statement and I have added a "?" to get a date from user and then replace that and make a query and display data.
First problem is that which struts when you have values to be displayed and they have some sort of problem the table won't even show up and secondly when I try to pick a date and hit submit button it should go make the query and display the table but it is not happening, I am totally lost. I will be grateful if someone can tell me how to solve this problem.
Thanks.
Related
I have a simple GridView that gets data from SQL database on web page load (using custom callback and binding, it lists the info fine, i can change between pages if rows go beyond 15, and i can double click on any page and get the values with JS using the doubleclick event with GetRowValues and GetFocusedRowIndex, and then assigning the values to various ASPxTextBox controls, all works fine...
Until, i do another query/binding on same GridView and i click on the row, i get the old information of when the page loaded, on screen i see the new rows fine, but JS gets the old rows, it recognices the row number fine, but gets the old row from that position
Can anyone post an example of how can i get this to work?
All i need is to fill the grid with simple query, and then on client side, when double click on row, get the info and copy it to text boxes, the grid must be capable of executing different querys without refreshing all the pages content, it should act like its a normal search in a database...
Thanks for the help in advanced, ive searched for the answer everywhere and havent found it, various people have the same problem, but i cant figure out how can i get it resolved using JavaScript and VB
I've written a stock control system for my little business using html/javascript and mysql and although it works I'm not sure i've coded it the right way.
When I run the script, I test $_POST being empty, if so an input field (sku) is displayed and underneath that a (hidden) empty table, and a button which when clicked executes the same script.
Next time in, $_POST is filled, so the script reads a mysql database using the sku entered, and gets the relevant data, un-hides(!) the html table, populates it and displays the data.
I've added more code so that I can modify the displayed data in the html table and then update the database.
Is this the right/recommended way to do it, or should the initial screen be one script and then mysql processing another script, then (maybe) back to the first script to display the data.
Its only me thats using it, but would like to make sure I'm doing it right !
Thanks in advance
There is a website that I would like to pull data from, based on my user's search. The submit button and all inputs would be on my website and the results would be pulled from the website with the data, and have the results shown back on my website, for the user to see. The website that I would like to pull the data from has identical inputs.
Is it possible to connect input text boxes on one website to the input text boxes on another website and have the data requested appear back on my webpage?
Does anybody have any suggestions for doing this? Any ideas? I've never tried anything like this before, so if nothing else, it will be a good learning lesson.
You'll need a data scraper. PHP has Simple HTML DOM Parser: http://simplehtmldom.sourceforge.net/
Or you can use cURL: http://www.jacobward.co.uk/web-scraping-with-php-curl-part-1/
unless you have control over the server of the website you want to fetch data from, no you cannot.
or you can build yourself a HTML scraper .
Now in my jsp page I have number of records come from oracle database.But I want to display limited number of records per time.How do I use pagination for this using jquery and jsp? I want to display 1-10 records at one time in my jsp. After click the next button I want to display my next record set.(11-20). In here values come from database are not fixed. My data table does not contain any headers.So it's not easy to use jquery data tables.How can I do this?
Your question is not very specific, anyway here's an example of what I did when paging the results of a search engine. I've used JSP and jQuery, maybe it can help you understand how to proceed: http://pastebin.com/XG40Vm2D
I have a share point survey. When we responding to the survey, as we know, it will open NewForm.aspx. this page contains a ListFormWebpart in which questions from survey list will be displayed.
Now, i need to add few labels before the questions and these label values should be prepopulated from query string. What i am trying to achieve from this is, i wll created a link
with some values in query string and send to specific users. different users might have different values in query string. Whenever they click on the link, it should open the survey with prepopulated label values along with questions in list.
I am not sure, how to do it. I have tried to add some html control to web part(using share point designer) and through JavaScript i have tried to set query string values. Then i tried to put asp controls and trued. it didn't work. I am trying since last 2 days. No progress. I am using SharePoint 2003, WSS2.0
Can anybody, please help me to implement this solution.
You may find it easier to create a webpart with a custom form that enters data into the survey list.
The survey lists are useful as they are quite flexible, but your solution will likely make it hard to change your list in future. That means that a webpart specific for this survey may be a valid design decision for you.
An issue with your current implementation is that passing values specific to different users through the query string does not give you any guarantee that enterprising users will not change those values.
This may not really be an issue depending on your situation, but a custom control will allow you to query the current user and make decisions that way.
I have written some Java Script for reading query string, parsing and assigning values to controls based on their ControlID. I have used Content Editor Web Part to add this JavaScript to the Existing Survey page. Then this script has done job of prepopulating the fields.