Web Frameworks

A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. Most common web application frameworks are defined by specific subsets, including ASP.NET, JaveEE, Symfony, ColdFusion Language (CFML), Laravel, jQuery and AngularJS, or for the related languages, including .NET, PHP, JavaScript, Java, Perl, Python, Ruby, C++ and C.

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

Sign up to Post

Can the "Phaser" game dev JavaScript framework be demo-ed in JSFiddle?

My attempt to run the Phaser game framework inside JSFiddle


reference material:

What is Phaser? (Phaser website)

Phaser "Hello World" - attempting to run this in JSFiddle



-----------------------------
Screenshot of what I see when I run the example on my local Apache web server:

phaser on apache web server
Screenshot of what I see when I try to run the same demo in JSFiddle:

phaser hello world in jsfiddle
0
Microsoft Azure 2017
LVL 12
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Hi,
I was making a spring web application. Where there are lot of handlers for GET request etc.
One thing came to my mind -
Suppose I make a GET request from my chrome browser from a particular tab.
And then in the response i add some values which gets back to this same chrome tab and machine.
How exactly does that happen.
How does a response object gets linked to a particular tab in a chrome broswer.

Also is it possible to send a response object without receiving a request object from spring to a particular machine and application.
I guess it should not be possible... But what makes it impossible.
Thanks
0
If i have a rest controller in spring boot how can I validate the contract that comes in if certain values of the parameters need to have certain values??? ANy code examples are appreciated!
0
I am using a Mule Enterprise Service Bus for one of our integration project.I keep  getting  WeaveExecutionException everytime I test  it.Can any one please help or point me to the right direction?Below is the error details:-

Caused by: com.mulesoft.weave.mule.exception.WeaveExecutionException: Exception while executing: 
[row,col]: [1,1]
Unexpected character '[' (code 91) in prolog; expected '<'
 at [row,col {unknown-source}]: [1,1].
	at com.mulesoft.weave.mule.exception.WeaveExecutionException$.apply(WeaveExecutionException.scala:10) ~[mule-plugin-weave-3.8.5.jar:?]
	at com.mulesoft.weave.mule.WeaveMessageProcessor.execute(WeaveMessageProcessor.scala:121) ~[mule-plugin-weave-3.8.5.jar:?]

Open in new window

0
I am developing a reusable javascript component that can potentially be on a page multiple times. The problem I am having is binding a specific instance of this component to an instance of the object that stores it's configuration and functionality. I'm looking for a pattern that will let me do this.

Assuming I have a generic container on a webpage for content:
<div id="SharedContainer"><div>

Open in new window


I want to generate 2 instances of a component so I might have something like this to create 2 instances by telling makeNewComponentInstance in which element to place these new instances and the second parameter passes something unique to that instance:
makeNewComponentInstance( document.getElementById("SharedContainer"), {"instanceCode":12345} );
makeNewComponentInstance( document.getElementById("SharedContainer"), {"instanceCode":67890} );

Open in new window


So I wind up with something like:
<div id="SharedContainer">
  <div>My component1 
     <button onclick="alertMyInstanceCode();">Write To Log</button>
  </div>
  <div>My component2
     <button onclick="alertMyInstanceCode();">Write To Log</button>
  </div> 
</div>

Open in new window


For some reason I can't remember the right pattern to initialize instances on the fly while allowing to bind the configuration to only that instance it was created for. I don't want to try storing as an html object because the state and configuration information for a specific object is much more complex than the example I am giving.

I've done this before when I had control of how many instances I needed so I would just create however many instances of a variable I need to store it.
var myComponent1 = new ComponentInstance( document.getElementById("SharedContainer"), {"instanceCode":12345} );
var myComponent2 = new ComponentInstance( document.getElementById("SharedContainer"), {"instanceCode":67890} );

Open in new window

0
RequestHandlerInterceptor or AccessDecisionVoter which gets called first

I'm working on spring boot application and would like to know RequestHandlerInterceptor or AccessDecisionVoter which gets invoked first
0
Hello, I have decided to build a website with Bootstrap 4, just to test it out.

I am having trouble with as simple a task as centering an image, though.

This is the full code:

<!doctype html>
<html class="no-js" lang="it">

<head>
    <title>Prova</title>

    <!-- BOOTSTRAP 4 -->
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <script src="js/vendor/modernizr-3.5.0.min.js"></script>
    <script src="js/vendor/jquery-3.2.1.min.js"></script>
    <script src="js/vendor/popper.min.js"></script>
    <script src="bootstrap/js/bootstrap.min.js"></script>

</head>

<body>

        <div class="container">
            <div class="row">
                <div class="col-xs-12">
                    <div class="text-center logo">
                        <img class="img-fluid" src="img/logo/logo800.png">
                    </div>
                </div>
            </div>
        </div>

</body>

</html>

Open in new window


And this is the test page on my server:
http://test.ilgufoblu.net/ferrari/prova.html

I haven't been able to find a single reason why this image shouldn't be centered, with the text-center class assigned to its containing div.

Can somebody help me understand this?
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
I have a created a custom meta box with field called model_num using CMB2 for my custom Taxonomy. Is it possible to show that field under WordPress Screen Options

add_action( 'cmb2_init', 'pc_register_product_items_metabox' ); 
function pc_register_product_items_metabox() {

	// Start with an underscore to hide fields from custom fields list
	$prefix = '_pc_prod_';
	
	$cmb_prod = new_cmb2_box( array(
		'id'            => $prefix . 'product_items_metabox',
		'title'         => __( '<strong style="font-size:20px;text-transform:uppercase;">Badge Item Details</strong>', 'cmb2' ),
        'object_types' => array( 'badge-gallery-item' ), // post type
		'context'       => 'normal',
		'priority'      => 'high',
		'show_names'    => true, // Show field names on the left

	) );
	
    $cmb_prod->add_field( array(
    'name' => 'Badge Model Number',
    'desc' => 'enter badge model number below, that be referenced by customers when they call in',
    'id'   => $prefix . 'model_num',
    'type' => 'text',
    'default' => '',
    ) );
	
}

Open in new window



Thanks & Appreciate it
0
I am a Cyber Security major. I've done a lot of programming as a hobbyist, and when I got into Java (and later when I looked at Swift) I felt like I was experiencing some major breakthroughs with Object Oriented Programming and PHP.

I have Crohn's so I didn't even complete the first course which only went up to multidimensional arrays.

So now I need some guidance - do I work out of PHP Patterns Objects and Practice before learning a framework? That book covers Object Oriented Design as well as the concepts.

Should I do that or just move to Laravel and start learning that?

What would be best.

A huge question I have about object oriented frameworks are - can you add functionality that's not built into the framework into your application?

When designing a complex website do you want to use an existing framwork or build your own? If you use an existing one and functionality isn't built in how do you add functionality?
0
Amazon Web Services
LVL 12
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

I'm going through a tutorial in Symfony and despite the fact that I'm still in the shallow end of the pool, I can't get the very first page in the tutorial to come up and I don't know why.

Let me also mention this: According to the tutorial, I should get a default page when I use this URL: localhost/aqua_note. An error came up when I went to that URL. When I went to this URL: localhost/aqua_note/web, I got the default page they reference in the course.

I removed the DefaultController and replaced it with the code they present which looks like this:

<?php

namespace AppBundle\Controller; //namespace must match the Directory Structure

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Response;

class DefaultController
{
	/**
	*@Route("/genus")
	*/
	public function showAction() //the only rule for a controller function is that it must return a Symfony response object
	{
		return new Response('Under the Sea!');
	}
}


?>

Open in new window


When I go to the page which should show up now as localhost/aqua_note/genus, I get a 500 error.

Why? What am I doing wrong?

Let me also say that I ran into some trouble using the Symfony installer and instead used Composer. If that makes a difference, I'm not sure, but any direction at this point would be very much appreciated.

Thanks!
0
http://halohimalaya.com is using bootstrap. My question is: is it using anything else which will conflict with it, as i don't want the pages to become difficult to control at different media sizes?
0
i am new to rest api.
i want to implement REST API for my project which is developed with Spring framework.
i want to implement  REST API in best way.

Please provide sugggistions for design and development.
0
What exactly is the difference between a Web Framework, Web Server vs Javascript Frameworks?
0
Hi everybody.
I'm working on an application which builts a form from the mysql table and then post back values to the table itself. Everything works fine, but...
Now I have added to the table some column and I have used spanish names. Among them I have used 'baños'.
Now the form is correctly displayed, the label in the form is correct and even the database error displays correctly the world 'baños' among the columns of the table... But the query fails because suddenly in the $_POST array appears a  value without name (indexed to 0) and set to the same value of the input 'baños'.
In other words, the input baños is inserted in the $_POST array 2 times: associatively and numerically!:
This is the error mesages I get:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0) VALUES ('GUIA DE ISORA CASA INDEPENDIENTE DE 3 HABITACIONES DE 192 m2 (COD. 6' at line 1

REPLACE INTO `immobiliaria` (`title`, `dormitorios`, `baños`, `garaje`, `piscina`, `hamaca`, `zona`, `precio`, `codigo`, `medidas`, `notas`, 0) VALUES ('GUIA DE ISORA CASA INDEPENDIENTE DE 3 HABITACIONES DE 192 m2 (COD. 625)', '', '2', '', '', '', '', '', '', '', '', '2')

Open in new window


The database colation is utf8_general_ci, Codeigniter is set to utf-8 charset too...

Have someone any idea? Keep in mind that if I just rename the column 'baños' to 'banos' everything works fine...

Thank you for your help, guys.
0
Hi Experts

Could you point whyat's needed to a Codeigniter app to correctly be started?

When opened the app presents this screen

img006
And index.php must be fired to make it start.


Another app under the same htdocs present  the login screen but only correctly runs if index.php is used in the path.

Thanks in advance!
0
I'm learning Django, and trying to see if I can come up with a simple app, that just keep track of text only pins.

I can access the admin and view and create objects there without problem. What I am having trouble with is understanding why the data isn't coming up in the template.

My code is below.

models.py
from django.db import models
from django.utils import timezone


class Pin(models.Model):
    created_at = models.DateTimeField(default=timezone.now)
    title = models.CharField(max_length=255, default="Untitled")
    description = models.TextField(default="")

    def __str__(self):
        return self.title

Open in new window


admin.py
from django.contrib import admin
from .models import Pin

admin.site.register(Pin)

Open in new window


urls.py
from django.conf.urls import url
from django.contrib import admin
from . import views

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^$', views.pin_list),
]

Open in new window


view.py
from django.shortcuts import render
from . models import Pin


def pin_list(request):

    pins = Pin.objects.all()
    return render(request, "pin_list.html", {'pins': pins})

Open in new window


pin_list.html
{% load staticfiles %}

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Pins</title>
</head>
<body>


<img height = "50px" src = "{%  static "images/logo.jpg" %}" >

<ul>
{% for p in pins %}

    <li>{{ p.tile }}</li>

{% endfor %}
</ul>

</body>
</html>

Open in new window


When I runserver and look at the "view source" of the resulting html I get this
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Pins</title>
</head>
<body>


<img height = "50px" src = "/static/images/logo.jpg" >

<ul>

</ul>

</body>
</html>

Open in new window


Why isn't my data coming up? What am I missing?
0
One of our RSS feed URL's has been https://neighborsofchampaign.com/feed?cat=-4  originally set to pull our General News feed from a Wordpress site.  These RSS feeds are being used with MailChimp campaigns.

Other specific Wordpress categories are formatted  https://www.neighborsofchampaign.com/?cat=210&feed=rss2

Questions:
1. What is the -4 value effect on the RSS feed?  Note: the actual category ID for General News is 3 in our case.
2. Is the domain/?cat=xxx&feed=rss2  the formal way to format rev 2 of RSS?
0
Hello Experts,
I am using JSTree plugin to display my Data.
But when I select the Child node, I wanted to get the Parent node Text on form submit.
I have tried below code.

$(document).on('click', '#btnSubmit', function () {
var parent = [];
        var selectedElms =$js('#IndustryTree').jstree("get_selected", true);
        $.each(selectedElms, function () {
            selectedElmsIds.push(this.text);
            //parent.push(this.parent);            
            var node = $js('#IndustryTree').jstree(true).get_node(this.parent, true);            
            var Parentnode = $js('#IndustryTree').find("[id='" + this.parent + "']");
            parent.push(Parentnode[0].innerText);
        });
});

Open in new window

But When I run this code, in Parentnode[0].innerText I am getting Parent Node text as well as all Child node text. So it is difficult to differentiate the Parent Node Text.

Another issue is when Checked the Parent node, then all child nodes are selected. But I am not getting that selected parent node using below code

var selectedElms =$js('#IndustryTree').jstree("get_selected", true);

Parent Node selection

This code is working when I particularly select the Child node, in this case, parent node CSS class will be jstree-icon jstree-checkbox jstree-undetermined

Child Node selection is Working
Any help would be appreciated
0
Introduction to R
LVL 12
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.

Our Company Is Planing To Migrate Silverlight ERP System To Angularjs , HTML5

Any Tools Available For That ?

Please Provide Best Strategy

Thanks
Naitik Gamit
0
I know this is going to be hard for me to explain, so please ask if there's other info that will help clarify.

We have a tool here: http://www.getsearchified.com/ that you enter a url of any site and it scans through some things to return seo recommendations. Where it's now having a problem is it automatically is checking http:// rather than checking what you enter so that you can check an http:// site or an https:// site. The tool fails if it doesn't get a 200 response. So obviously it's seeing 301 because it's automatically looking at the site as http:// first. The tool was built a really long time ago so I think it just wasn't fully thought out for https sites since there weren't really a ton of ssl sites yet. We can't even remember the programmer we hired to get things going on it to be able to reach out to them for advice.

The tool was built using smarty, so I "think" where code needs edited is in the two files attached.

Any help on this would be great.
seoinspector.php
easywebfetch.php
0
I'm relatively new to ASP.NET MVC.

Just wondering if we can create custom Views folders rather than just having just Account, Home, Shared, etc?

If I want to rename these folders, what other configurations I need to do?

Thank you.
0
I'm creating pagination manually for results using Eloquent ORM. The pagination works fine except it's defaulting to display only back and next buttons (simplePaginate()) rather than back, next and page number links.

Here's how I'm generating the pagination;

$data = new \Illuminate\Pagination\Paginator($allRecipes, $perPage, $page, ["path" => "recipes"]);

Open in new window


Is there a way I can ask for the pagination to not be the equivalent of calling 'simplePaginate()'?
0
Hello all,
    I have been working on an application form which is pretty long, upwards of 100 fields and I have it working and all, I just need to try and make it a bit more readable but trying to do it as easy as possible. You can see in the pic below, it comes through showing the fields name, which some of them are not really understandable to people, such as yib being Years in Business, and yal being Years At Location. I have all the placeholders of the form filled out and was wondering if it were possible to use a script to take those placeholders and replace it on my email template with those values instead.

Currently, the way my email template is quite simple as you will see :

<html>
<body>
<table rules="all" style="border-color: #666;" cellpadding="10">
		<?php foreach ($emailArray as $name => $value) { ?>
                <tr>
                    <td>
                        <strong><?php echo $name; ?></strong>
                    </td>
                    <td>
                        <?php echo $value; ?>
                </tr>
            <?php }; ?>
</table>
</body>
</html>

Open in new window


The code I am using to submit it is :

	public function actionApplication()
        {
            if(isset($_POST['email'])) {
		//die("<pre>".print_r($_POST,true)."</pre>");
		Yii::app()->theme = "newlanding";
		//$email = trim($_POST['email']);
		$emailArray = $_POST;
		$subject = 'New Vendor Application ';
		$body = $this->renderPartial("/site/_applicationEmail",array("emailArray"=>$emailArray),true);
		Email::sendMail("me@email.com",$subject,$body);
		$this->redirect(Yii::app()->createUrl("/Site/Application"));
            }
		Yii::app()->theme = "newlanding";
		$this->render('application');
        }

Open in new window


Is there a way I can try and capture those placeholder values and either show them in addition to the name (if need be) or replace the name value with the placeholder value with a looping script and not having to try to copy and paste them all?

Thanks!


Form field names
0
I like learning object oriented php

but do not want to be bogged down by html, css, jquery, javascript, ajax

I know I can use command line php but if a client is paying me; client usually wants artwork.
A css designer will draw a picture of an expected form and I am forced CODE the html and css to the exact layout of the picture

then the client states the the textbox is 1 inch (.5 cm) too tall.



do other object oriented languages force me to learn so much design software


Please add many other object oriented programming zones
0

Web Frameworks

A web application framework (WAF) is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. Most common web application frameworks are defined by specific subsets, including ASP.NET, JaveEE, Symfony, ColdFusion Language (CFML), Laravel, jQuery and AngularJS, or for the related languages, including .NET, PHP, JavaScript, Java, Perl, Python, Ruby, C++ and C.

Top Experts In
Web Frameworks
<
Monthly
>