|
I am using JAVA/JSP as front end and oracle as back end
Thanks,
angel
|
|
|
|
|
I did something similar to that. Kinda. In your database, make columns for day of the month, month of the year, and year. If you are specifying time as well, add a column or two for that. Each note you want to post is its own record as opposed to having all the notes for that day or whatever in one record. It makes it a lot easier that way. Then in JSP, figure out how you want them grouped, whether by day or whatever and design your query to gather everything for that group based on day, month, year, and time.
Unfortunately, I don't know JSP, so I can't give you exact code, but if you want more specifics on the theory I could send some pseudo code your way.
-Jim Kroschel
jim@kroschel.net
|
|
|
|
|
Dear All,
There is a Datatable with 20 records, not all records need to view on Datalist so I use ItemDataBound event to avoid some records, but the datalist render the cell for that record with no information.
Is there a way to also avoid rendering the container cell for avoid record.
Thanx for helping me...
|
|
|
|
|
I am not sure but I would advise you filter out the records you don't want displayed before databinding. Performance for 20 records may be fine but give it a couple hundred or thousand and you will have a problem on your hands.
regards,
Paul Watson
South Africa
The Code Project
|
|
|
|
|
I am trying to connect to an Oracle database from my ASP page. I am trying to find what all is needed to do this and what the connection string should look like etc. I will appreciate any help
Thanks,
Bill
|
|
|
|
|
|
Hey all -
I'm trying to display an xml document in a DIV. After retrieving the data, I do a replace for all "<" and ">" in the original xml text.
I'm now setting the result to the innerHtml property of a div but nothing displays. Can anyone lend some insight?
*->>Always working on my game, teach me
*->>something new.
cout << "dav1d\n";
|
|
|
|
|
i have set the source of an IFRAME to some xyz.xml file. XML gets displayed properly but i have a flickering problem.
If i open any other IFRAME on top of that, there is lot of flickering. The IFRMAE which is on top just contains a simple html page. If i try to move that IFRAME or even enter something in textarea on html page, there is lot of flickering.
Can anyone tell me what is the cause of flickering and how can i prevent it???
Any other tips?
Muhammad Shoaib Khan
http://geocities.com/lansolution
|
|
|
|
|
Post some of the main code and we can help you out. The normal cause for this is complexity, IE can get flaky with complex HTML.
regards,
Paul Watson
South Africa
Michael Dunn wrote:
"except the sod who voted this a 1, NO SOUP FOR YOU"
Crikey! ain't life grand?
|
|
|
|
|
Ok first of all about my browser and system details . Browser is IE 6.0 and system is P4 2.8 GHz with 512MB RAM.
Please note that i am not opening XML and HTML pages in seperate "Browser windows". I have a main browser window, from which i open an IFRAME whose source is set to a very simple XML. it is
xyz
Then i open another IFRAME on top of previous IFRAME in which i load a simple HTML page. HTML page contains just two text inputs and two buttons. Thats it.
When i move this IFRAME containing HTML on top of XML there is lot of flickering. BUT if i move it on some other IFRAME with HTML there is no flickering.. to me it seems like IE bug .. may be i am wrong..
Please now tell me what do u suggest?? how to prevent this flickering??
Regards
Shoaib Khan
|
|
|
|
|
Hi All,
Im trying to come up with a definitive listing of why a good directory structure is important in web development. Are there any good articles, posts, standards out there that reflect this. Your thoughts on the matter would also be greatly appreciated. Apart from site remodelling and future expansion can anyone suggest other imperative reasons for ensuring that directory structure conform to some sort of standard. Thanking you in advance.
"Im cold and there are wolves after me"
|
|
|
|
|
I am a newbie, so this is probably very basic.
I created a small web application and rather than using VCS (version control software), I simply created different folders as I made changes to the web application. I ended up with a series of folders such as WebApp1, WebApp2 etc.
This simple approach was working fine and was storing the different versions, until today. Now every folder contains the same code.
I think this may have happened because I opened up two versions accidentally in VS.
Is there a way that I can simply use folders and make sure that they do not all change as I change code in another?
Cheers,
J
|
|
|
|
|
hi all, i have this problem, i'm creating a control from the HTML Table element:
* I need to hide columns and show others based on client demand.
* Sure i want to do all this on the CLient-Side.
* I do this by hiding all the cells for the required column using the "style.display = 'none'" code.
* The above code works fine but when the column contains lets say about 100 cells or even much more this process take a very long time may be a minute so imagin that i need to hide more than one column.
* I think the problem is with the rendring time that is spent on hiding each cell and render then hide a cell and rerender.
* What i think that i need is a way to stop rendring until i set all the cells to the style.display = 'none' then render only once.
* This method is well known in languages like C++ and C# and many others but i don't know if its available in JavaScript.
if anyone know how to sole such a problem please help.
thanks for reading.
|
|
|
|
|
So you've got something of a spreadsheet, which you wish to allow client side interaction. Users should be able to hide/display columns???
The problem your facing is in rendering times?
The way your doing this now is setting each cell's display to none or block???
Well if your doing what I think your doing...your probably right about rendering times. If your iteratively hiding each cell, then the layout engine is recalculating and rendering the document each time you change a cell. So I think it's probably recalculating and rendering each iteration, so instead of doing this iteratively, why not just hide a single element which contains the cells???
<table>
<tr>
<td>Column1</td>
<td>Column2</td>
<td>Column3</td>
<tr>
<tr>
<td>Column1</td>
<td>Column2</td>
<td>Column3</td>
<tr>
<tr>
<td>Column1</td>
<td>Column2</td>
<td>Column3</td>
<tr>
</table>
If you use a table layout like that above, then my initial suggested method won't work, cuz you can store columns in a seperate element. So I then suggest, giving each column the same ID and calling something like:
document.getElementById("column_1").style.display='none';
I'm thinking if each column TD element has the same ID, then when you hide it, the browser should recognize that your hiding any elemnt whose ID is somevalue and should only recalculate and render once...
Just a suggestion
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
it seems a gr8 idea in the begining but when i try it here are the results:
1. the TD doesn't support the "name" attribute, so you can't get the TD's with same name in the getElementByName function as a collection.
2. if you specify the same "id" for the cells of one column and call getElementById this function return the first element with the specified id.
anyway thanks for your help and if you hava any suggestions please tell me.
|
|
|
|
|
Hercules01 wrote:
if you specify the same "id" for the cells of one column and call getElementById this function return the first element with the specified id.
So it only removed the first row in that column???
If thats the case...oh man...I dunno...the only other thing I can think of would be fairly intense, but I would think much faster than setting each row to display: none .
What I would suggets now is copy your entire table's innerHTML into a variable.
Then as a user hides a column, you could use regex to quickly strip out the desired columns and change the innerHTML to that of a missing column.
Not the prettiest of hacks, but I think it should work.
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
hey man, just wanna tell u to check the <col> tag for the table you add it after the <table> tag like this:
<table> <col> <col>
<tr>
<td></td>
<td></td>
<tr>
</table>
|
|
|
|
|
Hi i'm adding a shopping cart to a website i'm making for a nice lady http://www.honeymuffinmix.com and the shopping cart works by putting the item name in the URL and it sends it to another website which handles my cart. My question is there is a page where you buy gift packages with choices of what kind of honey mix you want. So to do that i want a drop down menu witch the choices and that would be a variable that could be inserted into my URL to be sent to the shopping script. Sadly i have no idea how to do this since i'm a C++ guy and i mainly deal with design of websites. So any help would be great below is the page i'm working on getting the menus on
http://www.honeymuffinmix.com/giftpackagesnextgeneration.htm
|
|
|
|
|
You'll need to use Javascript.
<select onchange="location.href='http://www.some_shopping_cart_webpage_cart.asp?itemid=this.options[this.selectedIndex].value'">
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Is this possible?
I have tried:
window.event.cancelBubble = true;
window.event.returnValue = false;
Doesn't work
Which doesn't surprise me really...
Can I somehow disabled scrollbars dynamically at runtime?
I know noscroll or scroll=no inside the body of a document prevents scrollbars from appearing, but I need scrollbars, just not for this particular second of operation.
CHeers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Does this solve your purpose?
<table>
<tr><td>
<a href="test.html" onclick="return false; ">Test</a>
</td></tr>
</table>
Ranjan Goyal
|
|
|
|
|
How can I cause a file download using the browser?
I have tried http:// and ftp:// but ftp doesn't work at all...something about a gateway. I don't really care!!!
http:// downloads files only if it doesn't have a registered file viewer which can treat a browser window as an container. For example PDF files don't download, they load into adobe immediately.
I am assuming this is done on the server side of things then...
Do I have to send headers with the file mime-type as some strange mime-type that IE won't automatically try and open the file's associated reader, etc...?
What mime-type do I use? and what other header do I send so the browser knows what file to download...?
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
The way I do it is via perl. It can be done in any server-side language, however. You have to set the mime type to application/x-download and then set a content disposition as well. In perl the code looks like this:
print "Content-Type:application/x-download\n";
print "Content-Disposition:attachment;filename=$filename\n\n";
where $filename is the name of the file you are forcing a download.
In other languages, you would have something similar, though this is the main concept. Do a search for the server-side language you would be using and keywords like "force download" or something like that and you will see examples of code kinda like this.
|
|
|
|
|
Cool...those look like the headers I need.
I wasn't sure if thats how you did or not, so a second answer is awesome.
Thanks
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I want to display a webpage within a DIV or SPAN - is that possible? For example, I want a DIV region on my parent page that loads Google into it - sort of like frames, only I need custom sizing and positioning beyond what frames are capable of.
|
|
|
|