Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Javascript: How Do I Create Embedded Pop-up Windows?
miCRoSCoPiC^eaRt...
post Mar 8 2007, 10:48 AM
Post #1


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



The post title summarises my query - how do I create pop-up windows that are embedded inside a page?

Broadly, there are two kinds of JavaScript pop-ups.. one is that ultra annoying one, which pops out a new instance of a browser window and displays something there (usually an ad) - made infamous by all the warez and porn sites.

Second one, which has come to be quite well-known of late is the kind you see in recent versions of WordPress (in the Visual Editor) as well as LightBox based galleries. Here a small window (or rather a div) pops-up embedded in the middle of the page. It's a floating div that can be dragged around anywhere. A similar notification window can be sighted even in the recent versions of IPB when you receive a new PM. This is exactly what I want to create - but I dont have no clue how to go about it.

I tried searching for "embedded" "pop-up" etc. but always got tutorials for silly JS popup windows...

Can anyone help shed light on this? And don't ask me to study the lightbox code - I already did. But my JS is so pathetic I couldn't do much with it. If you can point me to a good tutorial that shows you how to do this it'll be great smile.gif

Cheers,
m^e
Go to the top of the page
 
+Quote Post
turbopowerdmaxst...
post Mar 8 2007, 12:03 PM
Post #2


Premium Member
Group Icon

Group: [HOSTED]
Posts: 367
Joined: 16-February 06
From: Kolkata, India
Member No.: 11,322



My efforts had gone in vain as well. I first noticed those in the Konetera powered in-text ads. I tried to get some hold on their cryptic codes but wasn't successful, more so because of the frustration the process involves.
Dropping the philosophical note, I would give it one more try. I'll keep you updated on the progress.
Go to the top of the page
 
+Quote Post
turbopowerdmaxst...
post Mar 8 2007, 12:17 PM
Post #3


Premium Member
Group Icon

Group: [HOSTED]
Posts: 367
Joined: 16-February 06
From: Kolkata, India
Member No.: 11,322



One thing I can't understand, is which function is invoked in the javascript once we link it in our HTML page.

For Example, the Kontera code includes the following text:-

CODE
<script type="text/javascript" SRC="http://kona.kontera.com/javascript/lib/KonaLibInline.js"></script>


There is no call to any of the functions contained in the KonaLibInLine.js file anywhere on the page.
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Mar 8 2007, 12:28 PM
Post #4


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411



Dunno about the Kontera ads - but I did find a solution that suits my purpose well, i.e. to create Modal Pop-up boxes using CSS and some JS.

There's a short tutorial which shows you how to do it pretty well... Here you go: http://www.sitening.com/blog/2006/03/29/cr...and-javascript/
Go to the top of the page
 
+Quote Post
faulty.lee
post Mar 8 2007, 01:24 PM
Post #5


Premium Member
Group Icon

Group: [HOSTED]
Posts: 474
Joined: 5-November 06
Member No.: 17,016



For me, i've use jquery http://jquery.com/
and thickbox http://jquery.com/demo/thickbox/

Thickbox is an extension for jquery. Thickbox will create a dialogbox like "something" in the middle of the page, and gray out the rest. Clicking anything outside will return to the original page. I find it a lot easier to modify, since it's based on jquery, and jquery is in fact very powerful. And page for Thickbox can be embded HTML, iframe, another page or image (comes with it's own slide browser).

For your application, all you need is to comment out the code that gray out the page, and then add code to move the dialogbox around. That's it.

You can see a sample of it at sourceforge, when you select the mirror for the file you're downloading.

Give it a try, i found it amazing
Go to the top of the page
 
+Quote Post
closed
post Mar 8 2007, 04:00 PM
Post #6


Newbie [ Level 2 ]
Group Icon

Group: Members
Posts: 26
Joined: 6-March 07
Member No.: 20,755



http://15daysofjquery.com/draggable-droppa...ables-oh-my/22/
just in case you want a tutorial, it also for JQUERY framework.

edit: this one is draggable and JQUERY is very easy to use js framework. no need study js further.

This post has been edited by closed: Mar 8 2007, 04:05 PM
Go to the top of the page
 
+Quote Post
TavoxPeru
post Mar 9 2007, 02:08 AM
Post #7


Super Member
Group Icon

Group: [HOSTED]
Posts: 744
Joined: 8-April 06
From: Lima - Peru
Member No.: 12,579



I don't know if it is what you want but take a look to this freeware i found a time ago:

Ferant Studio Lite

Also check this simple test page

Best regards,

This post has been edited by TavoxPeru: Mar 9 2007, 02:37 AM
Go to the top of the page
 
+Quote Post
toby
post Apr 11 2007, 09:18 AM
Post #8


Premium Member
Group Icon

Group: Members
Posts: 481
Joined: 29-September 06
Member No.: 16,228



I'm gonna use the one Tavoc said, it's by far the lightest and can easily be made valid. Just add type= into the js, and move that into head.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Getting Screen Resolution using Javascript.(8)
  2. How To Create A Popup Window With Javascript?(19)
  3. javascript vs java(12)
  4. Javascript: Disable Mouse Right-click In Browser(16)
  5. Best Way To Learn Javascript(9)
  6. Javascript: Text To Texbox And Back To Text(2)
  7. Unobtrusive Javascript Image Rollovers(0)
  8. Dynamicdrive: Good Site For JavaScript Codes(5)
  9. Downloads With Javascript?(7)
  10. Javascript: Simple Slidedown Menu(2)
  11. JavaScript: Simple Dropdown Menu(1)
  12. Calling Of Functions Between Mulitple External Javascript Files(2)
  13. Javascript: Browser Detection Script(0)
  14. JavaScript: Hide And Show Any Element With CSS(5)
  15. Ever Needs To Find Out A Table Height Or With With JavaScript(2)
  1. Create And Import JavaScript Modules For A Large Script(2)
  2. Vertical Marquee Using JavaScript(0)
  3. JavaScript Frames & Querystring(4)
  4. JavaScript Off Redirect Script(2)
  5. I Need Help With Javascript.(7)
  6. Problems With Dynamically Loading Javascript(2)
  7. Add Text To Textarea(6)
  8. Javascript Question(4)
  9. Problem With Javascript Alert();(9)
  10. Include Function For Javascript(7)
  11. Fun With Javascript And Forms(2)
  12. Javascript Help Needed : Alert(z) Works Fine But Document.write Not(2)
  13. Javascript Changes Aren't Working.(6)


 



- Lo-Fi Version Time is now: 29th August 2008 - 08:19 PM