For some reason the getURL() function seems to act wierd if you have fairly complicated call to native javascript.
Try creating a javascript function that opens the window for you in the HTML on the page and then call that from the getURL() function as it will not open the js statement as a new page then. Later, Mike. On Sunday 18 June 2006 9:46 pm, Tim Starling wrote: > For some reason I'm not able to get this to work and looking at the code > it seems like this will pop open a second window. Is there a way to > have the button take you to the appropriate link in the same window... > seems like this would be really easy and I'm just missing something. > > > > Tim Starling > Project Manager - Web Development > Global Aid Network > A ministry of Campus Crusade for Christ International > 972-234-0800, extension 1335 > www.gainusa.org <http://www.gainusa.org> > > _____ > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Justin Cook > Sent: Saturday, June 17, 2006 8:55 PM > To: Dallas/Fort Worth ColdFusion User Group Mailing List > Subject: Re: [DFW CFUG] getUrl > > > > Tim, > > > > Not sure why, but the on click showed up as on filtered. It should be on > click. > > > > Justin > > Justin Cook <[EMAIL PROTECTED]> wrote: > > Tim, > > > > I just did this the other day and this is how I approached it: > > > > <cfformitem type="script"> > > > > function helpTool(){ > > <!--- get all the criteria items ---> > > > getURL("javascript:"); > > > > </cfformitem> > > > > <cfinput type="button" style="cornerRadius:0;borderThickness:0; > border-color:##dddddd;" name="Help" value="Help" label="Help" width="50" > onClick="helpTool()"> > > > > If you need more explanation, let me know. > > > > Justin > > Tim Starling <[EMAIL PROTECTED]> wrote: > > I am wanting to put a couple of different buttons in a > flash form but don't seem to be having any luck with the getUrl() > function.. I am simply wanting to go to a specified page when the > button is clicked instead of the action page specified if the submit > button is clicked. > > > > I have tried the following: > > > > <cfinput type="button" name="newCall" label="New Call" > value="NewCall" onClick="getURL('mypage.cfm')"> > > > > And > > > > <cfinput type="button" name="newCall" label="New Call" > value="NewCall" onClick="{getURL('/about/case_studies.cfm')};"> > > > > In both instances I get the error message "getURL is not > defined" > > > > Any help would be appreciated. > > > > Thanks, > > Tim > > > > Tim Starling > Project Manager - Web Development > Global Aid Network > A ministry of Campus Crusade for Christ International > 972-234-0800, extension 1335 > www.gainusa.org <http://www.gainusa.org/> > > > > > _____ > > > This e-mail message has been scanned for Viruses and > Content and cleared by MailMarshal - For more information please visit > www.marshalsoftware.com <http://www.marshalsoftware.com/> > > > _____ > > > _______________________________________________ > Reply to DFWCFUG: > [email protected] > Subscribe/Unsubscribe: > http://lists1.safesecureweb.com/mailman/listinfo/list > List Archives: > http://www.mail-archive.com/list%40list.dfwcfug.org/ > http://www.mail-archive.com/list%40dfwcfug.org/ > DFWCFUG Sponsors: > www.HostMySite.com > www.teksystems.com/ > > > _______________________________________________ > Reply to DFWCFUG: > [email protected] > Subscribe/Unsubscribe: > http://lists1.safesecureweb.com/mailman/listinfo/list > List Archives: > http://www.mail-archive.com/list%40list.dfwcfug.org/ > http://www.mail-archive.com/list%40dfwcfug.org/ > DFWCFUG Sponsors: > www.HostMySite.com > www.teksystems.com/ > > > > > ########################################################################### >########## This e-mail message has been scanned for Viruses and Content and > cleared by MailMarshal > ########################################################################### >########## _______________________________________________ Reply to DFWCFUG: [email protected] Subscribe/Unsubscribe: http://lists1.safesecureweb.com/mailman/listinfo/list List Archives: http://www.mail-archive.com/list%40list.dfwcfug.org/ http://www.mail-archive.com/list%40dfwcfug.org/ DFWCFUG Sponsors: www.HostMySite.com www.teksystems.com/
