RE: Variable problem

2005-03-04 Thread Adrian Lynch
When you click one of your letter links it's not submitting the form, is
this what you thought should be happening? Are you missing bits from your
page, it looks like it's incomplete?

Ade

-Original Message-
From: jackals jackal [mailto:[EMAIL PROTECTED]
Sent: 04 March 2005 14:55
To: CF-Talk
Subject: Variable problem


I got 2 forms (Main  action page). Main has a list  submits a url value
depending on item clicked. The url variable now forms part of the query sql
in action page. The action page has a long list  search faccility and
submits to itself. Its also got alphabets a-z urls which when clicked
displays all items starting with the clicked alphabet. The problem is in the
action page . I want the submitted url variable to be resubmitted every time
a user clicks any alphabet or submits the form in anyway. Tried session but
not good 4 me. Lets work along form variables.
I tried this in action page - Not working

ACTION PAGE
cfif isdefined(url.MainID)
cfparam name=form.MainIDTemp default=#url.MainID#
cfelse
cfif isdefined(form.MainID) 
cfparam name=form.MainIDTemp 
default=#form.MainID#
cfelse
cfparam name=form.MainIDTemp default=13
/cfif
/cfif

cfparam name=form.MainID default=#form.MainIDTemp#
cfoutputinput type=hidden name=form.MainID
value=#form.MainIDTemp#/cfoutput

FORM ACTION = ACTION.cfm  METHOD = get name=frm id=frm
  pcfoutputspan class=lightbrowna

href=deletetryomginternestuff.cfm?Url.MainID=#form.MainID#keyword=aA/a
| a

href=deletetryomginternestuff.cfm?Url.MainID=#form.MainID#keyword=bB/a
| a

href=deletetryomginternestuff.cfm?Url.MainID=#form.MainID#keyword=cC/a
| a

href=deletetryomginternestuff.cfm?Url.MainID=#form.MainID#keyword=xX/a
| a

href=deletetryomginternestuff.cfm?Url.MainID=#form.MainID#keyword=allAll
/a |/span /cfoutput /p
  cfoutputinput type=hidden name=form.MainID
value=#form.MainIDTemp#/cfoutput
/FORM
Immigrant Coder
The Jackal



~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:197450
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: variable problem

2000-12-22 Thread David Sparkman

The direct answer is no. In order for this to work, you would have to make
sure that the header is output after your varible is set. One trick is to
capture the output of your content section into a variable, then at the
bottom output your header, your variable, and any footer. Your code ends up
looking something  like:

cf_woPageCaptureOutput r_sVar="Request.Body"
include template="mods/mod_mymod.cfm"
/cf_woPageCaptureOutput

cfinclude template="dsp_myHeader.cfm"
cfoutput#Request.Body#/cfoutput
cfinclude template="dsp_myFooter.cfm"


Thanks,
David Sparkman
Application Development Team Leader
Weberize, Inc.
http://www.weberize.com

-Original Message-
From: S R [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 22, 2000 11:44 AM
To: CF-Talk
Subject: variable problem


Hi,

My variable problem is that I have a header template that appears on every
single page in my application. inside this header is an img src tage whose
image needs to change based on which page is being accessed:

img src="#imageName#"

since the variables are set at the top of each page from this 'header'
template I need to be able to designate the #imageName# variable from the
'content' part of my pages. So basically I have a variable at the top of the
page that needs to pull from a value at the bottom of the page. Can this be
done? Maybe I should set a session variable and delete/rewrite it with every
call to a new page??
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists