JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 6th, 2005, 10:16 PM
billybongchong billybongchong is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: AU
Posts: 5 billybongchong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 53 sec
Reputation Power: 0
document.write with cold fusion variable

I have a new window that opens up as a file manager and am creating a link that sends the file name (#name#) back to the form field in the opener page.

when I mouse over the link the variable #name# of the file link(eg "strategy.doc") is showed correctly in the status bar but when I click it I get the ("strategy" is undified) javascript error. Notice that it has also dropped the ".doc" part of the variable #name#

I have been tring to do this all morning, I have even made a function instead of running the javascript through the link and it gives me the same result.

My thoughts are that I cannot pass a period "." in the string to javascript write command....?
And, That the variable #name# needs to be enclosed with '#name#' in the write command.

Can anyone shed some light on my situation... and show me how to enclose #name# in the sting below with '#name#'.

By the way I know the function works because I can use it in a form with a submit button... but I do want to create a form field for this application.



my Script..

document.write("<a href='javascriptpener.document.form1.t_strategy. value=#name#;window.close();' >Click here</a>");

Reply With Quote
  #2  
Old September 6th, 2005, 10:18 PM
billybongchong billybongchong is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: AU
Posts: 5 billybongchong User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 m 53 sec
Reputation Power: 0
hmm

PHP Code:
 document.write("<a href='javascript:opener.document.form1.t_strategy.  value=#name#;window.close();' >Click here</a>");[/QUOTE

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > document.write with cold fusion variable


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway