Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
jolejni #1
nowrap with Image and Checkbox
Hi eveyone -
I am outputing images with checkboxes to a display page and I am having
problems getting the checkbox to "stick" with the image. Whats currently
happening is the checkbox may or maynot appear to the right of the outputed
image. I want it to allways appear to the right. Sometimes what happens is the
browser window expands and the cells expand (by design) however as this occures
the checkbox for an image may drop down to the next line. I hope I am making
sence here so please ask me for further clarification if you dont understand!
(see code)
Thank you in advance!!!!
<span class="bodymedium">Click to Enlarge Images </span>
<form name="form" method="post" action="">
<br>
<cfoutput query="GetImages">
<a
href="imageinfo.cfm?Image=#GetImages.Image_Path#&I mageID=#GetImages.ImageID#&Cal
ledPage=thispage.cfm"><img src="Images/#GetImages.Image_Thumb#" border="0"
alt="Click to Enlarge"></a>
<input name="checkbox" type="checkbox" value="#GetImages.ImageID#">
</cfoutput> <br>
<br>
<input type="submit" name="Submit" value="Add to Favorites">
</form>
jolejni Guest
-
checkbox
I know there is a way to update records with a checkbox. Is there a way to update this records (with different value)by unchecking the checkbox? -
'nowrap' available in flash forms?
When using formgroup=hbox,horizontal,hdividedbox I'm still having issues with the page not forcing horizontal-ness. Instead of a dynamic scroll... -
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the... -
The nowrap Property of TD Tags
I want to create TD tags with the nowrap property. I have a user control which sets the Wrap property of a TableCell to False when dynamically... -
DIV, CheckBox
Hello, I am populating a DIV with Checkboxes based on rows I get from a Table while dr.read() ..... mydiv.controls.add(etc...) .... other set... -
jdeline #2
Re: nowrap with Image and Checkbox
The problem is that the <input name="checkbox"... is on a different line from
the img tag. This creates a "white space" and causes a break to occur. Code
it like this:
...alt="Click to Enlarge"</a><input name="checkbox"...
jdeline Guest
-
jolejni #3
Re: nowrap with Image and Checkbox
I tried it as you suggested however it is still wrapping the checkbox to the
next line if the browser is expanded or shinked...any suggestions?
<img src="Images/#GetImages.Image_Thumb#" border="0" alt="Click to
Enlarge"</a><input name="checkbox" type="checkbox" value="#GetImages.ImageID#">
Thank you again!!
jolejni Guest
-
dempster #4
Re: nowrap with Image and Checkbox
You can try putting the image and checkbox in a table cell with the NOWRAP attribute, or in adjoing table cells on the same row.
-Paul
dempster Guest
-
jolejni #5
Re: nowrap with Image and Checkbox
I tried several differnt things (div, td and tr) with no avail. I also set the nowrap on the table cell and it worked, however all the images expaned accross the screen.
hmmm, not sure on this!
jolejni Guest
-
-
jolejni #7
Re: nowrap with Image and Checkbox
Here you go! Thanks!
<form name="imageform" method="post" action="">
<div align="left">
<cfif isdefined("session.arrMyFav")>
<cfloop index="idx" from="1"
to="#ArrayLen(session.arrMyFav)#">
<cfoutput> <img
src="../galleries/Images/#session.arrMyFav[idx][2]#">
<select name="Sel#idx#"
onChange="MM_goToURL('parent','Builder.cfm?Frame=# URL.Frame#&Image=#session.
arrMyFav[idx][1]#&Quad= ' + document.imageform.Sel#idx#.value);return
document.MM_returnValue">
<option value="...">Click Here</option>
<cfloop index="idx" from="1"
to="#Get_Frame.Frame_Quad#">
<option value="#idx#">Image
#idx#</option>
</cfloop>
</select>
</cfoutput>
</cfloop>
</cfif>
</div>
</form>
jolejni Guest



Reply With Quote

