Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:20
Javascript and URL
Poster: sjm133
Dated: Friday April 11 2008 - 14:28:30 BST
Hi,
I'm still doing some testing with this component, which so far is incredible, but have a small problem. I have many samples created doing different things created different ways. One issue I have now is I need to be able to use a javascript function to create the URL for my menu item. My target page MUST be returned to the user non-cached. In order to accomplish this I need to append a random number, generated by my javascript function, as a URL parameter that gets passed to the server. Since the number is truly random, both the browser and the server see the request as a "new" request, the browser will not use a cached copy and the server won't either. A new random number has to be created with each mouseover resulting in a unique URL request to the same page each time. Can anyone suggest a method of doing this? It's probably a fairly simple thing but I've just been thinking about it too long.
Thanks
Re: Javascript and URL
Poster: Ruth
Dated: Friday April 11 2008 - 18:24:43 BST
Hi,
Well, I'm sure you can do it, since you can use a property in the menu called clickfunction to activate functions on click. So, since the person is 'going' to a new url then that requires a click on the item and you should be able to set your function there.
I am not a js person and this seems pretty advanced. If you are testing out the menu with a view to purchasing it, then I suggest you contact Milonic and ask them if this is a function the menu can handle [though I'm pretty sure with all I've seen it do over the years, it can]
If you are a licensed menu holder, professional or above, then you can use the support system on the main site. It is the text link at the bottom of the page Tech Support, and then you can read the directions for doing a support ticket.
Ruth
Re: Javascript and URL
Poster: sjm133
Dated: Friday April 11 2008 - 20:55:30 BST
The menu is truly suppose to be built using ajax. I'm following the examples and have it working, sort of. The first mouseover makes the appropriate server call and the server script creates the menu and it shows up nicely. However, when I mouseout the menu disappears, as expected, but when I mouse over again the menu is rendered very quickly and is not being redrawn by the server. I know this because my server script returns the first menu item as the current date and time on the server. The first pass shows the correct values. I mouse out and wait a minute or so then mouse over again and the same exact date and time is still there, so the request is not being sent again. If the request is not sent again, then this is not truly ajax. I was trying to validate this by appending the random number to the URL to be sure but still cannot get it to work.
Re: Javascript and URL
Poster: Ruth
Dated: Friday April 11 2008 - 21:02:32 BST
Hi,
You will have to contact Milonic about how to do this. I have no idea, at all. Server? Isn't that a waitress or something? I thought ajax was a cleanser. Sorry, my silly side seems to have popped up, since I don't know what to tell you and I know it must be frustrating.
Ruth
Re: Javascript and URL
Poster: sjm133
Dated: Friday April 11 2008 - 21:10:44 BST
I can't contact them without a license, correct? ...or can I. I'm testing prior to purchase.
Re: Javascript and URL
Poster: Ruth
Dated: Friday April 11 2008 - 21:24:52 BST
Hi,
No, you can't for support, but you can for pre purchase questions. So, you have two choices
1. Try contacting them to ask if it will do what you want, though I'm about 99% sure it will
2. Or purchase a the menu and if it won't do what you need Milonic policy is:
Code:
Our refund policy is 100% money back should the product not meet your requirements.
There is no financial risk involved at all. Just let us know your views and we'll do all we can to help. If we can't satisfy your needs you'll be refunded in full.
There is no financial risk involved at all. Just let us know your views and we'll do all we can to help. If we can't satisfy your needs you'll be refunded in full.
Neither I nor John work for Milonic, we volunteer because we really like the menu and Milonic is a great company. [and I like helping people ]
Hope this helps
Ruth
Re: Javascript and URL
Poster: sjm133
Dated: Friday April 11 2008 - 22:40:30 BST
How do I contact them? Every link I see for any type of support says that I don't have the ability to ask for help.
Thanks
Re: Javascript and URL
Poster: Ruth
Dated: Saturday April 12 2008 - 1:05:05 BST
http://www.milonic.com/contactus.php
That's from the main website http://www.milonic.com/ under the about us tab.
It has a form to fill out. It is NOT for support, but for pre sales questions, so I would think you could query whether the menu will do what you want it to do.
Ruth