Web Languages and Standards

39K

Solutions

57

Articles & Videos

30K

Contributors

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.

Share tech news, updates, or what's on your mind.

Sign up to Post

I'm writing structured data code for my breadcrumb and ran into a question about the position number of the item.

For Seattle:
1. US-->2. WA--->3. King County--->4. Seattle    

This is my breadcrumb for Seattle, which is in position 4.  The numbers are not displayed to the users of course, but in the code behind for structured data, the numbers are required by Google.  
"itemListElement": [{
    "@type": "ListItem",
    "position": 1,

Open in new window



However Canada doesn't have counties for their cities.  So on my Calgary page, the breadcrumb naturally will not show a "county" level.  but when it comes to the structured data code behind, which is appropriate, is calgary in position 3 or position 4?  

1.  Canada-->2. AB-->4. Calgary  

1.  Canada -->2. AB -->3. Calgary


Since all the US cities have the city at the fourth position, I wondered if I should "skip" a level for my pages on Canadian cities, but I'm not sure what the best practice is.  Should I code my structured data to put canadian cities in position 4, or position 3?
0
On Demand Webinar: Networking for the Cloud Era
LVL 8
On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Just saw an article on Winn-Dixie losing court battle dealing with their website and lack of being fully accessible to the disabled. Conclusion to the case was websites will need to conform to WCAG 2.0 standards. Our company operates 3 websites, all on the Shopify platform. I have been given the task to find out if we are compliant.  I downloaded the NVDA screen reader and all three sites were compatible with that, as well as a Mac screen reader. My question...anyone dealing with this and what tips or advice can you supply to assist in the matter ?  Is there an official "checklist" ?  Thanks in advance, I am sure we will be hearing more about requirements and potential lawsuits soon enough.
0
Dear sirs,

I have CSRF enabled in my REST application.
I use either RestTemplate or Postman as Client.
How can I set the application in a way that each request (POST/PUT/DELETE) is carried with a token in its header.

I remember using an implementation of  ContainerRequestFilter while working on Jersey, and I could take care of my requests globally.

I am looking forward to hearing from you.
0
I am developing a vacation planner http://www.osoviejotravel.com that will allow clients to select various trips on fishing boats, sailboats,select tours and activities. The page is loaded with a database query and each checkbox has a unique ID number (id from database).  As per Ray Paseur's example in Expert Exchange Contributor, I am using sessions to store the checkbox  values. It works as described except when I add another check to add another boat to the list.  The new boat is stored however the previous selection is deleted.  How can I add new selections without deleting the old?
 Below is the code:

<?php // RAY_checkboxes_session.php
/*?>error_reporting(E_ALL);<?php */
session_start();

// INITIALIZE SOME TEST DATA - THIS MIGHT COME FROM A DATA BASE
if (isset($_SESSION[$fish_id])) $_SESSION[$fish_id] = TRUE;

// PROCESS THE POST DATA
if (isset($_POST[$fish_id])) $_SESSION[$fish_id] = TRUE;
if (!isset($_POST[$fish_id])) $_SESSION[$fish_id] = FALSE;

// CREATE THE FORM
$fishid_alt = $fish_id . "Alt";                  
$form = <<<EOFORM
<form action="index1.php#fish" method="post">
<label><input name=$fish_id type="checkbox" /> Yes
 
<input type="submit" value="Add to Planner" title="click 'Yes' and then click 'Add to Planner'"/></label>
</form>
EOFORM;

// REPLACE THE FORM FIELDS TO INDICATE THE CHECKED VALUES IN THE SESSION
if ($_SESSION[$fish_id]) $form = str_replace($fish_id, '$fish_id checked', $form);


// PRESENT THE FORM
echo $form;; ?>
0
I am looking into Webpack 2 Code Splitting for a project but I'm not sure if I understand how code splitting works.

In my project I have 2 features.

Each feature consists of 4 or 5 files so the code for each feature has several javascript files where the code lives.

These javascript files are NOT ES6 Modules, just standard javascript files with code.

With Webpack 2 Code Splitting I intend to break all these files into 2 groups so that can load them on demand when needed.

So, what I'm thinking of doing with it is ...

1. Project Loads just the core

2. On demand the features will load when needed.

Would code splitting work in this circumstance and is this what it's for?
0
I am having little difficulty in resolving one URL redirection in remote location. Example: My website is https://temp.company.local/dev/rel and it's accessible through Remote host. However, when user requests for https://temp.company.local, he is getting redirected to Apache manager page which I don't want. Can you please provide a solution to fix this problem so that only proper URL will work and half will not redirect to tomcat manager page?
Just to update I'm not using IIS.

Best Regards,
Abhi
0
É possível compilar o Delphi 5 para 64 bits. com InstallShield Express for Delphi 5?
Onde posso encontrar tutorial sobre o assunto se for possível?
0
I'm trying to debug an issue on our website.  My question is if you look at my example (from Chrome ) and the "Cannot read property 'setRequestHeader' of undefined" error, does the order of the output mean that the top most file identified is the culprit for the error? The error links to this line in the file:
jqXHR.setRequestHeader(window.__antiforgery.headerName, window.__antiforgery.token)

Open in new window


Also if anyone has any advice on how to debug this issue, it would be highly appreciated because I have no idea!

Thanks!

Console error output
0
Hello All;

OK, this is code that I found a while back, and posted here.
ASP Classic - Insert text, Line breaks and Code

The issue that I had, or am still having now, is that I am giving the user the option to choose the tags they want to use.
They can have as many tags as they need in their post.

The issue with the code in the link above is that it will only do one tag hard coded.
So, that I have done is added an REGGEX into it, and it works GREAT! for the highlighting,
However, adding this in, has messed up the main function of this code FUNCTION, and that is.
It adds the line breaks to everything OUTSIDE of the Code tags.

The REGGEX that I used and works is this.

Function Reggex(strString, strPattern, strReplace)

	Dim RE: Set RE = New RegExp

	With RE
		.Pattern = strPattern
		.Global = True
		.IgnoreCase = True
		Reggex = .Replace(strString, strReplace)
	End With
	
End Function

fString =   Reggex(fString, "\[code=(.*?)\](.*?)\[\/code=(.*?)\]", "<pre class=""line-numbers"" id=""code""><code class=""language-$1 demo"">$2</code></pre id=""code"">")

Open in new window


The original code is this. (Modified to work in my project)

 	CodeTags(1,1,1) = "[ code=sql]" ' Remove the space between the bracket, 
 	CodeTags(1,2,1) = "[/ code=sql]" ' Remove the space between the bracket, 
 	CodeTags(1,1,2) = "<pre class=""line-numbers"" id=""code""><code class=""language-sql demo"">"
 	CodeTags(1,2,2) = "</code></pre id=""code"">"

Open in new window


This is the entire script.


Open in new window

0
I want to put a pop up window on which I can display some information when a button or check box is selected on a web page.   I created a simple test page which displays a modal window when a button is clicked.  On this page everything works as expected.  (testpage1.php)

I then tried to add this to a more complex page with multiple layers, each displaying different information.   On this page the modal window is visible on page load but it wraps around and does not display any border.   If I enclose the whole page in a div tage only part of the modal is displayed.   If I dont use the DIv around the whole page more of the modal is displayed but it still wraps and does not have the border.    (testpage2.php)

Can anyone see what I have done wrong?

The web server is running on Open-SUSE using Apache and I am viewing the page using Firefox.
testpage1.php
testpage2.php
0
Secure Your WordPress Site: 5 Essential Approaches
Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

In Chrome there is this Extension: https://chrome.google.com/webstore/detail/alice-keeler-open-side-by/oohcehjlgohbhbljoepeoedbgcpcefod 

Allows user to have links auto resize to half the screen.  So that, if I'm using Chrome and there's another link I'd like to open side-by-side with the current page (say for a list of definitions to be used with the current page) when I click the link both the current page AND the link to be opened resize themselves automatically to occupy half the screen size and side-by-side.  So, rather than having one full screen with a new tab that you have to click back and forth, you get two smaller screens equally sharing the screen real estate and right next to each other.  Just from clicking the link.

Thing is, you need to have the extension installed to get this effect.  I'm thinking that this may be some sort of code one could add to links.  Sort of like target="_blank" in HTML.  My thinking is that, if that's true, I could write specific links in web pages to open like this.  Anyway to write the links to get this behavior?  That, somehow, this is native to Chrome.  And, by writing the links in the right way, we could get this effect.

As an aside, I know one can set links for new windows, and then drag the windows to line them up.  Also aware of the idea of dragging to touch the edge in windows makes the focused screen automatically go to half size.  But, the pages I'm making get a lot of low-experience users, so having the links do this…
0
When I try to automate the downloading of a file from a HTTPS website using XMLHTTP protocol by EXCEL VBA code shown below, the login credentials in my VBA code are always ignored. The downloaded file test.txt only contains one line of error message that says "Your session has expired. Please login and download the file again."  

I have done the following experiments:
1). If I manually log in to the website using the username and password, I can log in without any problems. So the login credentials are definitely correct.
2). If I manually log in to the website, then run the VBA macro, I still get the same error in the downloaded file test.txt.
3). If I log in manually on the website, and manually paste the file url in Internet Explorer address bar and hit Enter key, the file can be successfully downloaded with the correct content in it.
4). If I log out from the website, then manually paste the file url in Internet Explorer address bar and hit Enter key,  I get the same error message in the downloaded file DownloadError.txt in my Downloads folder.

Please advise,
Thanks!


Sub DownloadFile()

    Dim oStrm As Object
    Dim HttpReq As Object
    Dim myURL As String
    myURL = "https://www.spice-indices.com/idp/data-center/file-download/S9bFdHFp-zmvr2g1QPMXfIRR0G0AOYB9MO_3R3VKI5nzhvCTU0qGu7rr0d9EDDvDIqVHbBaIGCqW1nxGVe-K_aSTm5gBj1XtGNH_cWI9X0jjXJLPJmGEnlX3n1vfzW0AHny7HJXPgv5PkYUmaUOHQg_hK1Cqf--KnMQWx_RVrIEhsP5ajtN9Qc6IbncFC-LM"

    Set HttpReq = …
0
how to get best website realted to subject

as example
top ten game websites in the world ?
top ten game websites in US ?
top ten game websites as per website ranking ?

above is only example

searching google can find millions of results , not proper
0
Example for WinRM  API using SOAP
0
Hi All,

I am building an ASP.NET MVC C# website which is based on the "Individual Authentication" template. It works very well and I'm happy with its behavior.

I now need to start building out the details of the users account and start to link their activity to their Login Account.

I have (at least) 2 options:
1. Extend the existing IdentityModel.cs by adding to the ApplicationUser class or
2.Create a new Model and link that Model to the IdentityModel

I can see arguments in favor of each option and would like to know what is considered the best practice for this issue.

I have seen this question https://www.experts-exchange.com/questions/28667774/MVC-Entity-Framework-with-Identity-Best-Practise.html but it doesn't answer my question.

Thanks,

Des
0
I have been working through tutorials to create my own wordpress theme. I have used an example as a base but i'm having trouble creating a logo upload field and color pickers etc for custom styling.

I have attached my functions.php and index.php file.

Any advice or help would be much appreciated.

Many Thanks,

Andrew
functions.php
index.php
0
How to post  the jwt token with the login url of nodejs to the magento url

const opn = require('opn');
opn('http://localhost/tfc-magento/customer/account/loginPost/') ;

Open in new window



Thank you
0
Can anybody help me to run mailx command through coldfusion. There is some problem with our cfmail settings and we need to send the mails using mailx command? is this possible in CF?
0
Hi,

I am going through below link
https://www.ibm.com/developerworks/library/ws-whichwsdl.
which wsdl binding style to use which time. i wonder which wsdl element wraps all operations?
 Please advise
0
Enroll in June's Course of the Month
LVL 8
Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Hi All, I am creating a simple module using API.AI where API will ask set of 10 questions and retrieve answers.I In between of these question set i.e. after question 3, i want to handle in between user queries using other intent also but after handling those queries, I want to return back to the original question set i.e. question 4. Can we do this ? if not what is the suitable way of handling such scenario?
0
Hi All, I am creating a simple module using API.AI where user will ask set of questions and retrieve answers. I am using my own web service using webhook and fullfillment from my intent. Now can I use predefined domain like smallTalk,wisdom also simultaneously?
0
am trying to lock a node.js express website down for all routes except login, forget password, etc. I am able to hit the login page, forgotpassword, etc.; however, when I try to hit the reset password page by clicking on a link in an email of the form, http://localhost:3000/resetpassword?ua=55d48e9b2467717e1042e100f7f71990a04088a1c4eed26a67e7567993, I keep getting the "No authorization token was found" error. This route is in the unless list so I do not understand why it is falling through? Could it have an issue with the querystring parameter and if so what is the correct syntax?

Route Handler for Rest Calls
app.use('/api', expressJwt({secret: process.env.AUTH_KEY,
  credentialsRequired: true,
  }).unless({path: [{ url: '/api/forgotpassword', methods: ['PUT'] }, 
  { url: '/api/login', methods: ['POST', 'PUT'] },
  { url: '/api/resetpassword', methods: ['PUT'] }]} ));

Open in new window


Route Handler for the rest of the site

app.use('/', expressJwt({secret: process.env.AUTH_KEY,
  credentialsRequired: true,
  getToken: function fromHeaderOrQuerystring (req) {
    if (req.headers.authorization && req.headers.authorization.split(' ')[0].toLowerCase() === 'bearer') {
        return req.headers.authorization.split(' ')[1];
    } else if (req.query && req.query.token) {
        return req.query.token;
    }

    return null;
  }}).unless({path: [{ url: '/forgotpassword', methods: ['GET'] }, 
  { url: '/login', methods: ['GET'] },
  { url: '/index', methods: ['GET'] },
  { url: /\/css\/*/, methods: ['GET'] },
  { url: /\/js\/*/, methods: ['GET'] },
  { url: /\/images\/*/, methods: ['GET'] },
  { url: '/resetpassword', methods: ['GET'] },
  { url: '/forgotpasswordconfirmation', methods: ['GET'] }]} ));

Open in new window


Any help would be greatly appreciated.
0
My navigation bar on my site (anchoritgroup.com) is not visible on mobile devices. I cannot figure out how to resolve this issue despite many hours of googling. Here is my code:

<html>
<head>
    <title>Anchor IT</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
    <link rel="stylesheet" href="assets/css/main.css" />
    <!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
    <!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body>

    <!-- Page Wrapper -->
        <div id="page-wrapper">

            <!-- Header -->
                <header id="header">
                    <a>804-555-5555</a>
                            <nav>
                        <ul>
                        <li><a href="index.html">Home</a></li>
                        <li><a href="about.html">Our Story</a></li>
                        <li><a href="onsite.html">Onsite Service</a></li>
                        <li><a href="instore.html">In Store Service</a></li>
                        <li><a href="contact.html">Contact us</a></li>
                        </ul>
                    </nav>
                </header>


                </nav>

I'm pretty new at this am editing a template I purchased (https://pixelarity.com/formula)

Thanks!
0
Hai ,
I am working now sagepay payment in magneto 1.9. I have a module also there.I have a sagepay account also there and that details below,
url :https://applications.sagepay.com/
mail:(PM me for details)
pwd:(PM me for details)

But where is my vendor name.Kindly check and help me.
thank you
0

Web Languages and Standards

39K

Solutions

57

Articles & Videos

30K

Contributors

Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, and social network services using a wide variety of languages and standards, including the familiar HTML, JavaScript and jQuery, ASP and ASP.NET, PHP, ColdFusion, CSS, PHP, Flex and Flash, but also the implementation of a broad list of standards including XML, WSDL, SSDL, VoiceXML and many more.