We help IT Professionals succeed at work.

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.

I'm looking for Wordpress plugins to replace some antiquated membership software an organization I work with is using. Essentially, we need the following:

Paid Memberships, with the ability to handle different types (like Individual, Family, Corporate, etc)
Events, with the ability to register for events
Member forum

I'm looking into Events Calendar Pro with EventBrite Tickets for the Events, and MemberPress for the membership management.

Anyone used those, or have better suggestions? The organization doesn't mind spending a little money to get what they're after.
0
I working in PHP, and have an array returned that looks something like this:

Event {
  ID
  URL
  Name
  etc etc
  Details {
    Description
    Location
    TotalPaid
    etc etc
    }
    Organizer{
      Name
      Address
      Etc
      }
}

Open in new window


I can get the top level data items, but how do I get data from the Details and Organizers elements? I've tried the following:

foreach($eventlist as $event) {
    echo '<br/>';
    echo sprintf("#%d - -%s -  %s - %s - %s", $event['Id'], $event['Url'], $event['Name'], $event['StartDate'], $event['Location']);
    $details = $event["Details"];    
}

Open in new window


The sprintf line works fine, but the $details line throws the error "Undefined Index: Details"

The API I'm using is from Wild Apricot, the Event model: https://app.swaggerhub.com/apis-docs/WildApricot/wild-apricot_public_api/7.7.0#/Event
0
Hello, I've found a behaviour of the ::after pseudo-element which I find strange and I'd like to ask you guys if there's an explanation and, most of all, a work-around.

Take a look here:
http://vetrina.ilgufoblu.net/test/

The two buttons are almost identical with completely identical css, but they behave differently on hover because the button on the left has an invisible span tag inside it which somehow makes the ::after pseudo-element position itself below the text instead of right after the text.

I don't understand how this is possible. The span has a "display: none;" attribute set and should not influence the layout in any way, as I understand it.

But it does, and the question I'm asking myself (and you) is why, and is there a way to avoid this?
I need that span (and more, actually) to be there to use some JS code which needs said spans to be right there (not included here because the problem is only with css).

I'll add the relevant code below, you can also check it out via your browser's dev tools.

Thanks.

HTML:
<body>
<div style="clear:both;padding:20px 0px 0px 200px;">
	<a title="Aggiungi al calendario" class="addeventatc" data-styling="none">
	    Sul Calendario
	    <span class="timezone">Europe/Rome</span>
	</a>
	<a title="Aggiungi al calendario" class="addeventatc" data-styling="none">
	    Sul Calendario
	</a>
</div>
</body>

Open in new window


CSS:
.addeventatc {
	background-attachment: scroll;
	background-clip: border-box;
	

Open in new window

0
Hi,
I have the following and cannot show user name and password in center of lines. Please help.
<html>
    <body>
        <!--div align="center"-->
        <div class="container" style="background:url('./pict/ID-10028343.jpg') no-repeat center top; Height:780px; Width:1220px; background-size:100% 100%; margin:0 auto; ">
            <form action="page.php" method="POST">
    <script src="Scripts/jquery-3.0.0.min.js"></script>
    <script src="Scripts/bootstrap.min.js"></script>
    <link href="Content/bootstrap.min.css" rel="stylesheet" />
    <style>
        input {
            background-color: 00008B;
            width: 200px;
            display: block;
        }
        div {
            margin:10px auto;
        }
    </style>
    <div class="container">
            <div class="d-flex justify-content-center">
                <b>Username:</b><input type="text" name="username" /><br />
            </div>
            <div class="d-flex justify-content-center">
                <b>Password:</b><input type="password" name="password" /><br/>
            </div>
        </div>

                <input type="submit">
            </form>
        </div>
    </body>
</html>

Open in new window

0
Hi Experts - Does anyone know a way to upload an image within HTML code.  For example:  

<table width="100%"><tr><td><table width="100%"  cellpadding="0" cellspacing="2"><tr bgColor="#006599"><td height="2"></td></tr><tr bgColor="#993399"><td height="3"></td></tr><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="1"><tr><td height="2"></td></tr><tr bgColor="#FFCC33"><td><table width="100%" cellspacing="1" cellpadding="12"><tr><td><b><font face="arial" size="4"><bold>New secure email message from ACME Services Secure Portal</bold></font></b></td></tr></table></td></tr><tr><td height="2"></td></tr></table></td></tr><tr bgColor="#006599"><td height="3"></td></tr><tr bgColor="#993399"><td height="2"></td></tr></table></td></tr></table><img src="/acme.jpg"><table width="100%" cellpadding="10"><tr><td><table bgcolor="#006599" cellspacing="2" cellpadding="4" border="0"><tr bgcolor="#006599"><td><a href="sample" style="text-decoration: none; display:inline-block; cursor: pointer;background-color: ; color: #ffffff; font-family: arial; font-size: 18px; font-weight: bold;text-align: center; text-shadow: 0 -1px 0 #4D4D4D; padding: 12px 16px 12px 16px; border-width: 2px;border-color: #006599;">Open Message</a></td></tr></table></td></tr><tr><td><font face="arial"size="3"><p>To view the secure message, click Open Message.</p><p>The secure message expires on {test date}.</p><p>Do not reply to this notification message; this message was auto-generated by the …
0
Can you please help me in that error.
screenshot.JPGscreenshot2.JPG
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once 'Credentials/credentials.php';
require_once ("Entities/CoffeeEntity.php");
$coffee = new CoffeeModel($db);

var_dump( $coffee->GetCoffeeTypes() );
var_dump( $coffee->GetCoffeeByType('sometype') );
require_once ("Entities/CoffeeEntity.php");

//Contains database related code for the Coffee page.
class CoffeeModel {

    private $db;

    public function __construct(\PDO $db) {
        $this->db = $db;
    }

    public function GetCoffeeTypes() {
        $stmt = $this->db->query("SELECT DISTINCT type FROM coffee");
		
        return $stmt->fetchAll();
    }

    public function GetCoffeeByType($type) {
        $stmt = $this->db->prepare("SELECT name, type, price, roast, country, image, review FROM coffee WHERE type LIKE :type");
        $stmt->execute(['%' . $type . '%']);
		
        return $stmt->fetchAll(PDO::FETCH_CLASS, 'CoffeeEntity');
    }

}
?>

Open in new window


<?php

require_once 'Controller/CoffeeController.php';
$coffeeController = new CoffeeController();

if(isset($_POST['types']))
{
    //Fill page with coffees of the selected type
    $coffeeTables = $coffeeController->CreateCoffeeTables($_POST['types']);
}
else 
{
    //Page is loaded for the first time, no type selected -> Fetch all types
    $coffeeTables = $coffeeController->CreateCoffeeTables('%');
}

//Output page data
$title = 'Coffee overview';
$content = $coffeeController->CreateCoffeeDropdownList(). $coffeeTables;

include 'Template.php';
?>

Open in new window



Open in new window

0
Can you please tell me how to i fix that error?  Thanks.

SOMETHING IS WRONG HERE: function mysqli_fetch_all($result, MYSQLI_ASSOC)
Warning: mysqli_connect(): (28000/1045): Access denied for user 'HarrisK'@'ip-107-180-46-230.ip.secureserver.net' (using password: YES) in /home/hfll4ovlkhjz/public_html/config/db_connect.php on line 3
Connection error: Access denied for user 'HarrisK'@'ip-107-180-46-230.ip.secureserver.net' (using password: YES)
Warning: mysqli_query() expects parameter 1 to be mysqli, boolean given in /home/hfll4ovlkhjz/public_html/index.php on line 6

Fatal error: Uncaught Error: Call to undefined function mysqli_fetch_all() in /home/hfll4ovlkhjz/public_html/index.php:8 Stack trace: #0 {main} thrown in /home/hfll4ovlkhjz/public_html/index.php on line 8

Open in new window


<?php
	include('config/db_connect.php');
	// write query for all pizzas
	$sql = 'SELECT title, ingredients, id FROM pizzas ORDER BY created_at';
	// get the result set (set of rows)
	$result = mysqli_query($conn, $sql);
	// fetch the resulting rows as an array
	$pizzas = mysqli_fetch_all($result, MYSQLI_ASSOC);
	// free the $result from memory (good practise)
	mysqli_free_result($result);
	// close connection
	mysqli_close($conn);
?>

<!DOCTYPE html>
<html>
	
	<?php include('templates/header.php'); ?>

	<h4 class="center grey-text">Pizzas!</h4>

	<div class="container">
		<div class="row">

			<?php foreach($pizzas as $pizza): ?>

				<div class="col s6 m4">
					<div class="card z-depth-0">
						<img src="img/pizza.svg"class="pizza">
						<div class="card-content center">
							<h6><?php echo htmlspecialchars($pizza['title']); ?></h6>
							<ul class="grey-text">
								<?php foreach(explode(',', $pizza['ingredients']) as $ing): ?>
									<li><?php echo htmlspecialchars($ing); ?></li>
								<?php endforeach; ?>
							</ul>
						</div>
						<div class="card-action right-align">
							<a class="brand-text" href="details.php?id=<?php echo $pizza['id'] ?>">more info</a>
						</div>
					</div>
				</div>

			<?php endforeach; ?>

		</div>
	</div>

	<?php include('templates/footer.php'); ?>

</html>

Open in new window

0
Need a list of existing software generation tools and languages

I need to quickly build a list of tools and technologies which automatically generate source code. I need this list for all output languages, so please do not hold back.

I have already added to my list some powerful tools in the .NET Framework, for example:
- T4 Templates
- Visual Studio and the incredible number of project types it creates
- CodeDOM
- What else from Microsoft?

I also consider ReSharper to be just such a tool. It's on my list...

Are there any React source code creation tools? Angular?

Please feel fre to post anything that creates source code, DB schema's, or anything that would otherwise require work by a developer. And please let me know for any language that's outputted by the tool.

Thanks
0
--Updated--

I'm trying to connect .NET to a published webservice.  The way the appserver is configured, I need to generate a connect request, which returns a uuid, then generate the actual request to get / update information, then generate a logout request.

I can connect to the web service; the connect request is supposed to return a value of type xxwt1ID, what I can't figure out is how to get that value and pass it to the actual request to get information from the web service.

I've imported the WSDL as a Service Reference and was able to connect using the statement  cReq3.Connect_xxwt1.  That connection is supposed to return a value of type xxwt1ID, which I then pass when I'm making the actual call to the webservice with statement cReq3.xxwt1(cReq3.xxwt1ID, "abc", "def", out strTest.

I've attached a simple example WSDL - and a stub of code to show what I'm trying to do - any help or suggestions on how to write code to login, retrieve data, and logout would be GREATLY appreciated.

Thanks,

-Dan


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {


            ServiceReference1.xxwt1ObjClient cReq3 = new ServiceReference1.xxwt1ObjClient();
      

            cReq3.Connect_xxwt1("danp", "apass", "test_AS");
            /* cReq3 is supposed to return a UUID.  How do I get the UUID? */

   

Open in new window

0
Hi Experts,

I have a calculated field in a Caspio datapage that would like to change the appearance as follows.

1- Bigger size and bold.
2- Should be flashing.

The calculated value is.

case when [@field:Browser]="Chrome 78.0"  or [@field:Browser]="Safari 13.0" or [@field:Browser]="Firefox 69.0.1" or [@field:Browser]="Firefox 19.1" or [@field:Browser]="Firefox 68.1.1"   then ''  else 'Please update your browser!' end

Open in new window


See related question here.

Thanks
0
Hi Experts,

I have following code for detecting if user has latest version of Chrome and Firefox browsers.

   else if(bowser.chrome) {
        var translate_bowser_osname = {"Windows":"win", "macOS":"mac"};
        $.getJSON("https://omahaproxy.appspot.com/all.json?os=" + translate_bowser_osname[bowser.osname] + "&channel=stable", function(data) {
            var latest = data[0].versions[0].current_version.match(/\d*\.{0,1}\d+/).pop() * 1;
            // FOR TESTING PURPOSE WE SET CURRENT BROWSER VERSION TO 77 (CURRENT IS 78.x.y)
            //if(version<latest) { // UNCOMMENt THIS LINE TO COMARE THE RIGHT CHROME USER VERSION AND COMMENT NEXT ONE
            if(77<latest) {
                var confirMsg = "please update your browser to the latest version";
                saveBrowserInfos("https://www.youtube.com/watch?v=RyI7RyEEPxM", confirMsg);
            }
            else {
                loginForm.submit();
            }
        });
    }

Open in new window


    else if(bowser.firefox) {
        $.getJSON("https://product-details.mozilla.org/1.0/firefox_versions.json", function(data) {
            var latest = data["LATEST_FIREFOX_VERSION"].match(/\d*\.{0,1}\d+/).pop() * 1;
            if(version<latest) {
                var confirmMsg = "please update your browser to the latest version";
                saveBrowserInfos("https://www.youtube.com/watch?v=K9LZmxT9K30", confirmMsg);
            }
            else {
                loginForm.submit();
            }
        });
    }

Open in new window


Would like to add checking for Safari as well.

Thanks
0
Need a quick web UI for a great speech recognition API

I sampled an AWS back-end API (using their demo) and found the quality to be excellent. Meanwhile, I have heard Google and Watson also have great API's.

But, my friend, who can no longer type into a keyboard, can not find a way to access any of these great API's.

Can you tell me the names of these services?

Do you know of any consumer focused front ends that would provide access to these awesome API's?

If I decide to throw together a quick front-end, which API is easiest to develop with?

Thanks
0
I am planning to javascript, but I started reading about typescript as well.
I don't understand the relation between these two yet.

is typescript totally different language, or is javascript derived from typescript or the other way around.
0
Is React as Object Oriented as Angular?

I've worked with Angular enough to fall in love with its modular design and how a new control that works on one web page and easily be dropped onto any web page in the project.

The way it limits the scope of the CSS, HTML and Javascript to the specific problem at hand, in my eyes, if what makes it so fast.

How about React?

I have no experience with React, but hope to see some coded snippets to explain how you'd connect logic, page placement and styling. (and anything else that should be considered when choosing React over Angular)

Also, any predictions on adoption rates? If a technology is flagging, I may not be as interested...

Any new technologies which may rival Angular and React?


Thanks
0
I would like to know how to create multiple language versions of an HTML page so that when a person comes to the page, the language of the person's browser is used to serve the page in that language.   My understanding is to use hreflang but not entirely clear on how it works.  I would also like to know how to structure the content in folders on the Web server to make all this happen.   Thank you!   Kind regards
0
I have Xampp installed in Windows2012R2.
I have this error after a reboot in Xampp. I have opencart installed.  
If I change the port from 80 to 81 or other port apache starts. Any idea what could be wrong?
It seems port is used somewhere not sure where?
Capture53.JPG
0
I am assisting a friend, who have a Hair dressing website.

When anyone search for her name on google, contact information for her business comes up, but her website it doesn't appear? please refer to screenshot.

Thanks for your help.
Corcoz.jpg
0
want to develop a website with database , search , locking facilitates (view able only by members) etc
To make like this website and to maintain , how many employees required : website developer ? on which platform or language
and web graphic designer

to make like this startup , what is the best plan
0
Hi,

How do I format a certain table in css (like this: https://www.w3schools.com/css/tryit.asp?filename=trycss_table_border_divider), while leaving alone other tables in my html?

J.
0
Hi Experts,

This question is related to this suggestion.

How do I apply that to a Caspio datapage?

See attached how its possible to insert JS code in Caspio's design model.

Thanks
Untitled.png
0
How can I convert a website I am currently on to a PDF file.. Showing all website content?  I want it to show header and footer information as well.
0
Hi Guys,

We are having an issue with trying to connect to a 3rd party application from our website

We  have tried sending requests to the Azpiral sandbox server using Ajax GET and POST methods but i am getting a CORS error access control allow origin not present. CORS is installed on our domain https://ohehirsstudents.ie/.
Azpiral sandbox url for testing: http://sandbox.azpiral.com/PBPartnerWS/PBPtnrServices_1_11.asmx
WSDL file and docs are present in the attached Sligo IT zip file.

I can provide if really nescessary, i have spoke to their support and they are telling me that they hav enever seen an issue like this
0
I am trying to have a popup with a a nice alert message on my webpage, graying out the background and "OK" button has to be clicked. The page cannot be used until OK, or whatever button is clicked.

Does anyone have a working script for this? I'm assuming it is both CSS and js/jquery.

Thanks much and appreciate it!
0
We have  a need to track conversions using two Facebook pixels on our ecommerce site.  Would we be ok to include two pixel codes as per below?

<script>
<!-- Facebook Pixel Code -->
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '111111111111111');
  fbq('track', 'PageView');
</script>
<script>
<!-- Facebook Pixel Code -->
  !function(f,b,e,v,n,t,s)
  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  n.queue=[];t=b.createElement(e);t.async=!0;
  t.src=v;s=b.getElementsByTagName(e)[0];
  s.parentNode.insertBefore(t,s)}(window, document,'script',
  'https://connect.facebook.net/en_US/fbevents.js');
  fbq('init', '222222222222222');
  fbq('track', 'PageView');
</script>

Open in new window

0
Hi Expert's,
For remove multiple spaces in a string I use this code:
$var = preg_replace('/\s+/', ' ',$var);

Open in new window

What changes I have to do in the code, but for remove multiple hyphens?
Examples: this-is---a--test, convert to this-is-a-test;
this is a ---- test, convert to this is a - test;

The best regards,
JC
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.