Topic awaiting preservation: editing text (Page 1 of 1) |
|
---|---|
Bipolar (III) Inmate From: |
posted 01-20-2006 16:28
ok, what i want to do is edit a piece of text for example: |
Lunatic (VI) Inmate From: under the bed |
posted 01-20-2006 18:18
While I can't answer your question, it seems important to provide some info - |
Paranoid (IV) Inmate From: Florida |
posted 01-20-2006 19:37
The whole idea is silly. What is HTM? |
Bipolar (III) Inmate From: |
posted 01-21-2006 17:27
well its not really practical just as a sort of techincal exercise |
Maniac (V) Mad Scientist From: :morF |
posted 01-22-2006 09:41
So, basically you want to make sure that no matter what page they go to on your site, it always loads your frameset with this page they requested *inside* the framset? |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 01-23-2006 01:58
I've seen people use this technique to hide their source. Is that what you're trying to do here? If so, could you explain why? I never understood why people felt it necessary to hide their HTML. |
Maniac (V) Mad Scientist From: :morF |
posted 01-24-2006 05:56
*scratches his chin* |
Bipolar (III) Inmate From: |
posted 01-24-2006 19:27
ok, well it looks like i didnt make this clear enuff, i want to do it in javascript, its not mod rewrite i have the problem with, see i have that set it up so that index.htm?downloads.htm gives me the index page with the downloads.htm in the frame, but i want to make it so that downloads.htm would make the same thing come up but of course if the adress is not index.htm?downloads.htm it would not work so my next idea was to fetch the bit that said downloads.html, cut the l off the end and then make a frame with that in |
Obsessive-Compulsive (I) Inmate From: |
posted 01-24-2006 20:09
You would still have to do it with mod_rewrite, if you want it to work consistently and without catastrophic failure. There is no reason to use Javascript. Sounds like you're not using mod_rewrite properly, because it would be more effective for what you're trying to do instead of this index.htm?downloads.htm work. Handle that with some rudimentary PHP or other server-side language. |
Maniac (V) Mad Scientist From: :morF |
posted 01-26-2006 06:25
Well, it also begs the question of why you're using frames at all... my knowledge of them may be rusty (since I don't use them at all if I can avoid it) but surely for every page that you want to be loadable as the first page people may go to on your site you need ot have a seperate frameset, and for each page which people can just navigate to within your site then you can just set the target attribute in the anchor tag to the correct fame name and let it load it where you tell it to? There really is no reason to use frames, though... if you're looking to only have to edit one page to make it change across your site then you really should be using the above PHP method, or some other server-side solution like SSI |