• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfif show background

Guest
Apr 01, 2007 Apr 01, 2007

Copy link to clipboard

Copied

i found some code to stop the click sound when using iframe page refresh, but when my page refreshes now i get a white page.

i am tring to code, if query recordcount = 0 the show background red else show background image, so i am not sure why i am getting a white page?

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript" src="silent_refresh.js"></script>


<CFQUERY datasource="#application.ds#" Name="ShowInbox">
SELECT *
FROM SMS_Inbox
where InboxClubID = '#session.ClubLogin#' AND InboxViewed = 1
</cfquery>

<CFQUERY datasource="#application.ds#" Name="ShowInboxbeep">
SELECT *
FROM SMS_Inbox
where InboxClubID = '#session.ClubLogin#' AND InboxViewed = 1 AND Beep = 1
</cfquery>




<CFIF ShowInbox.recordcount GT 0>
<style type="text/css">
<!--
body {
background-image: url(images/icon2.gif);
}
-->
</style>
<cfelse>
<style type="text/css">
<!--
body {
background-color: #BB2020;

}
-->
</style>
</CFIF>
</head>
TOPICS
Advanced techniques

Views

199

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Apr 01, 2007 Apr 01, 2007

Copy link to clipboard

Copied

LATEST
When you get the white page view the source. You are most likely getting an error message and you will see it in the source.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation