I would really appreciate if somebody could send me a working example where menu <li> items are on the left and floating DIV windows open as each <li> item is clicked.
I removed win.show() before function openContentWindow and the window still does not open. I am using IE7. At the bottom left corner, I see "Error on Page". Tried this in Mozilla Firefox (the latest version as of yesterday). No luck there either. Once again, I would appreciate if somebody could whip up a simple working example and I can take it from there. Thanks everyone. - SG -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sébastien Gruhier Sent: Friday, January 19, 2007 2:15 PM To: [email protected] Subject: Re: [Javawin] DHTML ... Help ... HI If you want to open a window on a click, do open it before:) remove the line win.show(); before function openContentWindow seb On Jan 19, 2007, at 7:36 PM, Sanjay Gowda wrote: > Sorry, I should have clarified this as follows: > > I would like to modify the website such that if a link is clicked, I > would like it to be opened in a floating window as seen at this site: > http://prototype-window.xilinus.com/samples.html > See sample 2: where the RubyOnRails.com site gets opened in a window. > > If somebody could quickly give me an example on how to do it or help > me correct the code below, I would really appreciate it. > > Here is a sample window that I was trying to write: > > <html> > <head> > <link href="default.css" rel="stylesheet" type="text/css" /> <script > src="prototype.js"></script> <script src="window.js"></script> </head> > <body> <div id="content" style="float:left;width:1000px; > height:800px;background:#DDDDDD; color:#000; font-size:12px;"> </div> > <script> var win = new Window( 'content_popup', { > title: "Terms and Conditions", > top:70, left:100, width:300, height:200, > resizable: true, url: "http://www.google.com/", > showEffectOptions: { duration: 3 } > } > ); > win.show(); > > function openContentWindow() { > contentWin = new Window('content_win', {className: "darkX", > resizable: false, hideEffect:Element.hide, showEffect:Element.show}) > contentWin.setContent('content', true, true) > contentWin.toFront(); > contentWin.setDestroyOnClose(); > contentWin.show(); > } > </script> > <br> > <li> <a href="javascript:win.show()">Show Window</a> </body> </html> > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:javawin- > [EMAIL PROTECTED] On Behalf Of Abel Braaksma > Sent: Friday, January 19, 2007 2:00 AM > To: [email protected] > Subject: Re: [Javawin] AJAX ... Help ... > > Sanjay Gowda wrote: >> Hi List, >> >> This might be totally inappropriate. If so, I apologize. >> >> I am maintaining this website: http://preuniversity.grkraj.org/ for >> my dad (who is a teacher in India teaching Masters degree students). >> I came across your site and am very interested in incorporating AJAX >> into my dad's website. I have limited HTML coding experience. > > Unfortunately, AJAX has little to do with HTML coding (if there is > such a thing). It is an advanced concept for retrieving dynamic > content from a remote server without the need for refreshing the page. > I've looked briefly at your site, but I see no reason whatsoever why > you would want to go that way. Your site is a traditional content site > and is best helped with some graphical design and new static HTML > pages. > > If you want to go from static to dynamic, AJAX is neither the choice > for you. What you need then is a good CMS (Content Management System). > But considering the current content, it is probably better to stick to > old fashioned static pages. > >> >> Can you please help me (with a sample web page) on how I could >> incorporate your wonderful AJAX code into my dad's website? > > If you want to go this way anyway, then the first thing to find out > is: > why you want it and what you think you can get out of it; i.e., what > problem you think you can resolve by using AJAX technologoy. The > second thing to do is to find yourself a tutorial on JavaScript, XML > and XMLHttpRequest. Using AJAX technology is pretty advanced stuff. > PWC (Prototype Windows > Classes) > makes life easier (but is itself not per se about AJAX, it is just a > beautiful set of classes that brings a windowing sub system to your > RIA (Rich Internet Application) or other web application), but still > requires you to understand what you're up against. > > >> Anything you can do to help would be deeply appreciated. Tips, >> suggestions would be deeply appreciated. > > What you really need is a designer, an (X)HTML and/or DHTML tutorial, > and someone who can help you with digitizing your pictures (try GIMP > if you need free software). Also, if you don't want to code it by > hand, there are numerous excellent page design programs available > (literally thousands of > them) that can make your life easier. > > > Good luck with your website, > > Cheers, > > -- Abel > > _______________________________________________ > Javawin mailing list > [email protected] > http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com > > > _______________________________________________ > Javawin mailing list > [email protected] > http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com _______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com _______________________________________________ Javawin mailing list [email protected] http://mail.xilinus.com/mailman/listinfo/javawin_xilinus.com
