Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3990576
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:30:43+00:00 2026-05-20T06:30:43+00:00

By far, the most common class of errors I have are issues with the

  • 0

By far, the most common class of errors I have are issues with the interface between javascript and server code. This includes having the javascript calling the wrong URL, passing the wrong data (particularly if the needs of what needs to be passed changes, and the javascript doesn’t), and issues in turning data into html the same way that my app does.

Is there an easy way to deal with this? I’m developing currently using Zend Framework in PHP. I think the first couple of issues could be avoided a bit by using Selenium, but I’m not sure how to deal with the data -> html issue. I’d love to have some kind of javascript equivalent to my ZF view helpers, but I’m not sure how possible that is.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T06:30:44+00:00Added an answer on May 20, 2026 at 6:30 am

    On a well designed site, (public) URLs won’t change. You are, of course, free to use whatever internal structure you wish.

    If necessary, you should be able to generate JS just like you generate HTML. However, if you apply proper REST principles:

    A REST API should be entered with no prior knowledge beyond the initial URI (bookmark) and set of standardized media types that are appropriate for the intended audience (i.e., expected to be understood by any client that might use the API). From that point on, all application state transitions must be driven by client selection of server-provided choices that are present in the received representations or implied by the user’s manipulation of those representations.

    When it comes to making document manipulation proof against future restructuring, use libraries that support a robust element selection language, such as XPath or jQuery’s selectors, rather than walking the DOM structure and use good IDs and class names that won’t change.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an interface that will be implemented by client code: class Runner: def
I have handles of different types inside a hierarchy. class Handle { common data
As far I know, the two most common methods of reading character-based data from
It must be the most common function for what everyone has a code snippet
I am catching keys for bindings, so far most characters work fine, until I
Most of my experience with Django thus far has been with MySQL and mysqldb.
As far as I understood it, BigInts are usually implemented in most programming languages
I've just begun using LINQPad and so far I like it but most tutorials
So far I have encountered adjacency list, nested sets and nested intervals as models
I have done far more C++ programming than plain old C programming. One thing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.