Hi, does anybody know how to create a drop down menu or a combo box that can link to another page when selected/highlighted? need some help.. thanks..
Sufian.
Hi, does anybody know how to create a drop down menu or a combo box that can link to another page when selected/highlighted? need some help.. thanks..
Sufian.
Here's how you can create a combo**** dropdown menu using BlueVoda:
1. Create a new form, give it the name GoMenuForm
2. Clear the action and encopting type fields (so they're empty!)
3. Add an Advanced Button to the form change the name to Go
4. Set the properties to these values:
Value: Go
Button type: OnClick
OnClick action: Execute Javascript function
OnClick value: GoMenuFormLink()
5. Add a combobox to the form and launch the object properties
6. Set the name to: GoMenu
7. Add a new item with Item Text: Select a link and Initial state: Selected
8. Now it's time to add you links for example:
Click Add to add a new item:
Item Text: Microsoft
Value: http://www.microsoft.com
And another one:
Item Text: Vodahost
Value: http://www.vodahost.com
9. The final step:
Right click the form and select Object HTML add this code to the Before Tag box:
<script language="JavaScript">
function GoMenuFormLink()
{
var a = document.GoMenuForm.GoMenu.options[document.GoMenuForm.GoMenu.selectedIndex].value +"";
if(a != '')
{
if(parent!=self)
{
var f = self;
while(f!=window.top)
{
f = f.parent;
}
if(a.indexOf("://")!=-1)
{
f.body.window.location.href = a;
}
else
{
window.top.location.href = a;
}
}
else
{
window.top.location.href = a;
}
document.GoMenuForm.GoMenu.selectedIndex=0;
}
}
</script>
Forum Moderator
BlueVoda Specialist
what does value mean in the combo boxes?
I know this thread is old and I think BlueVoda has added the Go Menu tool.
I want the initial item to read "Select a Site" with no value.
Both this code and that generated by the Go menu tool tries to go to the web url: "Select a Site". How do you stop this.
I thought the code a!='' would stop this but it doesn't
also where in this code does the target="_blank" go?
I am sure you experts can tell me an easy solution.
Regards
Richard
ok I'm new - It's not that old I was looking at the members joining date.
In that case why not use the Go Menu Tool?
Regards
Richard
It is old. It is reffering to an older BV version, when the Go Menu didn't yet exist. Now you do have it ready, and the first item (Select a link) is inactive
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
Thanks I thought it was.
However I still get get a page not found error as it looks for a web page.
When I enter an initial value.
I even moved it to item 1 and no initial value but you just get an empty box.
I can't give a link because I have changed it to a form as per the sample.
There is an advantage in this in that you can set the colours easily.
The form sample is http:www.no925.info/main.html
Regards
Richard
So just created an empty go menu and
File not found
Firefox can't find the file at /C:/DOCUME~1/Richard/LOCALS~1/Temp/preview/Select a link.
* Check the file name for capitalization or other typing errors.
* Check to see if the file was moved, renamed or deleted.
Regards
Richard
Sorry but i can't follow you. The "Select a link" item is not active in BV's Gomenu. The rest of the links are. Have a look at www.navaldesign.info/Tips/gomenu.html
Maybe i'm missreading your posts ?
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
If I click GO with 'Select a link' it goes here http://www.navaldesign.info/Tips/Select%20a%20link
So I do not know what you mean when you say it is not active in the go menu.
P.S. I found the thread to your advanced forms. Looks great but haven't had chance to go through it more than a glance yet.
Regards
Richard
CRACKED IT
It does what you say in Internet Explorer
BUT
In Firefox it does what I say !!!
How I do not know because there is no value. if you view source.
So how did I get to that page of yours????
Regards
Richard
So can the code be alterered to fix the problem in Firefox and stop people linking to a strange and undefined value???
Regards
Richard
Hi, I have successfully created the combobox, but whenever I publish it on the internet browser, there is this message appear. Can anyone please teach me how to avoid this message from appearing whenever I load the page? Cheers.
*Please click on the attached thumbnails below to see the problem I am having.
You get this only in preview, when published it will be ok.
Navaldesign
Logger Lite: Low Cost, Customizable, multifeatured Login script
Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!
There are currently 1 users browsing this thread. (0 members and 1 guests)