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

some websites, change their links and then they forget to update the broken links.

for example the link in this page http://www.xldynamic.com/source/xld.XtraTime.html  refers to http://xldynamic.com/cgi-bin/counters/unicounter.pl?name=xld.XtraTime.dl&cache=0&deliver=http://www.xldynamic.com/downloads/xld.XtraTime.zip

which does not work and if i remove the some part of the link and only leave http://www.xldynamic.com/downloads/xld.XtraTime.zip

it will work and will download.

i was wondering if there is a easy way to find the list of all publicly available download links for a website.

i used to work with www.websitename.com/index.html long time ago, but that does not work anymore.

any idea how to get the list of download links for a website?
0
Hello,
I'm looking for an xpath tool, like the one that firefox has.  I have searched and do not find one.  I find xpath helper and Finder for Chrome.
For IE Edge I find nothing.
Is there an xpath for Chrome and Edge?
xpath Finder seems to work on the fact that you already know the xpath.

Can an xpath from firefox be used in Chrome and Edge?
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
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
Web developpers, I have a question.

For a client of mine, I put together a little website http://www.ijshoevedeboey.be
There, on the contact form, are multiple input fields ('Naam', 'Emailadres' and 'Onderwerp')

Here's the curiosity (at least for me ;-) I can select 'Naam' and enter data into it, but I cannot select 'Emailadres', nor 'Onderwerp' to enter data - A bummer for a contact form.
Besides that, this only appears to happen on an iPad's Safari.
On the development platform, it works fine (Windows with Chrome, Opera, Opera Neon, Firefox, Edge)

Can someone point me into a direction?

Sincerely,
Borchardt1974
1
There is an existing HTML code, which basically could be simplified to the following example.
HTML element's event handlers are methods of objects. One such object is created for every such html element.
Then the reference to the object is inserted as a custom attribute to the element ( obj ).

As I understand, that approach is very bad, because it creates loops in object references.
Could somebody suggest a better way to bind elements and the handler objects?

That element-object pairs should remain, I just need a more correct way to keep reference to the object to be used when an event fires.

Also, if it's possible, please do not suggest to use jQuery or any other library, I need a pure JavaScript/html solution.

<html>
<head>
<script>
function eventHandler( elem ) {
  this.elem = elem;
  this.click = function( ev ) {
    alert( "elem:" + elem.id );
  }
}

</script>
</head>
<body>

<a id="a" onclick="this.obj.click();" href="#">elem A</a>
<script>
(function() {
  var elm = document.getElementById("a");
  elm.obj = new eventHandler( elm );
})();
</script>

<a id="b" onclick="this.obj.click();" href="#">elem B</a>
<script>
(function() {
  var elm = document.getElementById("b");
  elm.obj = new eventHandler( elm );
})();
</script>

</body>
</html>

Open in new window

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
I have successfully installed reCAPTCHA a few times on my own websites when the form and the processor script are both located on my website. I retrieve the results of the form submission in the processor script, do a call to the Google API, check the result, and proceed accordingly.

However, a client is asking me to install reCAPTCHA when the form is pointing to Insightly:

<form name="insightly_web_to_lead" action="https://googleapps.insight.ly/WebToLead/Create" method="post">

Is that possible? In this case, I don't have access to the form submission before everything is sent to Insightly, so I can't check to see if the submission is legitimate or not.

Either its not possible, or I don't understand how to implement it in this scenario. I would appreciate any assistance!

Thank you.
0
how to understand a trusted website
as example www.idology.com , ask legal documents for verification ; is this website trustful
0
I need help in setting up a proper multipart/related HTTP request in VBA. If you can PLEASE show me samples in VBA of one.  A picture (Or Code) is worth a thousand words.

Here is my code for sending XML over HTTP currently:

Option Compare Database
Option Explicit

Public Function EbaySenderXmlAddFixedPriceItems()
Dim reader As New MSXML2.XMLHTTP40
    Dim doc As New MSXML2.DOMDocument 'If you want to load the XML Document instead of creating it.
    Dim TokenValue As String
    Dim APICALL As String
    
    '*************************************************************************************************************
    'API Call Name!
    '*************************************************************************************************************
      APICALL = "uploadFile" 'Place the API Call Name here within the parenthesis.
    '*************************************************************************************************************
    'Place Token Value Here Below!
    TokenValue = "TOKEN GOES HERE Like ujhuhuaeuyaeyayuo8i"
    '*************************************************************************************************************
    doc.Load "C:\Users\Station\Documents\Access XML Save Files\uploadFile.xml" 'Document Location of the XML File With Items Being Added
   
   
    '*************************************************************************************************************
    'Set The Headers Up!
    

Open in new window

0
What is the best practice to organize a web site such way it would keep its own session on each browser's tab? Is it even possible?
The problem, that the cookies are shared between the tabs and when the user refreshes a tab's content, the server is unable to determine which tab the request came from.
Having data and/or the session ID in the URL is not an option. Is there something in the latest web standards and API's which could be utilized ?
0
Hi,
Here is error I can see
https://app.box.com/s/hdp8hqqcknt3ls98jnrrlnc21bug9c20

on Chrome browser, while I have such codes

            if (!File.Exists(str0))
            {
                System.IO.File.Copy("C:/inetpub/VS2012/Own_rec4/empty.jpg", str0, true);
            }

Open in new window


and str0 is having value like

C:/inetpub/VS2012/Own_rec4/output63626911810308.jpg

What is the reason of the error?
0
Hello there,

I have a HTML5 form with Angular 2 and I have a form that takes string and integer value and sends it to my Java backend server. But for some reason my integer value is being sent as string in the JSON which passes to the server. Below is the code. I will appreciate your help!

cheers
Zolf

<div class="form-group row">
                <label class="col-form-label col-md-4" for="fax">Fax <span class="required">*</span></label>
                  <div class="col-md-7">
                    <input class="form-control" 
                                    id="fax" 
                                    type="text"  
                                    formControlName="fax" />
                  </div>
              </div>

Open in new window


this.companyForm.patchValue({
            name_en: this.companyProfile.name_en,
            address: this.companyProfile.address,
            fax: this.companyProfile.fax,
            email: this.companyProfile.email
        });

Open in new window


saveCompanyProfile(): void {
        if (this.companyForm.dirty && this.companyForm.valid) {
            // Copy the form values over the CompanyProfile object values
            console.log("  ZZZZZZZZ    "+JSON.stringify(this.companyForm.value));
            let p = Object.assign({}, this.companyProfile, this.companyForm.value);

            this.companyService.saveCompanyProfile(p)
                .subscribe(
                    () => this.onCompanyProfileComplete(),
                    (error: any) => this.errorMessage = <any>error
                );
        } else if (!this.companyForm.dirty) {
            this.onCompanyProfileComplete();
        }
    }

Open in new window


and my Service class that talks to the server looks like so,

private updateCompanyProfile(companyprofile: ICompanyProfile, options: RequestOptions): Observable<ICompanyProfile> {
        const url = `${this.referenceUrl}/${companyprofile.name_en}`;
        console.log('url: ' + url)
        console.log('updateCompanyProfile: ' + JSON.stringify(companyprofile))
        return this.http.put(url, companyprofile, options)
            .map(() => companyprofile)
            .do(data => console.log('update companyprofile: ' + JSON.stringify(data)))
            .catch(this.handleError);
    }

Open in new window

0
I am working on a project that involves "MediaWiki"; I am an experienced web developer, I have never used MediaWiki before.

The first thing I want to do is move a copy of the site to another location for several reasons; mostly just to make revisions on a test basis without disturbing the "live" site until we are ready to apply the new version.

Can someone point me in a direction on how to do this?

Thanks
0
Let us know sonarqube node js is a free plugin with which it can provide code coverage to angularjs2.0 and nodejs . is this tool free ..
if this tool can be integrated with jenkin... or any other tool which is free to do that..


Thank you
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
When I'm saving my Dreamweaver I can't update my current template across all pages in the site due to this confusing error messages that appear every time I try to save the template file:

There is an error unexpected end of file.

Attached is the code for the file(s) - can anyone help? I've been looking at this for days, trying out different things to no avail:
tsheets-evolved.html
index.html
press-release.html
0
I have to fix a bug where a single international user gets the wrong language and need to replicate this. As an admin, I can log in as the user. But I have no plans to switch my Windows language to Swedish. So I thought I would track down the exact line of code which reads the Default OS language and assigns that to my website to use.

Any idea what variable names I could search this very large solution for? I assume it includes "Environment".

What function would this be in? I will look inside Global.asax if there is one...

Thanks
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
how we can protect the pictures published in the web site copying and sharing over the FB . what is the legal definition and how we can project content and the images from the copying people . I hope we can get the legal action and way of tracking the identity.
0
Hello All;

I am hunting for a Streaming Media Server (software), that will allow me to do the following.

#1: Using a web-based page, to start and stop the stream.
#2: Add songs to the stream and remove songs from the stream through the web page

Shoutcast, Windows Media Services (now the new (smooth streaming in newer servers)), Icecast (I have installed, but cannot seem to get it working).

I found this for playing the stream through my website.
http://jplayer.org/latest/demo-08/
So, that would work for playing the LIVE stream.
Now, just need to find a media server.

With WMS (Window Media Services) (2008 and below of Windows Servers)
I can create a Playlist with asp classic or net, and have it run through a database, LOOP and create a playlist.
https://msdn.microsoft.com/en-us/library/windows/desktop/dd564552(v=vs.85).aspx
However. What if I remove a song, or add a song.
Will the playlist update itself with the LIVE Stream? Or will the station have to be stopped and started up again?
That might have to be. I might have to play a commercial or some kind of a jingle or a station break whenever the update needs to take place.
(Just letting my mind wonder while writing this up.)

My dream is to run a radio station of sorts, from my home.
To add and remove songs from the stream through a web page, no matter where I am at.

Once I can get something like this up and running, I can then modify it in the future.
I would just like to get a station up and …
0
vBulletin 4.2
many pages
many posts
many responses
1000 users


could I  change to phpbb forum
0
hi
i have created a web form frm_map.aspx structured as below:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Frm_Map.aspx.vb" Inherits="Frm_Map" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Google Maps Example</title>
     <script type="text/javascript"
        src="http://www.google.com/jsapi?key=AIzaSyDtWpEfoVxSKPTzKKFmYq1RP-isfqWLFGA"></script>
     <script type="text/javascript">
         google.load("maps", "2");
         // Call this function when the page has been loaded
         function initialize() {
             var map = new google.maps.Map2(document.getElementById("map"));
             map.setCenter(new google.maps.LatLng("<%=lat%>", "<%=lon%>"), 5);
        var point = new GPoint("<%=lon%>", "<%=lat%>");
          var marker = new GMarker(point);
          map.addOverlay(marker);
          map.addControl(new GLargeMapControl());
      }
      google.setOnLoadCallback(initialize);
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="map" style="width: 400px; height: 400px"></div>
    </div>
    </form>
</body>

Open in new window


below is it code behind :
Imports System.Data
Imports System.Net

Partial Class Frm_Map
    Inherits System.Web.UI.Page
    Protected lat As String, lon As String
    Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        Dim ipaddress As String
        ipaddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
        If ipaddress = "" OrElse ipaddress Is Nothing Then
            ipaddress = Request.ServerVariables("REMOTE_ADDR")
        End If
       
        lat = "33.55"
        lon = "55.45"
       
    End Sub

    
End Class

Open in new window


after running this form i am getting the below error message
his page didn't load Google Maps correctly. See the JavaScript console for technical details.

below is the attach erroe
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
Hi, on the css I have two classes as follows...

.list_menu a {
display: block;
padding: 12px 0px;
background: #e1e1e1;
text-decoration: none;
}

.list_menu a:hover {
background: #d4d4d4;
background-repeat:no-repeat;
width:100%;
}

I want to remove them both and add my own Selected state when you click my div, I am using the following javascript function when you click, but it doesn't work, am I referencing the classes wrongly? Thanks.

function addMySelectedState()
{
var nameElem1 = document.getElementById("option1");
nameElem1.classList.remove("list_menu a");
nameElem1.classList.remove("list_menu a:hover");
nameElem1.classList.add("list_menu_selected");
}
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.