Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Anything Goes
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:01

Need to insert asp into aI url


Poster: p.timberg
Dated: Wednesday December 15 2004 - 15:38:02 GMT

Hi All-

I need to add the following asp into my url within my menu item.

<%=encode("deferrals")%>

This does not work for what appears to be several reasons

aI("text=deferrals&nbsp;&nbsp;;url=FileUpload.asp?file=<%=encode("deferrals")%>;");

I have several other items on the same menu that require the same encoding. I am not to familar with asp or javascript and I am ready to break!

Any help with this would be much appreciated!


Poster: Andy
Dated: Wednesday December 15 2004 - 17:03:49 GMT

Hi,

Is the file extension named .asp = If not this could be the problem.

Also, what's the output look like. If it's got the <% and the %> in there it's not being parsed by IIS as an ASP page.

Hope this helps
Andy


Poster: p.timberg
Dated: Wednesday December 15 2004 - 17:30:11 GMT

The encode function is being called from an ASP include file.

all links on our site are encoded due to the nature of the information(finances).

This is what I see in the address bar when I click the link:
https://xxxx.xxxxx.xxx/xxx/FileUpload.asp?file=<%=encode("buttons")%>

This is what I should see:
https://xxxx.xxxxx.xxx/xxx/FileUpload.a ... yYvRmbhxGc
The "==czM3wyYvRmbhxGc" part is encrypted to protect client info and it also tells the page what type of file is being loaded.

I need to pass this into my menu_data.js submenu link. If I put the link on any of my pages it works fine. If I try to put it in the menu it does not.
Does that make any sense?


Poster: Andy
Dated: Wednesday December 15 2004 - 17:40:10 GMT

The output looks like raw ASP that hasn't been parsed.

Have you tried renaming menu_data.js to menu_data.asp and seen if that makes any difference.

If the filename is .js it will not have been parsed through the ASP interpreter, this mean is that Internet Information Server will treat the file as plain text and deliver it without any changes.

Hope this helps
Andy


Poster: p.timberg
Dated: Wednesday December 15 2004 - 17:45:41 GMT

yes I did try that and used both <!--#virtual and <!--#Include File but the page cannot find it or it cannot read it.


Poster: p.timberg
Dated: Wednesday December 15 2004 - 17:59:34 GMT

Thanks for your brainstorm. I have solved the issue with the help of your thoughts on IIS parsing.

I included the file as an asp page before but I forgot to add the <script> tag to the page.[/img]