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 ;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