Hi,
i created 2 frames left frame is tree and second frame is when i click on any link on tree i will get following html pages on right frame
and on tree there is submit button name configure html when i click on any link on left frame and then clcik on this button it will open a form on right side frame and there
Relative path to directory or file:text field here i can mention the path of any html and if i save then given name will relate to the link selected
now problem is eveyrtime i have to go on some tool called edith3.0 ther is check box called HTML-Informationen and i have to check then clcik on save to get html on my form and i want to avoid this.as i dont no how it works
anybody know any simple script or link so that when i clcik on button configure html and save whatever the file i will get on link
If I understand what you are asking correctly, one posible way would be to add some javascript to the links that sets the hidden field in the form to the correct path for that link, thereby priming the form for when the button is pressed.
Once the button is pressed submit the form to a PHP script that can read the corresponding html file from disk on the server and output its contents into the edit control.
I see that this function exists behind some form of admin protection, so you may be ok, but I should still mention that this method may represent a security risk unless you are very careful about the paths passed to your script (hacker could use the script to access files outside the web root).
If for any reason you cant perform this server-side, then it should be possible (on ie5+ at least) to read the actual content of the right-hand frame using javascript (document.body.innerHTML I think) when the button is pressed and pass that into the edit page.
Bookmarks