Server overloading
Posted: Mon Feb 05, 2007 3:01 pm
Hi guys,
I am not sure whether the title used is appriopriate to the I have. I am developing a multilingual site. It is a kind of a news site. The problem I have is that my boss wants it to be created in this way that when a user clicks on a word definition of its to be shown in a new window. My first idea was to create a function which will be invoked before the text is displayed(The text is got from a database) and replaces all words which casn be found in our dict table(I am not sure whether I am clean enough so:
We have minister as a word.
Before it is printed all words are checked and this is found in the dict table.
Then we replace it with.
);
The other idea of mine was to insert the HTML in the very insert statement.
I have doubts about which to choose because they both have pros and cons.
If there is a better approach I would be very grateful to experience it so feel free to say what you think.
I am not sure whether the title used is appriopriate to the I have. I am developing a multilingual site. It is a kind of a news site. The problem I have is that my boss wants it to be created in this way that when a user clicks on a word definition of its to be shown in a new window. My first idea was to create a function which will be invoked before the text is displayed(The text is got from a database) and replaces all words which casn be found in our dict table(I am not sure whether I am clean enough so:
We have minister as a word.
Before it is printed all words are checked and this is found in the dict table.
Then we replace it with
Code: Select all
<a href="javascript:">minister</a>);
The other idea of mine was to insert the HTML in the very insert statement.
I have doubts about which to choose because they both have pros and cons.
If there is a better approach I would be very grateful to experience it so feel free to say what you think.