Javascript and URL

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
sjm133
Beginner
Beginner
Posts: 8
Joined: Sat Apr 05, 2008 5:35 pm

Javascript and URL

Post by sjm133 »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Javascript and URL

Post by Ruth »

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
sjm133
Beginner
Beginner
Posts: 8
Joined: Sat Apr 05, 2008 5:35 pm

Re: Javascript and URL

Post by sjm133 »

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.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Javascript and URL

Post by Ruth »

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. :lol: 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
sjm133
Beginner
Beginner
Posts: 8
Joined: Sat Apr 05, 2008 5:35 pm

Re: Javascript and URL

Post by sjm133 »

I can't contact them without a license, correct? ...or can I. I'm testing prior to purchase.
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Javascript and URL

Post by Ruth »

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: Select all

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. 
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
sjm133
Beginner
Beginner
Posts: 8
Joined: Sat Apr 05, 2008 5:35 pm

Re: Javascript and URL

Post by sjm133 »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Re: Javascript and URL

Post by Ruth »

http://milonic.com/contact.php

That's from the main website http://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
Post Reply