Opening From javascript

2 messages Options
Embed this post
Permalink
NetScope

Opening From javascript

Reply Threaded More More options
Print post
Permalink
Can i get a little help on the following item.

I need to open shadowbox from javascript with a couple of small things that are causing me issues

The following site
http://bridgeviewtechpark2.dev.net-scope.com/Siteplan/

Click on building 1

Now in the upper left hand corner of the flash presentation (that larger floor plan) hover your mouse over the upper left hand corner and click on the one that says "click for Room for more Info"

When you click on that you will see a javascript alert.  I attached this for easy to see.

In the source you will find the following....

        function doBuildingUpdate(num) {
        alert(num);
        };


Now here is my dilema..  I need to have shadowbox open up a url with a customized querystring
aka....

ThisUrl/?BuildingId=num

num is the value of the string in that function.

Site is asp.net 3.5, vb.  I can do anything with the code once I get pointed in the right direction.

Thank you

JC
NetScope
NetScope

Re: Opening From javascript

Reply Threaded More More options
Print post
Permalink
Okay for those that get to here..  This worked almost perfectly.

function doBuildingUpdate(num) {
//alert(num);
    Shadowbox.open({
    player: 'iframe',
    content: 'AdditionalInformation/?BuildingId=' + num,
    height: 500,
    width: 600,
    title: 'Additional Section Information'
    });
};


Works for the most part but the iframe is not filling the shadowbox.????