C
|
cgphp 8/2/2011 |
Insert a Button in the visual editor using "Insert Button" from the toolbar. $("input[type='checkbox']:checked").each(function(e){
|
H
|
hsan author 8/2/2011 |
Insert a Button in the visual editor using "Insert Button" from the toolbar. In the "Client Before" section, enter: $("input[type='checkbox']:checked").each(function(e){
|
C
|
cgphp 8/2/2011 |
Anyway, this piece of code should work for each selected checkbox when you click on the button. |
H
|
hsan author 8/2/2011 |
Anyway, this piece of code should work for each selected checkbox when you click on the button. Have you relpaced "your_image_field_name" with the right name of your image field ? Pay attention to capitalization.
|
C
|
cgphp 8/2/2011 |
I see. After clicking on the button, check if firebug throws some errors. |
H
|
hsan author 8/2/2011 |
I see. After clicking on the button, check if firebug throws some errors.
|
C
|
cgphp 8/2/2011 |
The following piece of code doesn't make use of a button. Place it in the Javascript OnLoad event of the list page: $("input[type='checkbox']").click(function(e){
|
H
|
hsan author 8/2/2011 |
The following piece of code doesn't make use of a button. Place it in the Javascript OnLoad event of the list page: $("input[type='checkbox']").click(function(e){
|
C
|
cgphp 8/2/2011 |
Please, could you post a link to the demo of your app ? |
H
|
hsan author 8/2/2011 |
Please, could you post a link to the demo of your app ?
|
C
|
cgphp 8/2/2011 |
You can use the Demo account (http://xlinesoft.com/phprunner/docs/what_is_demoaccount.htm). The link can be sent to me through PM if you don't want to make it public. |
C
|
cgphp 8/3/2011 |
Your image is not clickable. Try out this solution: $("input[type='checkbox']").click(function(e){ |
H
|
hsan author 8/3/2011 |
Your image is not clickable. Try out this solution: $("input[type='checkbox']").click(function(e){
|
C
|
cgphp 8/3/2011 |
Are images hidden by default when the page is loaded ? |
H
|
hsan author 8/3/2011 |
Are images hidden by default when the page is loaded ?
|
C
|
cgphp 8/3/2011 |
Thanks a million. That worked! The only thing is that it works opposite - unchecked displays image and checked does not. How can I reverse that?
|
H
|
hsan author 8/3/2011 |
You have to hide the images when the page is loaded, so when you'll enable the checkbox the image will be displayed.
|
C
|
cgphp 8/3/2011 |
$("td span[id*='your_image_field_name'] img").hide(); |
H
|
hsan author 8/3/2011 |
$("td span[id*='your_image_field_name'] img").hide();
|