Fadion Posted September 3, 2007 Author Share Posted September 3, 2007 Pretty good example, but still the problem with "document.getElementById('txt1').value" as it will return the original value of the textarea Quote Link to comment https://forums.phpfreaks.com/topic/67707-solved-preview-button/page/2/#findComment-340957 Share on other sites More sharing options...
teng84 Posted September 3, 2007 Share Posted September 3, 2007 but you can remove those can you tell me what exactly you want? Quote Link to comment https://forums.phpfreaks.com/topic/67707-solved-preview-button/page/2/#findComment-340962 Share on other sites More sharing options...
Fadion Posted September 3, 2007 Author Share Posted September 3, 2007 I explained it several times but guess its a bit complicated :S. Think of the preview button here in phpfreaks, but it doesnt preview the text in the same page, but in a new window. The text to be previewed is in a textarea converted to a tinymce editor. The text value is filled with some data from the database (which actually are texts and formatting stuff for articles) and the user can make further editing to it. I want him to preview how the edited article will look on the site before actually submiting the changes. Does it make sense now? Quote Link to comment https://forums.phpfreaks.com/topic/67707-solved-preview-button/page/2/#findComment-340972 Share on other sites More sharing options...
teng84 Posted September 3, 2007 Share Posted September 3, 2007 Look I cant give you the exact output you want but it acts just what you need whats the problem with that you just need to modify and add some stuff there to fit your needs. you said you want a code that opens a new window for preview will it does? if you think this sample cant help you as well as ajax then theres no other way, leave this task and sleep LOL ;D for sure you dont want the page to refresh just to have this new window!!! SORRY thats all I can offer GUD LUCK Quote Link to comment https://forums.phpfreaks.com/topic/67707-solved-preview-button/page/2/#findComment-340977 Share on other sites More sharing options...
Fadion Posted September 4, 2007 Author Share Posted September 4, 2007 Yeah lol, probably im going for an impossible approach. Right now i made it that when preview is pressed the form posts and shows a message "the preview page is generated. click this link to view it" and opens up the window. Its the best thing i can have for now. Thanx for the help anyone. Im marking this as solved, as im aware its something pretty difficult. Quote Link to comment https://forums.phpfreaks.com/topic/67707-solved-preview-button/page/2/#findComment-340980 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.