Possemaster
01-24-2008, 02:29 PM
Hi everybody,
i have a drop down menubar that is writen in javascript.
I also have some ajax code to dynamicly load an external html inside the content div.
The both work, but i cant use my link for dynamicly load an external htm inside the javascript dropdown.
example:
ajax href to load data:
javascript:ajaxpage('home.htm', 'content') works in plain html links.
inside the dropdown.js is a list of links with this code:
var menu2=new Array()
menu2[0]='<a href="sample.htm">Ministry</a>' loads sample.htm
menu2[1]='<a href="#">Us</a>'
menu2[2]='<a href="#">Friends</a>'
menu2[3]='<a href="#">Statement</a>'
what i want is
menu2[0]='<a href=javascript:ajaxpage('home.htm', 'content')>Ministry</a>'
but then the drop down doesn´t load.
who can help me??
here is my url where the content is on: http://www.roytimmermans.be
the home/contact and encouragement buttons work now, because they are no javascript, the roll overs work also because i deleted the link inside the javascript.
i have a drop down menubar that is writen in javascript.
I also have some ajax code to dynamicly load an external html inside the content div.
The both work, but i cant use my link for dynamicly load an external htm inside the javascript dropdown.
example:
ajax href to load data:
javascript:ajaxpage('home.htm', 'content') works in plain html links.
inside the dropdown.js is a list of links with this code:
var menu2=new Array()
menu2[0]='<a href="sample.htm">Ministry</a>' loads sample.htm
menu2[1]='<a href="#">Us</a>'
menu2[2]='<a href="#">Friends</a>'
menu2[3]='<a href="#">Statement</a>'
what i want is
menu2[0]='<a href=javascript:ajaxpage('home.htm', 'content')>Ministry</a>'
but then the drop down doesn´t load.
who can help me??
here is my url where the content is on: http://www.roytimmermans.be
the home/contact and encouragement buttons work now, because they are no javascript, the roll overs work also because i deleted the link inside the javascript.