Web Languages and Standards

39K

Solutions

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

Dear Experts,
When I visit a web site, the home page is asking a question like :

http://www.trt.tv wants to Show notifications

How can I see the notifications?

how can the web site push the notifications? How can the users see the notifications?

How can I do the same on my web site?

I use PHP
0
Optimize your web performance
LVL 1
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

This is the modal
<div id="mdlEdit" class="modal fade" data-backdrop="false" style="background-color: rgba(0, 0, 0, 0.5);">
            <div class="modal-dialog">
                <div class="modal-content">
                     <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                        <h4 class="modal-title" id="hdrEdit" runat="server"></h4>
                    </div>
                    <div class="modal-body">
                        <div class="form-group">
                            <label for="iID" class="control-label col-xs-5"><span class= >*&nbsp;</span>ID</label>
                            <div>
                                <input type="number" class="form-control" id="iID" placeholder="Enter ID" runat="server" maxlength="30" name="iID" /> 
                            </div>
                        </div>
                        <div class="form-group">
                            <label for="iTableID" class="control-label col-xs-5"><span class="required">*&nbsp;</span>Table ID</label>
                            <div>
                                <input type="number" class="form-control" id="iTableID" placeholder="Enter Table ID" runat="server" maxlength="10" name="iTableID" /> 
                            </div>
                        </div>
                         <div class="form-group">
                            <label for="iFieldName"

Open in new window

0
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
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
É 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
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
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
Technology Partners: We Want Your Opinion!
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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 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

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.