This is a migrated thread and some comments may be shown as answers.

RadAlert Chrome

4 Answers 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
dany7487
Top achievements
Rank 1
dany7487 asked on 17 May 2009, 12:23 AM
Hi, Telerik.
I´m using radalert control of radcontrol for asp.net ajax and it works fine in IE, but not in Chrome with the following issue:

I have a template as a user control (ascx) for the radalert with:

<img id='AlertIcon' align='absmiddle' style='vertical-align:middle;border:0' /> {1}

 

 

 

 

Now I´m using this to get the image and then set the SRC attribute:

var

 

oWindow = radalert('message', 300, 100, 'title');

 

 

 

 

var imgicono = oWindow.GetContentFrame().document.getElementById('AlertIcon');

 

 

imgicono.src = "my picture";

 

 


It works with IE, but this does not work with Chrome: 
var imgicono = oWindow.GetContentFrame().document.getElementById('AlertIcon');

Can you help me?
thanks a lot,
Daniel.

4 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 18 May 2009, 10:57 AM
Hello dany7487,

Could you please open a support ticket and send me the full alerttemplate that you are using?

Thank you in advance for your cooperation.

Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
dany7487
Top achievements
Rank 1
answered on 18 May 2009, 03:12 PM

Hi, Georgi.

I have already submitted this as a support ticket with number: 213186

 

thanks a lot!

Daniel.

0
Georgi Tunev
Telerik team
answered on 19 May 2009, 06:29 AM
Thank you, Daniel.

I will check it right away.


All the best,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Georgi Tunev
Telerik team
answered on 19 May 2009, 08:16 AM
Hi again Daniel,

I just answered your support ticket - for convenience I am pasting my reply below:

Thank you for the project - now I see where the problem is. With your code, you are trying to get a reference to the image inside radalert's iframe, which however is empty - you can check that in IE Dev toolbar / Firebug or other similar tool (screenshot attached). That is why, you need to change your code to search for the image on the page itself.
e.g. (I've changed the url to the image for demo purposes)
///Muestra rw alert para Ok. 
function RWdiagAlertOk(mensaje, titulo) 
//mostrar radalert() 
    var oWindow = radalert(mensaje, 300, 100, titulo); 
//preparar icono a mostrar 
    var imgsrc= '_skins/Yunke/Editor/FlashManager.gif'
//tomar icono 
    var imgicono = $get("AlertIcon"); 
 
//mostrar icono 
    imgicono.src = imgsrc; 
 
    return false

This way, your code will work as expected in all major browsers.





Kind regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
dany7487
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
dany7487
Top achievements
Rank 1
Share this question
or