www.uburst.com www.uburst.com

"Javascript window"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

Modify uDirectory Scripts
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Javascript window"
Posted by James on Sep-20-00 at 02:38 PM (EST)
I would like to display a listing for virtual tours I created in a pop up window. Where on the script do I do this? For example line 15 says virtual tour link, I type it in and it goes to config text for that file. However in the pl script I'm not sure where I can add the javascript to do this?

Thanks in advance.

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

RE: Javascript window, Bill Weiner, Sep-21-00, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "RE: Javascript window"
Posted by Bill Weiner on Sep-21-00 at 01:29 PM (EST)
I'm not entirely sure where you want to add the JavaScript pop-up window. Are you referring to just somewhere on the HTML page... or when someone clicks on a specific listing.

If you just want the JavaScript/popup window somewhere on the HTML page, then obviously you can use the category's custom TOP HTML, MIDDLE HTML, or BOTTOM HTML fields to add the JavaScript code.....so I'm guessing you actually want the JavaScript pop-up window to appear when someone clicks on a specific listing?

There is no easily configurable way at this time to do that at this time, but if you are familiar with Perl, you can try making a mod to the code yourself. As a hint, first do a search on "sub get_listing_html" to get to the start of the subroutine that generates the HTML for each listing. At three different places in that subroutine, you will see where a hyper link from the image is setup via the "a href" syntax. Those are the lines where you may want to add your custom "onClick" JavaScript code. Or if you just want to pop a window for the links.... perhaps you can just add a target="_new" to that portion of HTML.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.