Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Find the imageFind the image
Previous
 
Next
New Post
3/24/2007 12:23 PM
 

What does a dotnetnuke module consider to be its own folder?

What I'm trying to do essentially is to use a Reimers google map dll to make a map which uses customised markers.  Everything works beautifully except the markers won't display the customised marker.

As far I can tell when creating google marker with an icon there is no provision for a path, the system simply has to find the image file in it's own folder. I've tried putting the image file in the root folder of the portal, in the overall root folder of the application and in the module folder, but all to no avail.  I've tried synchronising the folder through the interface itself, but still no joy.

Thanks in advance for any help.

 
New Post
3/24/2007 2:26 PM
 

The location where the browser looks for an image depends on how the image is being displayed and what its specified path is:

- Absolute path (i.e. http://www.xyz.com/images/myimage.gif) : The browser looks at the specified location.

- Relative path (i.e. images/myimage.gif) : This is relative to the location of the page (which would be default.aspx)

- Relative path in CSS (i.e. background-image: url(myimage.gif)) : This is relative to the location of the CSS file where the image is referenced

Do you see a broken image icon? If so, you can right-click it and obtain the location where the browser is trying to find the image.

A few other ways to determine where the browser is expecting to find the image:

- In FireFox, select Tools > Page Info - Media. Look for the image name in the list and you will see the path the browser is using.

- Using IE or FireFox you can use the add-on developer toolbar (Google for it) to examine properties for all elements of the page. View the properties of the image to find its path.

- Look at your server log and search for the image file name. The log entry will contain the path where the image was expected.

HTH.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
3/24/2007 2:36 PM
 

Thanks for a very detailed reply.  When I look behind the page at the source code I can see that it is giving the correct local path, and in addition I put a single image button at the bottom of my screen and gave the image url in the code - that works perfectly.  I'm beginning to wonder if the issue is really something to do with the way the page is loaded.  At least one reference I've read suggests that the icons have to be loaded into the map as the page is loaded, which of course probably can't happen in a DNN module.

I'm starting to think that module may have to use a rather clunky Iframe reference, passing code if need be through parameters.  A straightforward ASP page renders the whole thing perfectly.

 
New Post
3/25/2007 3:20 PM
 

Based on your earlier description, this is a client-side issue so the fact that the page is rendered by DNN isn't germaine to the problem. Once the page is rendered on the server-side and sent to the browser it is just ordinary HTML.

Since you have verified that the path is correct, I am inclined to believe that this is a timing issue. When Javascript code runs on the browser, any HTML elements the code is interacting with need to already exist in the browser. So, if the script that positions the markers is running before the HTML elements where they are to be displayed are rendered by the browser, you will see the problem you are experiencing. This is easy to verify --

1) Launch FireFox

2) Type "j a v a s c r i p t :" in the address bar and press Enter. This will bring up the messages window.
(Note: skip the spaces...the forum will not display the word if I type it as-is.)

3) Type in the URL of the actual page ni the address bar. The message window will log all the JS errors encountered.

If you see no errors, then the script has error-handling and is trapping them. In this case, the only way to determine the problem is to examine the source code.

Nik

 


Nik Kalyani
Co-founder
DotNetNuke Corporation
Blog | Twitter | FaceBook
 
New Post
3/26/2007 11:51 AM
 

Hi Nik - thanks again for your efforts, in fact I have discovered (been told) the source of my problem.  Essentially I was using an absolute path for the image (C:\....).  I'd done that because another part of my code need an absolute path to save the image to.  However the google icon for the dll requires a URL (http://....).  Many thanks to Jacob Reimer who put me right.  Now all works as it should ... until the next thing no doubt.

Thanks again

Jay

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Find the imageFind the image


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out