Improve company productivity with a Business Account.Sign Up

x

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

What are the pros and cons of using some sort of templating framework versus creating a class/functions to create dynamic web content?

Does it make more sense do perform the templating from the back end or front end?

I keep going back to localization and storing text strings etc as textual representation and converting them some tool

Currently i am thinking of running a query to get the data and storing in on the front size for javascript(jquery) to create the page
0
Free Tool: ZipGrep
LVL 12
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Hi E's,
I try to save some code to .htaccess file, but unfortunately I have problems with the characters "<" and ">".
I have this code:
$final = "<IfModule mod_rewrite.c>"
file_put_contents('/home/anaepedro/www/.htaccess', $final);

Open in new window

The output of $final is a empty string.
I change my code for:
$urls[] = "&lt;" . "IfModule mod_rewrite.c" . "&gt;";

Open in new window

, the output is what I looking for: "<IfModule mod_rewrite.c>", that's good.
The problem is, when I save the code to the file, they will appear again like this: &lt;IfModule mod_rewrite.c&gt; in the htaccess file.

How I save in .htaccess file the string with the characters "<" and ">" correctly?

The best regards, JC
0
I have a SharePoint list app that uses workflows....

I have one multi-line field that I am using for a history field where I place a quick entry on updates....

This technique uses string builder in the workflow...  What I am trying to achieve is:

date for latest entry
blank line
previous entries

I can not get a CR to work at all, have tried all three format and <br/>

Help........
0
Tracking Read events on emails

I am in the process of switching an email account associated with my CRM, but that CRM tells me when users have opened emails that I sent from the CRM.

Once I switch my email account, I will not be able to see those receipts.

Is there another tool, like MailGun, which can notify me of Read Events, even though I plan to no longer use that email account?

In other words, any Read Event will be for an email I sent weeks or months prior to setting up on MailGun, or some other tool.

Is this information lost for good?

Or is there a way for me to capture these events?

Thanks
0
Dear Experts, I got a website at domain: example.com, but when I typed it in a browser, it showed only IIS page. The website can only be displayed when I typed https://www.example.com

Can you please suggest? We 'd like to get the website when I typed www.example.com or example.com, not only https://www.example.com

Also, sometimes I could not access the website on a browser and not the others?
0
Can you please tell me where that error is?
SSIS package "C:\Users\Kathleen A\Documents\Visual Studio 2012\Projects\TxtLoading\TxtLoading\Basic Package.dtsx" starting.
Information: 0x4004300A at Import all the apps, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Import all the apps, SSIS.Pipeline: Validation phase is beginning.
Information: 0x40043006 at Import all the apps, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Import all the apps, SSIS.Pipeline: Pre-Execute phase is beginning.
Information: 0x402090DC at Import all the apps, List of apps [2]: The processing of file "C:\Users\Kathleen A\Desktop\Apps.txt" has started.
Information: 0x4004300C at Import all the apps, SSIS.Pipeline: Execute phase is beginning.
Information: 0x402090DE at Import all the apps, List of apps [2]: The total number of data rows processed for file "C:\Users\Kathleen A\Desktop\Apps.txt" is 5.
Error: 0xC0202009 at Import all the apps, OLE DB Destination [23]: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "The statement has been terminated.".
An OLE DB record is available.  Source: "Microsoft SQL Server Native Client 11.0"  Hresult: 0x80004005  Description: "Cannot insert the value NULL into column 'AppId', table 'Movies.dbo.Apps'; column does not allow nulls. INSERT 

Open in new window

0
There is an intranet site under IIS which has to use the Windows authentication as required by the corporate policy. The web application is an ISAPI extension and it must be able to access files located on shared folders of domain servers as the currently logged in user. That works fine if the site uses Basic authentication, but neither Windows or Digest authenticated users are able to access the network shared folders.
I used the Sysinternals' ProcMon utility and I can see the the w3wp process tryes to access the files being impersonated to the logged in user account.
It fail with the Windows authentication enabled:
Date & Time:	3/16/2018 5:03:22 PM
Event Class:	File System
Operation:	CreateFile
Result:	ACCESS DENIED
Path:	\\Server\Share\Folder\
TID:	9888
Duration:	0.1380666
Desired Access:	Read Data/List Directory, Synchronize
Disposition:	Open
Options:	Directory, Synchronous IO Non-Alert
Attributes:	n/a
ShareMode:	Read, Write, Delete
AllocationSize:	n/a
Impersonating:	DOMAIN\User

Open in new window

But works fine with the Basic authentication:
Date & Time:	3/16/2018 5:05:24 PM
Event Class:	File System
Operation:	CreateFile
Result:	SUCCESS
Path:	\\Server\Share\Folder\
TID:	9888
Duration:	0.0014367
Desired Access:	Read Data/List Directory, Synchronize
Disposition:	Open
Options:	Directory, Synchronous IO Non-Alert, Open For Backup
Attributes:	n/a
ShareMode:	Read, Write, Delete
AllocationSize:	n/a
Impersonating:	DOMAIN\User
OpenResult:	Opened

Open in new window


I saw on an internet forum the following explanation:
When using Windows Auth only an authentication token is passed to the web app. This token will not pass to another machine (double hop) unless there is a trust relationship, which usually involves a Kerberos implementation.
But I don't understand how can the trust relationship could be established and what is a Kerberos implementation.

Please advise.
0
I come across the following link

https://stackoverflow.com/questions/41487621/authorization-in-spring-web-application-custom-filter-vs-servelt-filter-vs-acce

Custom Filter OR Servlet Filter or AccessDecisionVoter

Need to provide access to user after login to the pages or actions based on certain conditions (user is active or user expiration date is over or user doesn't have any orders) and looking for a custom spring security. In the above which one would be suitable in this case and need a good code snippet to achieve it.
0
I have a VB.Net page where I have implemented Impersonation using help from the following post:
"go to the post on impersonation using VB.Net"

Although it seems to be working when I access the page from the IIS server (not local) but when other users try to access it then they get the following error message:

An error occurred while attempting to impersonate.  Execution of this request cannot continue.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.


Exception Details: System.Web.HttpException: An error occurred while attempting to impersonate.  Execution of this request cannot continue.

Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[HttpException (0x80004005): An error occurred while attempting to impersonate.  Execution of this request cannot continue.]
   System.Web.ImpersonationContext.get_CurrentThreadTokenExists() +227
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +12491258
   
0
Looking for MediaWiki consultant to help debug issues with Mediawiki site
0
Keep up with what's happening at Experts Exchange!
LVL 12
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Hello
I have an c# asp.net webform which uses a master page. I have coded a simple example to prove that I can use  javascript to check for changes made to an AjaxControlToolkit ComboBox1. The example works perfectly and each time I select a new drop down item the selected item display in the textbox. Because it uses a master page  the javascript has to reference the ComboBox1 as 'MainContent_ComboBox1' and the TextBox1 as '#MainContent_TextBox1'.

Now I need to make this work without a master page. I modified the default.aspx to remove MasterPageFile="~/Site.Master"  and remove the "<asp:Content.." and added in <head> and <scriptmanager> and changed the javascript from 'MainContent_ComboBox1 to ComboBox1 and #MainContent_TextBox1 to #TextBox1 but the Javascript is returning Null for $find('ComboBox1_ComboBox1').add_propertyChanged(function (sender, event) {

I have tried ComboBox1, ComboBox1_ComboBox1, 'ComboBox1', 'ComboBox1_ComboBox1', "ComboBox1", "ComboBox1_ComboBox1" and other variations without success. I don't understand why I am unable to reference  ComboBox1 when there is no master page. Any advice would be welcome !!!

regards
Pat

Original default.aspx with Master Page (Working correctly)
<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication13._Default" %>

Open in new window

0
How to protect against DOM based attacks?

This article:
https://github.com/aspnet/Docs/blob/master/aspnetcore/security/cross-site-scripting.md

Holds a warning:

[!WARNING] Don't concatenate untrusted input in JavaScript to create DOM elements. You should use createElement() and assign property values appropriately such as node.TextContent=, or use element.SetAttribute()/element[attribute]= otherwise you expose yourself to DOM-based XSS.

My C# / MVC / Razor web app was written some time ago, with little worry for XSS.

What key words shall I search for to assess the exposure to DOM based attacks?


Thanks
0
Does Microsoft's Anti-XSS Library block:

HTTP Splitting and Cache Poisoning?

These are new concepts to me, so surely I need to spend more time reading this article:

http://chousensha.github.io/blog/2014/08/15/pentest-lab-webgoat/

If you have the time... :)

Which vulnerability is NOT blocked by Microsoft's Anti-XSS Library?

Thanks
0
I have a HTML code that i use for the gmail signature. The change that i want to make to that is if there is no mobile number to that particular person my code still shows mobile at the signature with no number to it, Is there any way i can use if else statement to take that mobile text away if there is no mobile number to that person.

Here's my previous Code:

</table>
<p style="text-align: left;"><span style="color: #206694;"><strong>Phone</strong></span>&nbsp;$phoneBusiness &nbsp;&bull; &nbsp;<strong><span style="color: #206694;">Mobile</span></strong>&nbsp;$phoneMobile &nbsp;&bull; &nbsp;<span style="color: #206694;"><strong>Email</strong></span>&nbsp;$mailPrimary</p>
<hr style="height: 3px; color: #206694; background-color: #206694;" noshade="noshade" width="100%" />
<p style="text-align: center;"><span style="color: #206694;"><strong>$orgDescription&nbsp;</strong></span></p>


thank you in advance
0
Checking my Firefox version.

We support only: FF ESR 52.6

I need to know what version I have installed.

Thanks
0
Cannot request a new account in WkikMedia

Please look at chaliceuucongregation.org, then click "Chalice Wiki" (last item on the menu).

On the right sidebar, click "Request an Account", goes to "Get an Account" page. Click Request an Account, loops back to the prior page.

Used to work, we moved hosts, not sure if it has worked since then.

Any ideas on how to address this?

Thanks
0
Hi,

I am building a Web Application using the Laravel Framework, the application is being developed on my local system and I have setup Laravel as well as Composer. After the completion of development of the application I will be moving the application code to Shared Hosting Server. My Shared Hosting Service Provider doesn't provide ssh access to the servers so I am not able to install composer on the server.

What I want to achieve using Laravel is to setup dynamic installation of the application i.e.  if setting up my application on new server for the first time then the administrator can setup as per their requirements. To make my self clear I will take an example of Osticket (PHP Based Ticketing System)  when we copy the files and run for first time then we get a wizard which helps setup the application as per the administrators requirements.

In short I want to build application in such way when we run it for first time then it should show a wizard to setup the DB, Application Default settings etc.

Kindly let me know if anything else is required.

Thanks in advance.
0
I have upgraded my application from Angular 4 to Angular 5. After the upgrade the glyphicon icons are not showing up

<span class="glyphicon glyphicon-user" style="cursor:pointer"></span>

Open in new window


In the browser console, this error is displayed


Glyphicon error
I continue to use the same version of bootstap v3.3.7 and it is also included in angular-cli.json (no changes here as well)

"styles": [
        "../node_modules/bootstrap/dist/css/bootstrap.min.css",
        "../node_modules/ngx-toastr/toastr.css",
        "../node_modules/ngx-bootstrap/datepicker/bs-datepicker.css",
        "styles.css"
      ],

Open in new window


Is there something else that needs to be done in order to make the icons work? Other bootstrap styling is working fine.
0
Question about a RegEx:

 @"[&|?](" + "myDomain.com" + ")=(.*?[^&]+)?";

what do these require or prevent before the domain?

[&|?]

and what does this require or prevent after the domain?

(.*?[^&]+)?

Thanks.
0
Upgrade your Question Security!
LVL 12
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Hello.
I have an input form where the user enters details about them-self, which would then be stored in a database. After the form has been submitted, the user would be redirected to a page which confirms the page has been sent and also uses / echoes some of the information the user has just entered in the previous page.  

The set up is only partially working. The form works and the information is stored in the database and redirects. The redirected page is not calling the the information (just submitted into the database) even though the id of the entry entered in the previous form has been passed through.

So I have a signup form and a welcome form and functions on a functions page.

On the Welcome page I have the following function.

function find_student_by_id($id) { //so this function should return an associated array called teacher which has all teacher propertuies associated to that ID
      global $db_connection;
  
      $sql = "SELECT * FROM students_table";
      //$sql .= "WHERE id='" . db_escape($db_connection, $id) . "' ";
      $sql .= "WHERE id='" . $id . "' ";
     
      $result = mysqli_query($db_connection, $sql);
  	//echo $result;
     confirm_result_set($result);
     
 	$student = mysqli_fetch_assoc($result); // find first
     mysqli_free_result($result);
     return $student; // returns an assoc. array called student
   }

Open in new window


In this function, the following function is being called -

function confirm_result_set($result_set) {
     if (!$result_set) {
     	exit("Database query failed fool!.");
     }
   }

Open in new window


The code is failing at this function as I am receiving the error - "Database query failed fool!."

I'm assuming therefore that there is no $result_set value. Looking at this, I thought this was because the string value '$result' was being passed, not '$result_set' so I changed '$result_set' to '$result' in function 'confirm_result_set'. But no, this didn't work (which confuses me more...sigh).

I took these functions from a tutorial I was following and just tried to adapt them to my needs - but clearly I'm messing up somewhere. Any idea what is causing the issue? Many thanks for reading.
0
I'm trying to figure out how I can scrap/detect if the phrase "We regret we cannot open the account you requested." is on the page using CSS Selector and/or Javascript (jQuery is ok if that is the only option but want to avoid it if possible?). Below is an excerpt from the mark-up.
<!-- current page: offers --> 
        <div class="main">
     <h3>Eligibility Results</h3><p>Thank you for your online application for an account at Bank of the West.  We regret we cannot open the account you requested.<br/>
If you would like to discuss this application with Bank of the West, please contact us at:</p>

Open in new window


Thanks!
0
Where i can download a sample or demo application which has the following..Any link would be useful

1. Source code
2. Sample SQL file to populate the data in mysql table or json to populate NoSQL
3. Uses Ajax in the front-end to send and receive responses
0
1. What is BindingResult?
2. When to use BindingResult?
3. Assume @ControllerAdvice is used in a project to handle errors. How BindingResult can be retrieved or processed in @ControllerAdvice
4. Is BindingResult is used for only presentation validations or can be used for business validations as well ?
0
Hello,
    How do I exclude www. from the following rewrite rule?

RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.com
RewriteRule ^(.*)$ http://domain.com/forum/t/%1$1 [L,NC,QSA]

Thanks!
0
How to perform validation on input fields when a continue button is selected using Angular 4
Please see code below:
Index.cshtml
@{
    ViewData["Title"] = "Medical | Step 1: Let's Get Started";
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>BeneFITwise | Let's Get Started</title>
    <style>
        .error {
            border-color: red;
        }
    </style>
    @*<link data-require="bootstrap@*" data-semver="3.3.2" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />*@
    @*<link data-semver="3.3.2" rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" />
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.js"></script>
        <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular-messages.js"></script>
        <link rel="stylesheet" href="style.css" />
        <script src="script.js"></script>*@
</head>
<body ng-app="myApp" ng-controller="myCtrl">
    <section class="content">
        <div class="content container-fluid">
            <div class="mbe-2000px-max-width">
                @*<!-- Breadcrumb section -->
                    <ol class="breadcrumb mbe-breadcrumb">
                        <li><a href="welcome-page.html" title="Return Home"><i class="fa fa-home"></i></a></li>
                        <li class="active">Medical</li>
                    </ol>
                    <!-- End of breadcrumb section 

Open in new window

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.