File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IDEA: web-based JSP editor for final markups...

 
Ivan Jouikov
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I just popped an idea in my head: wouldn't it be nice to have a webapp/dev directory (just like webapp/admin), where you could do some markups to your JSP after the app is deployed (so you don't have to change stuff on your computer and redeploy it, or ssh to the other machine - its nasty)... The basic outline of the editor is:
____________________________________________________
Top frame: This is where you see the page
____________________________________________________
Bottom frame: This is where you see its source code in a big ass textarea with a button such as modify
____________________________________________________
Both top frame and bottom frame are no problem to do... bottom one is simple file operations.
However, there's a problem. I want it to be so that whenever you click on a href in the top frame, the bottom frame also gets signaled to move to that page and do its thing...
So, is there anyway to signal from the top frame whenever you click on a href without modifying anything in the page itself?
Thank you, your help is greatly appreciated
Ivan
 
ib idris
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I don't really understand what you mean by signalling. So on top you have some JSP as a sort of preview and down the text of the JSP in a textarea. I see 1 problem. What happens if your JSP has a textarea wouldn't it get cut off in your big ass textarea. Nesting textarea in HTML forms is not allowed as far as I know. Or maybe I misread your intentions.
http://galileo.spaceports.com/~ibidris/
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, whatever text's in textarea isn't interpreted as HTML
 
ib idris
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
yes but the textarea tag itself is an exception. Try nesting text areas.
http://galileo.spaceports.com/~ibidris/
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ANYHOW
that's not the problem I am gonna face.. I will solve it by simply changing textarea to another tag. What I was asking is HOW can you send a message from 1 frame to another. Please dont chagne the subject this time.
 
ib idris
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes,
ok how about a href="blabla" onLick="doYourTHing(params)"
doyourthing(params)
{
parent.bottomFrame.location.href = params;
}
Is that the idea?
http://galileo.spaceports.com/~ibidris/
 
Ivan Jouikov
Ranch Hand
Posts: 269
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, except that I explicitly asked for a way where you wouldn't have to modify anything in the web page you are viewing.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic