script.js in html Side. For what???


Author Message
DeDouby

Posted: 7/18/2010
Quote message 

For what was the script.js? I Export to one html Side. When i want to set one Link Active in the Nav Menu, dont work. When i delete the script.js the Nav Menu works without Errors

To Test.
- Make a Side. Befor you Export the Side to HTML,
- klick One Link (eg. the 3. LInk) in Artisteer.
- Now Export the page to html
- In the page.html was now the link (eg. the 3. Link) with class="active".

<li class="active"> <a class="active" href="page.html?i3"> <-- Not the First Link

- Load the page.html in Browser. No LInk was Active.

Now del the script.js or Disable JavaScript.

Load the page.html again. Link Number 3 was now Active.

I think, the Script in script.js has one error.
 
DeDouby

Posted: 7/18/2010
Quote message 

When i delete all between

/* begin VMenuItem */

/* end VMenuItem */

All works.

the class="active" works on Chrome, Firefox, IE.

I think, between


/* begin VMenuItem */

/* end VMenuItem */

was a bug.
 
DeDouby

Posted: 7/18/2010
Quote message 

Upss...

Wrong Thread. Must be in Website Templates...
 
DeDouby

Posted: 7/18/2010
Quote message 

// ch.className = ch.className.replace(/active/,

"").replace(" ", " ");

With // will now works. Please Fix the Script in the next Version
 
Dave Porter

Posted: 7/18/2010
Quote message 

Please create a new 'Case' via the support link to report this - other wise staff may not see this.
This forum is only a user-to-user forum.
regards, Dave