DeveloperBarn Forums

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

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 (permalink)  
Old June 2nd, 2008, 07:49 AM
richyrich's Avatar
Moderator

 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 325
Thanks: 22
Thanked 23 Times in 23 Posts
Rep Power: 1
richyrich is on a distinguished road

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 (permalink)  
Old June 2nd, 2008, 01:43 PM
richyrich's Avatar
Moderator

 
Join Date: Mar 2008
Location: Somewhere only we know...
Posts: 325
Thanks: 22
Thanked 23 Times in 23 Posts
Rep Power: 1
richyrich is on a distinguished road

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
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
Custom Calendar Control AOG123 Microsoft Access 1 March 16th, 2008 02:06 PM


Sponsored Links

ASP.NET Resource Index
a directory of ASP.NET tutorials, applications, scripts, assemblies and articles for the novice to professional developer.

Free Web Directory
Including Chats and Forums Resources, Offer automatic, instant and free directory submissions.
URLZ Web Directory
URLZ Web Directory

Free Web Directory - Add Your Link
The Little Web Directory
Free Web Directory
Pegasus free web directory is a free directory organised by categories.

Web Directory & SEO Services
dirroot web directory


All times are GMT -4. The time now is 11:01 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 2008 DeveloperBarn.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46