Quote:
Originally Posted by Mikemc
Hmm.. A little over my head but I checked the file out anyways. I don't understand what needs to be in 'newPage.htm' to recieve and print the new text.
I recall I've seen a way to output temporarly to the window for copy-paste. If I could get it to simply display all the finished html, that would still be a big help.
Thanks for your reply too  .
|
nothing needs to be in the newpage file, it is written with the test in the text box. in hindsight it would be better to have named the example newpage.txt instead....
im ot sure exactly what kind of setup you are using, and what you looking to do with javascript.
in firefox you can highlight a selection and right-click "view selection source" to see the updated code. you can click on the page;s bacground first, and then press <CTRL>+<A> to select all, then repeat the right-click v.s.s. thing to get a view of the whole, current page.
if you are looking to bypass the template maker and dump html files, you could grab a rendered page using the above method for ajaxified pages, of the save page as for regular pages, and save it as a text file.
you would then edit the html and replace the template areas with identifiers. i like "**title**" style placeholders, but you can use anything.
javascript could then read in the file and replace **title** with textbox1.value for instance. the result could be saved or displayed in a textbox to paste and save.
if you could describe your situation/goals in a little more detail, i can likely be a lot more useful.