This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01BF9B04.3CBBD842
Content-Type: text/plain;
charset="iso-8859-1"
Hi All,
I have encountered a couple opf problems, and would like to have some
answers
First, Is it possible to detect the screen size that a browser is running
on, and if so How?
Second, When using CFGrid to display data, how can you pass a hidden field
in the URL address of the HRef that is defined in for given Column?
here is a sample of the code I'm using
<cfgrid name="OCS_Journeys"
height="#GridHeight#" width="820" align="MIDDLE"
sort="No"
font="Arial" highlighthref="No"
griddataalign="CENTER" gridlines="Yes"
rowheaders="Yes"
colheaders="Yes" colheaderalign="CENTER"
colheaderfont="#Application.appGridFontStyle#"
colheaderfontsize="#Application.appGridHeaderFontSize#"
colheaderitalic="No" colheaderbold="Yes"
bgcolor="Yellow"
selectmode="Single"
maxrows="#GridRows#"
sortascendingbutton="Ascending"
sortdescendingbutton="Descending">
<!--- Set up the Grid headers --->
<cfgridcolumn name="Journey_Id" header="Journey Id" Select="Yes"
Display="No">
<cfgridcolumn name="Serv_Numb" header="Service" headeralign="CENTER"
dataalign="CENTER" fontsize="#Application.appGridFontSize#" Select="Yes"
href="OCS_ServiceDetail.cfm">
<cfgridcolumn name="Comp_Brand" header="Brand" headeralign="CENTER"
dataalign="CENTER" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="STA_Date" Header="Date" HeaderAlign="CENTER"
DataAlign="Center" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="STA_Time" Header=" Due " HeaderAlign="CENTER"
DataAlign="Center" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="From_Loc" Header="From" HeaderAlign="CENTER"
DataAlign="Center" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="Marker" Header="!" HeaderAlign="Center"
DataAlign="Center" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="Depart_Time" Header="Departs" HeaderAlign="CENTER"
DataAlign="Center" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="To_Loc" Header="To" HeaderAlign="CENTER"
DataAlign="Center" fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="Vehicle_Reg" Header="Vehicle Reg."
HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="Act_Arrive_Time" Header="Arrived"
HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#" Select="No">
<cfGridColumn Name="Act_Depart_Time" Header="Departed"
HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#" Select="No">
<!--- Put data into the Grid --->
<cfLoop query="qryGet_Expected_Journey">
<cfset Arrive_Date=#DateFormat(Time_Arrive,"DD/MM/YYYY")#>
<cfset
Arrive_Time=#TimeFormat(Time_Arrive+createtimespan(0,0,dep_diff,0),"HH:MM")#
>
<cfset Depart_Time=#TimeFormat(Time_Depart,"HH:MM")#>
<cfset Incident=" ">
<cfif dep_diff GT 0 or Incidents GT 0>
<cfset Incident="D">
</cfif>
<cfgridrow
data="#Journey_Id#,#Serv_Nr#,#Comp_Brand#,#Arrive_Date#,#Arrive_Time#,#trim(
From_Loc)#,#Incident#,#Depart_Time#,#trim(To_Loc)#,#vehicle_reg#,#time_arriv
e_act#,#time_depart_act#">
</cfloop>
</cfgrid>
This will pass the data in serv_numb, but I also want it to pass the data in
Journey_id as well, without displaying the ID to the user. Has anyone got
any ideas
Thanks in advance.
Jason Lees
National Express
Email : [EMAIL PROTECTED]
**********************************************************************
The information contained in or attached to this email is intended
only for the use of the individual or entity to which it is addressed.
If you are not the intended recipient, or a person responsible for
delivering it to the intended recipient, you are not authorised to and
must not disclose, copy, distribute, or retain this message or any
part of it. It may contain information which is confidential and/or
covered by legal professional or other privilege (or other rules or
laws with similar effect in jurisdictions outside England and Wales).
The views expressed in this email are not necessarily the views of
National Express or Eurolines. It's directors or employees make no representation
or accept any liability for it's accuracy or completeness unless
expressly stated to the contrary.
If you have received this email in error please forward to
[EMAIL PROTECTED]
This email message has been swept by Trend InterScan Virus Wall for the presence
of known computer viruses.
**********************************************************************
------_=_NextPart_001_01BF9B04.3CBBD842
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.00.2314.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>Hi
All,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>I have encountered a
couple opf problems, and would like to have some answers</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>First, Is it
possible to detect the screen size that a browser is running on, and if so
How?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>Second, When using
CFGrid to display data, how can you pass a hidden field in the URL
address of the HRef that is defined in for given
Column?</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>
here is a sample of the code I'm using </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000>
<cfgrid
name="OCS_Journeys"<BR>
height="#GridHeight#" width="820"
align="MIDDLE"<BR>
sort="No" <BR>
font="Arial"
highlighthref="No"<BR>
griddataalign="CENTER" gridlines="Yes"
<BR>
rowheaders="Yes"<BR>
colheaders="Yes" colheaderalign="CENTER"
colheaderfont="#Application.appGridFontStyle#" </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000>
colheaderfontsize="#Application.appGridHeaderFontSize#"<BR>
colheaderitalic="No"
colheaderbold="Yes"<BR>
bgcolor="Yellow"
<BR>
selectmode="Single"<BR>
maxrows="#GridRows#"<BR>
sortascendingbutton="Ascending"
sortdescendingbutton="Descending"><BR> <!---
Set up the Grid headers
---><BR> <cfgridcolumn
name="Journey_Id" header="Journey Id" Select="Yes"
Display="No"><BR> <cfgridcolumn
name="Serv_Numb" header="Service" headeralign="CENTER" dataalign="CENTER"
fontsize="#Application.appGridFontSize#" Select="Yes"
href="OCS_ServiceDetail.cfm"><BR> <cfgridcolumn
name="Comp_Brand" header="Brand" headeralign="CENTER" dataalign="CENTER"
fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="STA_Date" Header="Date" HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="STA_Time" Header=" Due " HeaderAlign="CENTER"
DataAlign="Center" fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="From_Loc" Header="From" HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="Marker" Header="!" HeaderAlign="Center" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="Depart_Time" Header="Departs" HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="To_Loc" Header="To" HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"> <BR> <cfGridColumn
Name="Vehicle_Reg" Header="Vehicle Reg." HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"><BR> <cfGridColumn
Name="Act_Arrive_Time" Header="Arrived" HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"> <BR> <cfGridColumn
Name="Act_Depart_Time" Header="Departed" HeaderAlign="CENTER" DataAlign="Center"
fontsize="#Application.appGridFontSize#"
Select="No"> <BR> <!--- Put
data into the Grid ---><BR> <cfLoop
query="qryGet_Expected_Journey"><BR> <cfset
Arrive_Date=#DateFormat(Time_Arrive,"DD/MM/YYYY")#><BR> <cfset
Arrive_Time=#TimeFormat(Time_Arrive+createtimespan(0,0,dep_diff,0),"HH:MM")#><BR> <cfset
Depart_Time=#TimeFormat(Time_Depart,"HH:MM")#><BR> <cfset
Incident=" "><BR> <cfif
dep_diff GT 0 or Incidents GT
0><BR> <cfset
Incident="D"><BR> </cfif><BR> <cfgridrow
data="#Journey_Id#,#Serv_Nr#,#Comp_Brand#,#Arrive_Date#,#Arrive_Time#,#trim(From_Loc)#,#Incident#,#Depart_Time#,#trim(To_Loc)#,#vehicle_reg#,#time_arrive_act#,#time_depart_act#"><BR> </cfloop><BR> </cfgrid></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>This will pass the
data in serv_numb, but I also want it to pass the data in Journey_id as well,
without displaying the ID to the user. Has anyone got any
ideas</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=448312411-31032000>Thanks in
advance.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=448312411-31032000></SPAN></FONT><B><FONT face=Tahoma size=2>Jason Lees
</FONT></B><BR><B><FONT face=Tahoma size=2>National Express</FONT></B>
<BR><B><FONT face=Tahoma size=2>Email :
[EMAIL PROTECTED]</FONT></B> </DIV>
<DIV> </DIV></BODY></HTML>
------_=_NextPart_001_01BF9B04.3CBBD842--
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.