Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
Another addition:
When i only insert the image, without the $html-link, it works in
internet explorer 8.

[code works but without link]
?php echo $html-image(edit.png, array(alt = Editieren)); ?
[\code]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread John Andersen
Do you have some specific styling for IE?
Try also just to write a dummy link around your image, just to see if
it makes a difference!
[code]
?php echo 'a href=#'.$html-image(edit.png, array(alt =
Editieren)).'/a'; ?
[\code]
Enjoy,
   John


On Apr 16, 12:38 pm, sebb86 kahlc...@googlemail.com wrote:
 Another addition:
 When i only insert the image, without the $html-link, it works in
 internet explorer 8.

 [code works but without link]
 ?php echo $html-image(edit.png, array(alt = Editieren)); ?
 [\code]

 Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with 
 their CakePHP related questions.

 You received this message because you are subscribed to the Google Groups 
 CakePHP group.
 To post to this group, send email to cake-php@googlegroups.com
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group 
 athttp://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
Addition:
I'm really sorry but i forgot my self defined css... :(
So this works for Firefox:
[code]
?php echo $html-link('Edit', array(controller = 'dns_names',
action = edit, $dns_name['Dnsname']['id']), array('class' =
'edit', title = Editieren), null, false); ?
[/code]

And when i remove:  array('class' = 'edit', title = Editieren)
 it works also for the internet explorer, but without image. So i
think this is the problem. Is there maybe a syntax error?
[this code works, but without the image]
?php echo $html-link('Edit', array(controller = 'dns_names',
action = edit, $dns_name['Dnsname']['id']), null, false); ?
[/code]

[my css code]
a.edit
{
  text-indent:-5000px;
  display:inline-block;
  width:24px;
  height:29px;
  background:transparent url(/img/edit.png) no-repeat 0 0;
}

a.edit:hover
{
  background-position:0px 5px;
}
[/code]

It would be very very very brilliant if someone could solve this.
I spend so much hours on this :(

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread cricket
On Apr 16, 6:13 am, sebb86 kahlc...@googlemail.com wrote:
 Addition:
 I'm really sorry but i forgot my self defined css... :(
 So this works for Firefox:
 [code]
 ?php echo $html-link('Edit', array(controller = 'dns_names',
 action = edit, $dns_name['Dnsname']['id']), array('class' =
 'edit', title = Editieren), null, false); ?
 [/code]

 And when i remove:  array('class' = 'edit', title = Editieren)
  it works also for the internet explorer, but without image. So i
 think this is the problem. Is there maybe a syntax error?
 [this code works, but without the image]
 ?php echo $html-link('Edit', array(controller = 'dns_names',
 action = edit, $dns_name['Dnsname']['id']), null, false); ?
 [/code]

 [my css code]
 a.edit
 {
   text-indent:-5000px;
   display:inline-block;
   width:24px;
   height:29px;
   background:transparent url(/img/edit.png) no-repeat 0 0;

 }

 a.edit:hover
 {
   background-position:0px 5px;}

 [/code]

Ah, image replacement. You definitely need to pay attention to what
works and what doesn't for IE.

Anyway, if you're going to use that, you shouldn't be including the
image in the HTML. Try this:

$html-link(
'Edit',
array('controller' = 'dns_names', 'action' = 'edit',
$dns_name['Dnsname']['id']),
array('class' = 'edit', title = Editieren)
);

a.edit
{
width:24px;
height: 29px;
padding-top: 29px;
overflow: hidden; /*Hide the text*/
background:transparent url(/img/edit.png) no-repeat 0 0;
color: #FFF; /* to hide when IE screws up and shows underlying text
*/
voice-family: \}\; voice-family: inherit;
height: 0;
}
htmlbody a.edit { height: 0; }

a.edit:hover { background-position:0px 5px; }

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
cricket

Also thanks to you. It dont works in both browsers. Dont know why.
Anyway... i decided that i dont use CSS for this. I got it working so
far but i still have one problem.

[this code works (without the CSS class, but its okay]
?php echo $html-image(edit.png, array(alt = Editieren, 'url'
= array('controller' =  'dns_names', 'action' = 'edit',
$dns_name['DnsName']['id']))); ?
[/code]

The last problem: I want to use the same source code for me delete
button. But how can i include my confirm message in the following
code:
[delete code]
?php echo $html-image(delete.png, array(alt = Delete, 'url'
= array('controller' = 'dns_names', 'action' = 'delete',
$dns_name['DnsName']['id']))); ?
[/code]

[code confirm message]
sprintf(__($deleteQuestion, true), $dns_name['DnsName']['id']
[/code]

Thanks a lot to all
helpers!!! :-)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread cricket
On Apr 16, 7:20 am, sebb86 kahlc...@googlemail.com wrote:
 cricket

 Also thanks to you. It dont works in both browsers. Dont know why.
 Anyway... i decided that i dont use CSS for this. I got it working so
 far but i still have one problem.

 [this code works (without the CSS class, but its okay]
 ?php echo $html-image(edit.png, array(alt = Editieren, 'url'
 = array('controller' =  'dns_names', 'action' = 'edit',
 $dns_name['DnsName']['id']))); ?
 [/code]

 The last problem: I want to use the same source code for me delete
 button. But how can i include my confirm message in the following
 code:
 [delete code]
 ?php echo $html-image(delete.png, array(alt = Delete, 'url'
 = array('controller' = 'dns_names', 'action' = 'delete',
 $dns_name['DnsName']['id']))); ?
 [/code]

 [code confirm message]
 sprintf(__($deleteQuestion, true), $dns_name['DnsName']['id']
 [/code]


But now you don't have a link. Go back to what you had before, ie.
$html-link($html-image(...), ...)

And remove the CSS rules.

I never use Cake's $confirmMessage myself but look here:

http://api.cakephp.org/class/html-helper#method-HtmlHelperlink

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-16 Thread sebb86
The solution was an empty array

[dynamic code]
?php echo $html-link($html-image(delete.png, array(alt =
Löschen)), array(controller = $contr, action = delete,
$row[$class]['id']), array(), sprintf(__($deleteQuestion, true),
$row[$class]['id']), null, false); ?
[/code]

Really thanks a lot to all helpers!! thanks thanks
thanks :-)

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread John Andersen
Have you compared the HTML source code in both browsers? And are they
the same?
Enjoy,
   John

On Apr 15, 12:54 pm, sebb86 kahlc...@googlemail.com wrote:
 Hello,
 i want to show an element in a table cell.

 [element code]
 ?php echo $html-link($html-image(edit.png, array(alt =
 Editieren)), array(controller = $contr, action = edit,
 $row[$class]['id']), array('class' = 'edit', title = Editieren),
 false); ?
 [/code]

 [code in view]
 td?php echo $this-element('options', array( contr =
 'dns_names', class = 'DnsName', row = $dns_name)); ?/td
 [/code]

 This works in Firefox 3.6 but not in my Internet Explorer 8. Do
 somebody know why it dont works?
 Mybe it needs some CSS attributes like position or something else?

 Thanks a lot! I spend lots of hours but cant get it working :(

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello,
thanks for the suggestion.
I just compared it. The source code is the same.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread John Andersen
Ok, then it is probably just an issue with your CSS :)
Try and see what CSS are affecting the presentation of your HTML link
in the table cell.
Maybe you can show the HTML code for the table cell?
Enjoy,
   John

On Apr 15, 6:04 pm, sebb86 kahlc...@googlemail.com wrote:
 Hello,
 thanks for the suggestion.
 I just compared it. The source code is the same.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
sure :-)

[HTML Code for the table cell:]
tda href=/dns_names/edit/1 class=edit title=Editierenlt;img
src=quot;/img/edit.pngquot; alt=quot;Editierenquot; /gt;/a /
td
[/code]

Addition: When i copy the element outside the table, it works fine.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread cricket
On Apr 15, 1:04 pm, sebb86 kahlc...@googlemail.com wrote:
 sure :-)

 [HTML Code for the table cell:]
 tda href=/dns_names/edit/1 class=edit title=Editierenlt;img
 src=quot;/img/edit.pngquot; alt=quot;Editierenquot; /gt;/a /
 td
 [/code]


Is the source really escaped like that? If so, that's the problem.

... Just double-checked your code. The false param ($escape) is in the
wrong place. Use null, false. The null is for the $confirmMessage
param.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
cricket

Do  you mean the code should be:
[code]
?php echo $html-link($html-image(edit.png, array(alt =
Editieren)), array(controller = $contr, action = edit,
$row[$class]['id']), array('class' = 'edit', title = Editieren),
null, false); ?
[/code]

Then it creates the following
[html source code:]
tda href=/dns_names/edit/1 class=edit title=Editierenimg
src=/img/edit.png alt=Editieren //a /td
[/code]

This looks better than before but it still dont works.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread cricket
On Apr 15, 1:31 pm, sebb86 kahlc...@googlemail.com wrote:
 cricket

 Do  you mean the code should be:
 [code]
 ?php echo $html-link($html-image(edit.png, array(alt =
 Editieren)), array(controller = $contr, action = edit,
 $row[$class]['id']), array('class' = 'edit', title = Editieren),
 null, false); ?
 [/code]

 Then it creates the following
 [html source code:]
 tda href=/dns_names/edit/1 class=edit title=Editierenimg
 src=/img/edit.png alt=Editieren //a /td
 [/code]

 This looks better than before but it still dont works.

Can you see the image if you load it directly (http://your.site/img/
edit.png)?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Yes, i see it.
When i copy the element outside the table, it works fine.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread cricket
On Apr 15, 2:24 pm, sebb86 kahlc...@googlemail.com wrote:
 Yes, i see it.
 When i copy the element outside the table, it works fine.

OK. Copy the HTML source and paste it directly into the view and see
if the image  link are accessible inside the table.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.


Re: Internet Explorer error! (Want to show element in a table cell) :-(

2010-04-15 Thread sebb86
Hello again and really thank you cricket and John!

 OK. Copy the HTML source and paste it directly into the view and see
 if the image  link are accessible inside the table.

Same as before. When i substitute the variables it works fine in
Firefox but _not_ in Internet Explorer :/

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using remove me as the subject.