The javascript for a drop down menu
I have a problem. I am new in pdf
javascripting. What i want to do is to make a drop down menu with multiple items, clicking any of each items will take me to a bookmark or a web addess. I can make the drop menu (this is wuite easy, however without adding java script the drop down menu will be dead. Can someone help me with this script, i will be much obliged if some one has an actual pdf file with that drop down menu and the script. That will be much appreciated my email address is monaahmad at yahoo dot com
Regrads
Mona ahmad
You could try something like this in your "onchange" event of the drop down.
var sSelectedItem = xfa.event.newText; // get the item from the drop down
switch (sSelectedItem) {
case "Item 1":
window.location = "http://www.website1.com"
break;
case "Item 2":
window.location = "http://www.website2.com"
break;
Similar Messages
-
when installing acrobat XI pro the 'select a product' drop down menu does not include my product?
For future reference... if you have the trial version installed and plan to buy it after trying it out, there is no need to uninstall it. It can be activted to full use with the serial number from your purchase.
You should still be able to download and install the trial version and use your serial number to activate it. For the direct download link to the trial below, be sure to follow the steps outlined in the Note: Very Important Instructions section on the download pages at this site or else the download will not work properly.
http://prodesigntools.com/adobe-acrobat-xi-pro-standard-reader-direct-download-links.html -
Default values for dependent drop down menu
Hi!
I did create an insert record page that lets the user put in information using text fields. In addition the form has a dependent drop down menu for a category and then depending on the chosen category, the user is presented with choices in a second drop down menu for subcategories.
The insert of the record itself works fine.
The records are then listed in a table. A link to a details page should then list all fields of a chosen record. I have another form sporting them dependent drop down menus again. Since I retrieve a record from the database I would like to have the drop down menus default to the values stored in the database.
But whatever I tried the menus always default to the respective first entries in each menu.
I tried to use the "select value equal to" field in the "insert record" for the category and the "Default detail value" field in the dependent drop down item for the subcategory field.
Any pointers anybody?
Thanks in advance
JuergenHi there I cannot understand your request fully but I think I understand....
I think I have done nearly exactly what you need
I will try to explain
for a start I am working on a art gallery site that has many different artists and many different paintings
I am able to add a new artist and have that artist name appear automatically in a dropdown menu on my add painting form page so that when I add a new painting I do not have to type the arrtists name every time
I am not sure this is what you need but I think maybe....
(i have another site that displays different categories of jewellry... with a form that has same dropdown and can choose product category.... but the process is the same)
the way I did it was to first create an 'artist_info' table in my database and an 'add artist page' pretty simple
Then an painting_pnt table in my database and an 'add painting' page with a form that contains a dropdown menu that is dynamically populated from the artist_infotable... label from the artist_name field value from the artist_id field so the form uses two recordsets.......
Then in my painting_pnt table I have a field that stores the artist_id
So when I add a new artist..... the name automatically appears in the dropdown menu when I add a new painting I choose the artist name and then later I can filter recordsets on my detail pages using the id_artist....
there is a lot more to it as well but that should get you started
I hope this helps
If you have any questions at all I will try to explain better
takiteasy -
I don't understand why Firefox would take me to a link UNDERNEATH the link I clicked on in the drop-down menu. Items in the drop-down menu are supposed to be clickable. I'm tired of clicking on a BBC news story link only to be sent to the beanie babies page of Amazon.com.
== This happened ==
Not sure how often
== I installed my third-to-latest upgrade, about 3.5To add a Pinterest icon to your Home Screen do the followiing:
In Safari:
Go to the Pinterest Website - http://pinterest.com
Touch the Share icon at the top (looks like a box with an arrow coming out)
Touch Add to Home Screen -
The trouble started when I transferred applications from my old computer. When I click "bookmarks", all my bookmarks are there. When I try to "Organize Bookmarks", it acts like I have no bookmarks. When I try to "Bookmark this page", it does not show all the folders that are in the drop-down menu. There are a number of bookmark files in the appdata\mozilla\firefox\profiles area, none of which are complete. I tried a backup and restore in the organize menu and a backup was created, but I don't know what was backed up. I suspect nothing was backed up. When I clicked a restore, nothing happened.
I'm not familiar with Windows 7, but... is it possible there is a permissions problem with your profile folder, or read-only set on any database files?
-
My Firefox 5.0 doesn't have the new orange Firefox drop down menu (on the top left)
I just upgraded to 5.0 and the new drop down menu that's supposed to be on the top left side isn't there. Do I have to enable it or is something else wrong?
You see the orange (on Linux gray) Firefox button if the Menu Bar is hidden, so you need to hide the Menu bar via View > Toolbars, also accessible via Firefox > Options.<br />
If you need to access the hidden Menu bar then press F10 or hold down the Alt key to make the Menu Bar appear temporarily.<br />
You can place the Tab Bar on top.
* View > Toolbars : [ ] Menu Bar
* View > Toolbars : [X] Tabs on Top
*http://www.mozilla.com/firefox/features.html -
Is there a way to import a list of choices for a drop down menu?
I am on a really tight deadline. I need to enter 191 locations into a drop down menu in a survey. Can anyone help? THANK YOU!!
Hi,
Unfortunately, it is not possible to import a list of choices; it has to be entered manually.
Regards,
Nakul -
Hi
When i type a doc, can use different languages
when try to Google in a foreign language (non-English) the flag is faded and can't be selected via dropdown menu
Appreciate your helpTry a different browser, e.g. Firefox or Chrome instead of Safari.
-
Using Windows 7 and firefox 3.6.8 Occurs on all sites w/Firfox but not with IE.
Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]] -
Dynamic Drop Down Menu from an Access Database
Hello Everyone,
I am user Adobe Designer 7 to create a fillable PDF, and I would like to get the options for a drop down menu from my MS Access database. Basically I would like to populate the drop down menu with the names in the Access database. There i Have a table called PhoneNumbers and it contains the names of all the people I want to appear in the drop down menu that I just created.
This is what I did:
I created a drop down menu and then I clicked on Object > Binding > under "Default Binding (Open, Save, Submit)" choose "New Data Connection"
then connect to the database using a fileDSN. I opened the table where with the "names" column (PhoneNumbers)
and under the "Query," option, I wrote:
select * from PhoneNumbers
Then it gave me all the fields from the table and I dragged the "Last name" field over the drop down menu. I will need to find a way to get the "First Name" field to join the Last Name field to create one name that looks like this: Hill, Angie
The problem is that even though it shows the name from the Access database, it does not give me a list of all the names when I open the form in Reader 7...
No matter how much I click that drop down arrow, the name does not change...
It's almost as if it gets to the databse and gets the data from the database, but it cannot loop through it...
It's almost as if it's missing the code to loop through it...
Why is this? Any ideas how to fix it so it gives me a list of ALL the names, when I click on the drop down button?
After that, how can I add the first name to it?
The form would look like this:
Angie H. 202 641 2055
Right now it does look like that, but I cannot change to another name when I click the drop down menu. For the code to be working when I change to another name, the phone number also changes to the phone number of that person:
Barry S. 703 555 1258
The name is in a drop down menu, the phone number is in a textbox.
Can you help me with this?ANGELA,<br /><br />Well, the good new is that you are not far off...What you need is to insert the following code using Java Script under the Initialize function. Just replace the Connection name, The Hidden Value, and the Display Text with your information. This is a function is 8.0 but will work with 7.0<br /><br />/* This dropdown list object will populate two columns with data from a data connection.<br /><br /> sDataConnectionName - name of the data connection to get the data from. Note the data connection will appear in the Data View.<br /> sColHiddenValue - this is the hidden value column of the dropdown. Specify the table column name used for populating.<br /> sColDisplayText - this is the display text column of the dropdown. Specify the table column name used for populating.<br /><br /> These variables must be assigned for this script to run correctly. Replace <value> with the correct value.<br />*/ <br /><br />var sDataConnectionName = "DataConnection"; // example - var sDataConnectionName = "MyDataConnection";<br />var sColHiddenValue = "CAT_Corp_SeqNo"; // example - var sColHiddenValue = "MyIndexValue";<br />var sColDisplayText = "CAT_Corporate"; // example - var sColDisplayText = "MyDescription"<br /><br />// Search for sourceSet node which matchs the DataConnection name<br />var nIndex = 0;<br />while(xfa.sourceSet.nodes.item(nIndex).name != sDataConnectionName)<br /> {<br /> nIndex++;<br /> }<br /><br />var oDB = xfa.sourceSet.nodes.item(nIndex);<br />oDB.open();<br />oDB.first();<br /><br />// Search node with the class name "command"<br />var nDBIndex = 0;<br />while(oDB.nodes.item(nDBIndex).className != "command")<br /> {<br /> nDBIndex++;<br /> }<br /><br />// Backup the original settings before assigning BOF and EOF to stay<br />var sBOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("bofAction");<br />var sEOFBackup = oDB.nodes.item(nDBIndex).query.recordSet.getAttribute("eofAction");<br /><br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayBOF", "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute("stayEOF", "eofAction");<br /><br />// Clear the list<br />this.clearItems();<br /><br />// Search for the record node with the matching Data Connection name<br />nIndex = 0;<br />while(xfa.record.nodes.item(nIndex).name != sDataConnectionName)<br /> {<br /> nIndex++;<br /> }<br />var oRecord = xfa.record.nodes.item(nIndex);<br /><br />// Find the value node<br />var oValueNode = null;<br />var oTextNode = null;<br />for(var nColIndex = 0; nColIndex < oRecord.nodes.length; nColIndex++)<br /> {<br /> if(oRecord.nodes.item(nColIndex).name == sColHiddenValue)<br /> {<br /> oValueNode = oRecord.nodes.item(nColIndex);<br /> }<br /> else if(oRecord.nodes.item(nColIndex).name == sColDisplayText)<br /> {<br /> oTextNode = oRecord.nodes.item(nColIndex);<br /> }<br />}<br /><br />while(!oDB.isEOF())<br />{<br /> this.addItem(oTextNode.value, oValueNode.value);<br /> oDB.next();<br />}<br /><br />// Restore the original settings<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sBOFBackup, "bofAction");<br />oDB.nodes.item(nDBIndex).query.recordSet.setAttribute(sEOFBackup, "eofAction");<br /><br />// Close connection<br />oDB.close();
-
Pass a url variable to javascript for drop down menu
Hello,
I'm in over my head as far as javascript goes. This is what I
am trying to do. I have this URL...
http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
I want to take the variable for ProdAbbr which in this case
is "shm" and make that a variable in javascript. So that I can add
the variable to a dynamic link I'm using for a drop down menu.
mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?SortBy=all&ProdAbb r=eval(ProdAbbr)'");
I really have no clue what to do. I haven't hardly used
javascript at all and I'm looking for some charity. Does anyone
have any ideas on how I can do this?
Thanks
Steve
Any insight is greatly appreciated.jawwinker wrote:
> Hello,
> I'm in over my head as far as javascript goes. This is
what I am trying to
> do. I have this URL...
>
> <a target=_blank class=ftalternatingbarlinklarge
> href="
http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
>
> I">
http://www.grasshorse.com/prod2.cfm?SortBy=all&ProdAbbr=shm
>
> I</a> want to take the variable for ProdAbbr which
in this case is "shm" and
> make that a variable in javascript. So that I can add
the variable to a
> dynamic link I'm using for a drop down menu.
>
>
mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?Sort
> By=all&ProdAbbr=eval(ProdAbbr)'");
mm_menu_0520211545_0.addMenuItem("All Departments","location='prod.cfm?Sort
By=all&ProdAbbr='"+ProdAbbr+"'");
Mick -
Here is a screen shot of all my options when I open iTunes.
Hey NFredrick45208,
Thanks for the question. This drop down menu is actually specific to your local library. You'll want to select your iPhone in the upper right corner to browse the device:
iOS: Syncing your data with iTunes
http://support.apple.com/kb/HT1386
Furthermore, you may want to turn on the iTunes Sidebar to return to the layout of previous versions:
iTunes 11 for Mac: Customize the iTunes window
http://support.apple.com/kb/PH12164
Use the Sidebar to access your content, devices, and the iTunes Store
You might want to show the Sidebar if, for example, you use a screen reader.
Choose View > Show Sidebar.
And finally, here is an article about importing your personal photos:
iOS: Importing personal photos and videos from iOS devices to your computer
http://support.apple.com/kb/HT4083
Thanks,
Matt M. -
I edited my Drop Down Menu, yet the changes arent reflected online
Hi everyone,
I created a website for a friend, and I used Drop Down Menus
for a image category. Now, I went back into the behaviors palette
in DW, and I edited the name of one of the items in the menu. But
when i uploaded my file back online, none of the changes took
place, and this was in 5 different files. Here's the site:
http://www.helenbwilson.com/
If you click on the "Portfolio" button, a drop down menu
should come out—but instead of saying "Godot and Mul." it
should only say "Godot". Can anyone tell me what I did wrong?
I already re-uploaded my "mm_menu.js" file back online. Is
there another file Im missing?
Any help would be greatly appreciated.
Thanks everyone
-PsyThe mm_menu.js file is not controlling it.
It is the JavaScript on the page:
function mmLoadMenus() {
After you make the changes you will need to upload the pages
you made the changes on.
BTW you might want to consider another option for that menu:
http://www.projectseven.com/tutorials/navigation/snapmenus/index.htm
Ken Ford
Adobe Community Expert
Fordwebs, LLC
http://www.fordwebs.com
"psypent81" <[email protected]> wrote in
message news:f04058$55s$[email protected]..
> Hi everyone,
>
> I created a website for a friend, and I used Drop Down
Menus for a image
> category. Now, I went back into the behaviors palette in
DW, and I edited the
> name of one of the items in the menu. But when i
uploaded my file back online,
> none of the changes took place, and this was in 5
different files. Here's the
> site:
>
>
http://www.helenbwilson.com/
>
> If you click on the "Portfolio" button, a drop down menu
should come out?but
> instead of saying "Godot and Mul." it should only say
"Godot". Can anyone tell
> me what I did wrong?
>
> I already re-uploaded my "mm_menu.js" file back online.
Is there another file
> Im missing?
>
> Any help would be greatly appreciated.
> Thanks everyone
>
> -Psy
> -
Form2mail how do I set up the form to sent to a recipient selected from a drop-down menu?
I am trying to configure dreamweaver form2mail to be able to send the information submitted to individual employees. I would like the form to be set up where as you choose the recipient form a drop down menu and the only that recipient would receive the information collected on the form. I can't seem to find any information on this. I can only find info on sending to multiple recipients at the same time. I only want the recipient that is selected to receive the form information.
Alternatively, can anyone recommend a low cost or FREE form to mail system.
Thanks in advance for your assistance!Jim, That is exactly what I need. I'm using Form2Mail the Dreamweaver extension for Adobe Dreamweaver. It only gives me the option to send to one email address or cc to multiple not individual sends.
Here is the html
<form action="/HDWForm2Mail/Form2Mail.php" method="post" enctype="multipart/form-data" name="form1" id="form1" accept-charset="iso-8859-1">
<p>
<label for="message"></label>
<textarea name="message2" id="message" cols="50" rows="5"></textarea>
</p>
<table width="429">
<tr>
<td><strong>Recipient:</strong></td>
<td><label for="recipient"></label>
<select name="recipient" id="recipient">
<option value="[email protected]">Mr. Person 1</option>
<option value="[email protected]">Mr. Person 2</option>
<option value="[email protected]">Mr. Person 3</option>
</select></td>
</tr>
<tr>
<td><strong>Your Email Address:</strong></td>
<td><label for="email"></label>
<input type="text" name="email" id="email" /></td>
</tr>
<tr>
<td><strong>Attachment:</strong></td>
<td><label for="file"></label>
<input type="file" name="file" id="file" /></td>
</tr>
<tr>
<td colspan="2"><strong>To Submit your email, click the SEND button:
<input name="send" type="submit" id="send" onclick="MM_validateForm('email','','RisEmail','message','','R');return document.MM_returnValue" value="Send" />
</strong></td>
</tr>
</table>
<input type="hidden" name="hdwemail" id="hdwemail" value="lisa+email.com" />
<input type="hidden" name="hdwok" id="hdwok" value="http://ricochec.com/thank-you.html" />
<input type="hidden" name="hdwnook" id="hdwnook" value="http://ricoche.com/error.html" />
</form> -
Drop Down menu for navigation bar
I created a site a couple years ago (with GoLive) with a
navigation bar with rollover states. I would like to create
something very similar to it now in Dreamweaver CS3 but with the
addition of a drop down menu for just a couple of the navigation
icons. I have been told by Adobe tech support on the phone that I
need some custom coding to do this.
To see what the navigation bar looks like now go to
www.aimeeastvillage.com
I DON"T need the drop down choices to be in a whimsical font.
I just don't want to have to direrct the reader to go to an
additional page. PLEASE tell me this is possible for a relative
beginner! Thanks.Check the uberlink and MacFly tutorials at PVII -
http://www.projectseven.com/
and the Navbar tutorial/articles at Thierry's place
http://tjkdesign.com/articles/dropdown/
Or this one (more recent article):
http://tjkdesign.com/articles/Pure_CSS_Dropdown_Menus.asp
Or to get it done fast, go here -
http://www.projectseven.com/tutorials/navigation/auto_hide/index.htm
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Purple Mango" <[email protected]> wrote in
message
news:fpv17r$gsp$[email protected]..
>I created a site a couple years ago (with GoLive) with a
navigation bar
>with
> rollover states. I would like to create something very
similar to it now
> in
> Dreamweaver CS3 but with the addition of a drop down
menu for just a
> couple of
> the navigation icons. I have been told by Adobe tech
support on the phone
> that
> I need some custom coding to do this.
> To see what the navigation bar looks like now go to
> www.aimeeastvillage.com
> I DON"T need the drop down choices to be in a whimsical
font. I just don't
> want to have to direrct the reader to go to an
additional page. PLEASE
> tell me
> this is possible for a relative beginner! Thanks.
>
Maybe you are looking for
-
when ever i plug in my ipod to add music onto it my itunes says that i need to update it to 'version 11.1 or later' but i have it and thats the one i am useing.
-
Hello all. I´m using a PCI-6220 and the Traditional NI-DAQ Compatibility VI's to make the acquisition that is in the attached VI. But when I click the increment/decrement button on the numeric controls my acquisition stops. In the same PC I made the
-
I'm not very techie so I hope I can describe this correctly. I have 2 websites in iWeb, both have there own domain name. The second website keeps bringing up the first websites site name. Why does it do that? When iWeb sends me to the site, it is cor
-
Hello experts, I want to see the total quantity of all the line items in MIGO . How is it possible. I am aware that there can be a discrepancy in unit of measure. BUt still as SAP does in some of the reports ( like total storage location stock where
-
Message types for ALE distribution
Hi, I am working on SRM 7.0. I need to copy the org structure from one client to another. For that I am using the ALE distribution model. Can anyone please let me know all the message types reqired for transferring the org structure. Thanks, Bhakti