- Screen name: GeorgeCoder
GeorgeCoder's Profile
7 Posts
18 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- My form as a checkbox next to each line, this checkbox will exclude those items from copying to the clipboard. Is there a way using JQuery to exclude items from copying to the clipboard, but keep the remaining non checked items?if they select, State, Price and Agency, then they should not be copied to the clipboard, but Manager and Name should be.
- <div id="Sales">
- <div class="sale">
- <input type="checkbox" id="salesId_1" value="state"/><label for="State">State/label>
- <input type="checkbox" id="salesId_2" value="salePrice"/><label for="Price">Price</label>
- <input type="checkbox" id="salesId_3" value="manager"/><label for="Manager">Manager</label>
- <input type="checkbox" id="salesId_4" value="Name"/><label for="Name">Name</label>
- <input type="checkbox" id="salesId_5" value="Agency"/><label for="Agency">Agency</label>
- </div>
- </div>
- Not sure if this is the correct forum for this,I'm using a the vectormap plug in which I got working, I'm able to hard code colors for states with no problem, however, I need to color each state based on data that is coming from the DB in JSON format.here is the code I'm using that is hard coding the state colors:
- jQuery('#vmap').vectorMap({
map: 'usa_en',
showTooltip: true,
selectedColor: null,
hoverColor: '#1a75ff',
color: '#ffffff',
showLabels: true,
backgroundColor: null,
borderWidth: 4,
colors: {
ct: '#33A5FF', - de: '#ff5733;
},
onRegionClick: function(event, code, region){
event.preventDefault();
}
});
I want to make the states a different color. Has anyone made the colors for the states dynamic?my JSON looks like this:- {
"d": {
"results": [
{
"State": "CT",
"Governor": "Malloy",
"GovParty": "D",
"StateSen_Total_D": "17",
"StateSen_Total_R": "16",
},
{
"State": "DE",
"Governor": "Carney",
"GovParty": "D",
"StateSen_Total_D": "8",
"StateSen_Total_R": "12",
}
]
}
}
I need to check the StateSent_Total values and if one is greater then the other, I need to make the state either blue or red.
- 01-Dec-2016 01:54 PM
- Forum: Using jQuery UI
I'm running into an issue with showing all of the associated data in my accordion, meaning that, not everything is appearing in the expanded view for the header of the accordionwhat happening is that, the data is showing as:BMW:325iMercedesC280ChevySilverado 2500and I should be seeing the data asBMW:325i525M3M5MercedesC280s550AMG c43ChevySilverado 2500Silverado 3500Silverado 1500Camerohow can I get all of the models to appear under the manufacture and not just the first model returned?here is my code:- $.each(data.d.results, function(index, j) {
- header = "<div id='Cars'>"
- if(title != preTitle)
- {
- html += "<h3><a href='#'>" + Title + "</a></h3><div>"
- html += CarModels</div"
- preTitle = title;
- }
- });
- $("#CarSales").append(header + output + "</div>" );
- I have a web page that I need to do some jquery and it has to call when the page loads in the document.ready() call, however, the page is also referencing a JS file that has JQuery and a document.ready() call in it. How can I get the document.ready() call to work on page and not error out on the other document.ready() call in the referenced JS file?
- 28-Apr-2016 09:16 AM
- Forum: Using jQuery
I'm getting a string back from the database that is:var x = ImageValue;the ImageValue= <img alt="" src="/newImage.gif" style="border: 1px solid;"/> //this is what is coming from the databasehow can I split [ImageValue] to only get the src tag, so I get it as:src="/newImage.gig"that's the only section of this string I needI have a script that is calling a WebAPI. If I host the web page and the API on the same server it works fine, however, when I move the API to our app server and the web page to the web app server, I get the following error messages when calling the URL of the API:
SEC7120: Origin http://localhost:2020 not found in Access-Control-Allow-Origin header.
SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.I can access the service directly in the browser from both servers. My script looks like this for the URL call;
- $.ajax({
url: "http://servername:2020/api/cars/GetAllCars/",
type: "GET",
crossOrigin: true,
dataType: "xml",
success: function (data) {
xmlParser(data);
},
I'm calling other API's on other servers the same way, is there something wrong with the script or should I change the API code? I
- I have an API that is returning data asAccounting -- AccountantAccounting -- book keeperIT -- DeveloperIT -- ArchitectIT -- Jr . DeveloperMarketing -- SalesMarketing -- Sales Managerand in my accordion I want to see the data asAccounting-- Accountant-- book keeperIT-- Developer-- Architect-- Jr . DeveloperMarketing-- Sales--Sales ManagerI'm able to show the header, however, when I add the roles, its not grouped, how can I show the data in the accordion correctly? I need to do this 100% client side,
- «Prev
- Next »
- $.ajax({
- jQuery('#vmap').vectorMap({
Moderate user : GeorgeCoder
© 2013 jQuery Foundation
Sponsored by and others.

