eker-huang / mathmlformula

Automatically exported from code.google.com/p/mathmlformula
0 stars 0 forks source link

Image URL append site name automatically #82

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I am using fmath with ckeditor in asp.net it works fine. but while creating 
formula it saves file path as 
"http://localhost:3008/MySite/capture/../capture/img/B001B693-EDFA-496E-3E2E-8D3
E64D73598vadfasf.PNG"

In .aspx i have written 
---------------
Response.ClearContent();
Response.Write("../capture/img/" + name + "." + type);
Response.End();

In this response return 
"../capture/img/B001B693-EDFA-496E-3E2E-8D3E64D73598vadfasf.PNG". 

But still it append "http://localhost:3008/MySite/capture/" automatically. 
which i don't want.

Please help

Original issue reported on code.google.com by meet.vis...@gmail.com on 19 Sep 2013 at 1:32

GoogleCodeExporter commented 8 years ago
It add domain name by default in image path

Original comment by meet.vis...@gmail.com on 19 Sep 2013 at 2:43

GoogleCodeExporter commented 8 years ago
In a.aspx you need to return the absolut path:
http://yourserver/....

Original comment by ionel.alexandru@gmail.com on 19 Sep 2013 at 8:03

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Actually we are adding html text from server and through web service we 
transfer data from server to client while synchronize and display it on client 
machine locally. 

Now issue is if i am adding domain name in this html text, then client 
application looking for server path which is not available after synch is 
completed so i want relative path for the same. (My client machine is not 
connected through internet whole day for security reasons)

I am able to do the same in php by writing relative path in imagecapture.php 
but not able to resolve issue in .net.

Original comment by meet.vis...@gmail.com on 20 Sep 2013 at 4:40

GoogleCodeExporter commented 8 years ago
hmm, if you don't give an absolute path, I will build.
I think I can add a property to override this behavior.

Original comment by ionel.alexandru@gmail.com on 20 Sep 2013 at 1:39

GoogleCodeExporter commented 8 years ago
Ok then please guide me how can i add this property ..

Original comment by meet.vis...@gmail.com on 20 Sep 2013 at 2:24

GoogleCodeExporter commented 8 years ago
Hi,

It is not implemented now. I need to do for the next version

regards

Original comment by ionel.alexandru@gmail.com on 20 Sep 2013 at 5:58