Jump to content


Photo

Function not working, escaping problem?


  • Please log in to reply
4 replies to this topic

#1 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 27 July 2006 - 07:17 PM

Why isn't this working:

function directions(id){
  window.open('\"directions.html?id=' + id + '\",\"directions\",\"toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=400\"')
}
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 27 July 2006 - 07:56 PM

function directions(id){
   window.open("directions.html?id=" + id,"directions","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=500, height=400");
}

NoGray.com


#3 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 27 July 2006 - 08:18 PM

If you don't mind, how about one more I can't figure out:

function picture(img,width,height){
   window.open("pictures2b.html?img=" + img,"picture","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=no, width=" + width + ", height=" + height);
}

I'm no good at Javascript.
::tear::
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />

#4 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 27 July 2006 - 08:45 PM

this looks fine, post the code you use when you call this function.

NoGray.com


#5 johnnyk

johnnyk
  • Members
  • PipPipPip
  • Advanced Member
  • 126 posts

Posted 27 July 2006 - 09:09 PM

Ahh, there was a problem in the HTML (...target="picture"...). Thanks for the help.
Rediscover the Web:
<a href="http://www.spreadfir...;t=219"></a><br />




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users