N
nobag
Hi all,
I'm looking for a bit of help if possible with my WSS site using Frontpage
2003
I have a list of events, and each event has a venue. I want the user to be
able to click the venue name, and get a popup with the full details of the
venue (address phone no etc). I've the following javascript function to open
the popup
function openVenueInfo(v)
{
var tmpURL = "venueinfo.aspx?venue="+v;
window.open(tmpURL, "_blank",
"height=200px width=610px top=500 left=300 resizable=no
scrollbars=no");
}
and then I call the function as a hyperlink on the venue name to
javascriptpenVenueInfo(x);
if i type 3 instead of the x, the link works perfectly, opens the new popup,
displays the right venue details. If I type 4,5 or any other venue id it
works.
So then I changed the x to be a Field Value (using frontpage 2003 hyperlink
parameters dialog box) to insert venue_id, so the link now looks like this.
javascriptpenVenueInfo({@venue_id});
when I save the page the link changes to
javascriptpenVenueInfo(%7b@venue_id%7d);
which dosn't work.
I removed the %7, so the link looks like
javascriptpenVenueInfo(@venue_id);
and it still dosn't work - I get the popup, but inside is an error telling
me that SQL server may not be started.
I also tried removing the @ - it says venue_id is undefined.
I did a doucment.write (tmpURL), and it shows venueinfo.aspx?venue=NaN, so
it would appear nothing is being passed to the function.
I don't get what I am doing wrong, this seems such a simple thing, but it's
had me stuck for a while now - anybody please help!
Thanks for reading, hope you can shed some light for me
Chris
I'm looking for a bit of help if possible with my WSS site using Frontpage
2003
I have a list of events, and each event has a venue. I want the user to be
able to click the venue name, and get a popup with the full details of the
venue (address phone no etc). I've the following javascript function to open
the popup
function openVenueInfo(v)
{
var tmpURL = "venueinfo.aspx?venue="+v;
window.open(tmpURL, "_blank",
"height=200px width=610px top=500 left=300 resizable=no
scrollbars=no");
}
and then I call the function as a hyperlink on the venue name to
javascriptpenVenueInfo(x);
if i type 3 instead of the x, the link works perfectly, opens the new popup,
displays the right venue details. If I type 4,5 or any other venue id it
works.
So then I changed the x to be a Field Value (using frontpage 2003 hyperlink
parameters dialog box) to insert venue_id, so the link now looks like this.
javascriptpenVenueInfo({@venue_id});
when I save the page the link changes to
javascriptpenVenueInfo(%7b@venue_id%7d);
which dosn't work.
I removed the %7, so the link looks like
javascriptpenVenueInfo(@venue_id);
and it still dosn't work - I get the popup, but inside is an error telling
me that SQL server may not be started.
I also tried removing the @ - it says venue_id is undefined.
I did a doucment.write (tmpURL), and it shows venueinfo.aspx?venue=NaN, so
it would appear nothing is being passed to the function.
I don't get what I am doing wrong, this seems such a simple thing, but it's
had me stuck for a while now - anybody please help!
Thanks for reading, hope you can shed some light for me
Chris