Riseykins Posted June 24, 2008 Share Posted June 24, 2008 I'm creating a script and I can get it to show a preview, but I'd like it to show a live preview. Here's an example: http://mygen.co.uk/index.php?page=create I know that this is easy to do, but just don't know how to do it! If anyone can help me out, I'd appreciate it. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/ Share on other sites More sharing options...
Riseykins Posted June 24, 2008 Author Share Posted June 24, 2008 This might be Javascript, actually. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-573588 Share on other sites More sharing options...
Ninjakreborn Posted June 24, 2008 Share Posted June 24, 2008 It depends on what your trying to do. So you want to have the visitor work on something and then have a way to preview what they were doing before submitting? What are they going to be working on that they need to preview? Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-573590 Share on other sites More sharing options...
DeanWhitehouse Posted June 24, 2008 Share Posted June 24, 2008 It looks like ajax or maybe JS Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-573601 Share on other sites More sharing options...
Jabop Posted June 24, 2008 Share Posted June 24, 2008 It looks like ajax or maybe JS Lol. Anyways, it's JS. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-573609 Share on other sites More sharing options...
Riseykins Posted June 24, 2008 Author Share Posted June 24, 2008 http://burningviolet.com/commentgen.php This. The page is totally unfinished, so ignore that. But you will get the general idea. There will be a code displayed to copy and paste at the end, too. But I've not added that yet, though I know how. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-573611 Share on other sites More sharing options...
Riseykins Posted June 24, 2008 Author Share Posted June 24, 2008 Can someone chuck this in the Javascript help subforum? Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-573634 Share on other sites More sharing options...
Riseykins Posted June 27, 2008 Author Share Posted June 27, 2008 Lumpy bumpy. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-575608 Share on other sites More sharing options...
DeanWhitehouse Posted June 27, 2008 Share Posted June 27, 2008 If it's a JS question bump in the JS forum, not this one. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-575645 Share on other sites More sharing options...
dannyb785 Posted June 27, 2008 Share Posted June 27, 2008 This is pure js. Basically, on each input form, you have an onBlur='set_properties(this.value)' and your set_properties function can do one a few things that will change the properties of the current page. Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-575648 Share on other sites More sharing options...
DeanWhitehouse Posted June 27, 2008 Share Posted June 27, 2008 I might be able to help. I now JS, add me on deanwhitehouse6@hotmail.com Quote Link to comment https://forums.phpfreaks.com/topic/111738-live-preview/#findComment-575650 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.