dynamic navigation list menu - javascript

I am working on a small application and I basically need a list of 5 items say
Name
Address
City
Country
Zipcode
Whenever the user clicks on anyone of these he needs to be directed to another page and that particular item needs to be highlighted.
I want to do this dynamically. I have an idea that it can be done with javascript [document.getelementbyid()] but dont know exactly how.

are you trying to do something like this:
http://jqueryui.com/demos/tabs/
take a look at the AJAX example to get content from other pages

Related

How to make a product page in Wordpress

I am learning Wordpress currently so far I know how to design the webpage, but what I want to do next is to make a product page without ordering. What I want is the following:
List all my products and if one clicks on a product it will show the detail page of that product
The products can be added to a list and then there will be a contact form which will take the list and send it to me in a pdf or excel (but at first enough if only names are sent via email) so I can answer it with the asked question.
I sadly could not find any starting point I do not even know if there is such a plugin, if not can I make one myself? I know javascript so I think I could Programm it myself but would prefer if there is some plugin I can use due to time issues.
You can also use woocommerce. If you don't want a user to order something with a "Add to cart" button you could hide this button with your code or a pluging for example https://de.wordpress.org/plugins/yith-woocommerce-catalog-mode/

How do I filter across Tableau workbooks through the dropdowns?

Please be patient with my English, and it's my first time to be here. I am very new to Tableau and JavaScript as well. I am trying to find a way to filter the dashboards in a different place. For example, when I click a person name from a list on the first dashboard and it shows a result, once I click another dashboard from the drop-down (not on API, just come from an HTML nav bar), this dashboard should show any results with the person name I chose on the first dashboard.
Like this: I'm viewing Dashboard 1. I apply filter Anthony. Then I go to Dashboard 2 after clicking this on drop-down. IF Dashboard 2 also has a filter named exactly "Anthony" show the result automatically.
I tried to research about this, but it does not help very much. I read the API reference and I thought getFilterAsync() from FilterEvent Class would work, but it doesn't. I would appreciate if you can explain or show an example with Javascript codes constructively. This example is similar to my goal, but I don't plan to use two dashboards and textbox/button on the same page. Another example is sort of what I want, but I don't need to put specific values on method to filter. I need to filter across workbooks after clicking anything on the API. It's not just a person name. It can be a date, number, location, etc. I want to know how I make filter values/parameters active on any dashboards.
Any response will be helpful. Thank you!
use action filter, where you specify the source dashboard and then the target dashboard

How to create specific pages for resources in my web page?

I was wondering what the best approach would be to create dynamic webpages based on data I have available?
I have a page which shows a table with information about certain countries, but there is more information I would like to show. What I want to achieve is that the user looks at the table and finds a land they want to know more about. When the user clicks on the country name for example, a new page should open with the data I provide. How to open a new page and all that is not what I'm asking for, but more how I would go about to achieve dynamically creating a html-page based on what the user clicks.
I have data on 150 countries, so I want to able to create the country specific pages on the fly, not manually creating 150 html-pages for the countries.
I hope that was clear enough, if not, please let me know!
Thanks in advance!
You have to use php and mysql.
add your countries in mysql
add data for each country in mysql
make html page table with all the countries and links for each country that send the viewer to page something like moreinfo.php?country=1
make the moreinfo.php page ,which depend on the number for country=
it will display the certain data
If you cant use php then you have to create files (pages) with the data for each country and on moreinfo.html execute javascript that will read the content of each file

Loading Specific Content from one page into another Page using Ajax

I'm new to Ajax and was told need to use it for what I'm trying to accomplish here.
Here is the website... http://modocom.ca/gillons
If you scroll down up will see a section called Find an Office with drop down menu in it. What I need is for when someone click on for example Emo in the dropdown menu the location info from.... http://modocom.ca/gillons/emo goes under the dropdown and so on for each location in the dropdown and also when your on the Emo page for example you click on the dropdown menu and can choose different location and get new info as well for selected location.
Hope that makes sense and hopefully someone could give me a hand.
Thanks,
Mike
OK, I'm not going to write code as it looks as though you haven't actually tried anything yourself yet.
However, the sequence of events, one version of them anyway, might look like this.
Using jQuery, put a change event on your dropdown.
When the event triggers, and this depends on your backend as you have not spcified APS.Net, MNV, Java etc, you need to post back to a code file of some sort and pass in the value within the dropdown.
From there, in your c#, java, pythod, whatever, code, take that value, generate some HTML and return that HTML to the client.
At the client, you accept the HTML and fill say a DIV with the returned HTML.
If you are using MVC, you can return a PartialView which is a better design.

Customize the facebook like button

I have put up my code in jsfiddle. The link is http://jsfiddle.net/QWAYE/1/ I have also put another sample code in this link http://jsfiddle.net/MCb5K/ The first link is working fine for me and i want to make it look like the second link but dont know what changes i need to do. Please suggest what change i need to do. Also i want to display only the number of person who likes the page and not the name. Right now the name of person is displayed and not the number like how it is showing in the second link. How to do that?
Note: I dont want the send button and the rest of the text, only need like button and the number of likes
You can use the like plugin on the facebook developer page.
Go to this link and you will be able to display what you want on the facebook iframe.
http://developers.facebook.com/docs/reference/plugins/like/
You select layout style -> button_count

Categories