Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

Sponsored Links

Discuss "Webchart Control not displaying in Firefox" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old June 2nd, 2008, 07:49 AM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default Webchart Control not displaying in Firefox

I've just recently changed the DOCTYPE on my master page to:-
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
as my ajaxcontroltoolkit calendar extenders weren't displaying correctly and I found a post on another site saying the doctype had to be this.

These controls began displaying fine, but it caused a whole heap of problems with other pages on my site that I'm gradually working through.
The one I'm completely stuck on is this.

I use a webchart control ([url=http://http://www.carlosag.net/Tools/WebChart/]from here[/url) to display a dynamic chart on my page. It was working fine, but since the doctype change, the image won't display in firefox. It just seems to be showing the alt text, I think, and when you right click on the text it gives you the normal image options (view image etc.) If I view the source of the page, the src of the <img> tag is correct and if I copy the src into the address bar, the image displays fine, but I can't work out why it won't display on the page. It displays fine in IE.

I've tried different image types (png, jpg, gif) but all give the same result.
My webchart code is:-
Code:
<webchart:ChartControl ID="introducer_chart" Width="500px" Height="300px" ChartFormat="Gif" runat="server" /> 

and the html this produces is:-
Code:
<img id="ctl00_main_content_introducer_chart" alt="Number of Introductions from Bates in 2008" src="\testing\dotnettest\WebCharts\8c763773-08d4-4303-b984-0a9d90ae8ccb.Gif" style="border-color:#000066;border-width:1px;border-style:solid;height:300px;width:500px;" /> 


I've tried googling all morning but can't find anything about this.

Anyone have any ideas what I can do?

I guess one option is to switch the doctype on this page if the browser is firefox, although I'm not sure how I could do this. Could you put DOCTYPE into a literal control and then change it via the content page?

Any other ideas?

Thanks

Last edited by richyrich; June 2nd, 2008 at 07:51 AM.
Reply With Quote
Sponsored Links
  #2  
Old June 2nd, 2008, 01:43 PM
richyrich's Avatar
Moderator


 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 395
Thanks: 26
Thanked 32 Times in 32 Posts
Blog Entries: 1
Rep Power: 1
richyrich will become famous soon enough

Awards Showcase
Classic ASP JavaScript 
Total Awards: 2

Default

The only way I could figure to solve this was to use the webchart engine to produce the graph.

So, the graph is not saved as an image file but rendered straight to the screen. Might have an impact on server resource, as the file is loaded erach time, but I couldn't work out another way of solving this.
Reply With Quote
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Tags
firefox, webchart, xhtml

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Calendar Control AOG123 Microsoft Access 3 September 6th, 2008 07:36 AM
WebCharts Control richyrich .Net Development 1 April 4th, 2008 11:14 AM
Accessing skmmenu control in Master Page richyrich .Net Development 13 March 18th, 2008 11:45 AM


All times are GMT -4. The time now is 10:08 AM.



Content Relevant URLs by vBSEO 3.2.0