Life, the Internet, and Everything!

I actually wrote a little ditty about this… http://read.allyoushouldknow.com/case-in-point-and-some-gratuitous-ajax-code-to-go/ Back-end for the …

Comment on Search Engine Optimization by Admin.

I actually wrote a little ditty about this…

http://read.allyoushouldknow.com/case-in-point-and-some-gratuitous-ajax-code-to-go/

Back-end for the code is either an ASP or PHP script that generates the table and outputs it in an HTML file, which is read by AJAX and placed inside a DIV in an existing page.

EDIT:

If you’re using aspx, you’re using .NET, which doesn’t need AJAX – instead, there’s postback functions built-in; for each aspx file, there should be a .vb file which takes your input and processes it as a regular VB application, and then send the result back to the client.

AJAX runs a server-side request and updates the page *on the client-side*.

Postback and AJAX can be used combined, but I’d advise against it, because you’re creating code to create code, and the result is extremely inefficient.

You’ll have to make a decision, here: either use AJAX, *or* use aspx/vb postback.

EDIT 2:

If all you’re doing is submitting an object to the server using AJAX, and you’re not using ASP.Net to do the processing, what you need to do is generate a page that is able to receive and process the XmlHTTPRequest, either by using the POST method (allowing for lots of information to be sent, as if you’re sending a form), or GET, which uses a querystring in the form of yourpage.aspx?req=whatever.

The aspx page then takes that information, creates a regular HTML page (or a simple plain text file, or a JSON enabled file), which is received back by the XmlHTTPRequest’s onreadystatechange event; when the page has completed loading, the readystate is 4 (complete), with a header number of 200 (HTTP1.1 // page loaded OK). The file – which is invisible to the user using his browser – can then be parsed.

The example on the page I wrote generates a simple, straight-forward HTML table – nothing more, nothing less. The HTML code is then read by my AJAX function as plain text (and parsed as such = as a String); this string is then placed inside the page, into a container DIV that contains the *original* table – because I use the document.getElementById( ‘caldiv’ ).innerHTML, that original table is then replaced by the newly generated one.

The other methods (which I could have used, but was too lazy to), involve either straight XML, using the page’s DOM (Document Object Model), or JSON, which uses a page that generates JavaScript variables and arrays, that can be parsed by the original XmlHTTPRequest.

In the case of XML, I could have chosen to not replace the entire table, but to remove its rows and cells, and recreate them using the table’s DOM properties (appendChild, createChild) for each row and subsequent cells.

In the case of JSON, I could have had the code return a string based array of the the table’s properties (in this case: name of the month, days of the month, with enough “empty” elements to allow for unused cells at the start and the end)

JSON requires a deep-rooted knowledge of safe scripting, and the ability – in your case – to use one type of scripting language (VBScript) to generate another (JavaScript), including correct syntax and formatting.

XML is the in-between, but you do have to know how to have your code parse XML (drilling down from the root to the lower levels, and assigning each level and node to the corresponding level and node inside your table) – which is a horrific combination of XML DOM and HTML table DOM…

The easiest way by far is to simply render – as I did – a complete table, read its contents, and place those contents one-on-one inside a container. The reason your getElementById didn’t work is probably because you don’t have the specific DIV id that’s used in the code example on my site… 🙂

Create your own container element, and use that as the Id.

I would advise, if you’re willing to learn, by simply creating a plain text file on your server (call it test.txt), and calling *its* contents using AJAX – that way, you’ll always know what it’s *supposed* to return.

AJAX isn’t hard, but it does take a bit of practice to get it right, using server-side scripting.

Admin Also Commented

Search Engine Optimization
The name for the most flexible metal is Barium, I know a lot about the junk on the periodic table XD

Normally, when I’m designing weapons, I like to make up my own sort of metals and give strange yet scientific names for them, so don’t be afraid to get creative! 😉


Search Engine Optimization
DSP Design offers professional, cutting edge, low risk, flexible solutions for all your embedded computer system requirements. We offer professional products to meet professional needs. We do this by designing and supplying the best embedded computer systems in the market backed by a top-class team of experienced engineers and product specialists.
Cathy


Search Engine Optimization
Web design is a wonderful career choice, and you can earn a good living from this career if you can build up a good amount of clients or get into a well established company.

Just as you, I taught myself web design and it took me years to build up my skills and attract attention from various individuals before I started to make a decent living from it. However, I only consider is as a side job, since most employers in my area will only hire someone who has had formal experience through college or university. To get your name out, post flyers, or put ads in your local newspaper our on web communities. Show others your work and go from there. I wish you the best of luck in your journey!


Recent Comments by Admin

5 Tips for Writing the Perfect Blog Post
If you use WordPress, or Blogger, or any other modern blogging tool for that matter, the search engines are “pinged” and know right away that you have made a post. So, don’t worry about submitting it to search engines manually (and for heaven’s sake, don’t pay someone who claims to do that)!

In general, the best method nowadays is to generate some social traffic. Post a link to you post to Facebook, Twitter, pin your post’s featured image to Pinterest.


Catchy Headlines
Business Models are simulations of actual business functioning.
They act as ideal real life examples,and help participants actively discuss the pros and cons of the situation given.

A business Model gives a Full Account of any particular Business Scenario. Readers of this model/ Participants are then asked to discuss the strengths and weaknessess of it. Put it simply, one has to SWOT analyze the Business Model based on different parameters.

Each participant comes up with his/her own views on the subject. Cumulative views and different view points are then listed and ranked based on their importance and relevance.

Thus at the end of the session, a business models suitability and viability is drafted and conclusions are drawn thereon.

The more the Business Model Analysis a person does, the more exposed he gets to real life corporate situations.
Hence it is said, that Business Models act as Good Simulators.


Search Engine Optimization
A search engine is a service provided by some company (Google, Yahoo, Microsoft, etc.) which will search through millions of web pages for keywords that a person types into a field. For instance, if I type “Puppy” into a search box on Google’s web site, there are currently 40,800,000 matches available. If the search provider has a good search algorithm in their software, then the most relevant pages should be listed first. In my case, I’m a happy searcher, because after the Google Image samples, the first result listed is the Puppy Linux website, which is the only Puppy I would ever be searching for online. Most search providers keep track of what websites people will actually visit after doing a search. They then use the results to make sure those pages are closer to the top of the list for the next time someone searches for the same keyword(s).

Image search optimization is about using images on your website to draw more “click-throughs” from the search provider, thereby raising your rank in the search list. This, in turn, helps to ensure that you keep getting more visits to your site. A neat article I just found by typing “image search optimization” into Google Search is linked below.


New York Skyline
Below is a link with pictures of the NYC skyline.

A view of city of great magnitude rises out of the open like a curtain for a show that always staging the world’s greatest act, you immerse yourself as one of the players of the greatest city in the world.


Business Niche – Adding Content for SEO
Http://fefoo.com/
Fefoo is not a search engine, its an application that helps you search better. It uses the traditional search engines to search. You search on categories and your search is more refined from the time you start searching. In case you don’t use categories it works like a normal search engine.

http://www.springo.com/
Springo is a Web shortcutting tool that empowers users to rapidly and easily navigate to the best websites for any purpose.

Welcome to Viewzi


Each view contains a set of results that are displayed visually – and each view has a different perspective.

http://www.yoozila.com/
Yoozila is a powerful new search engine. It’s primary purpose is to provide you with relevant results and present them in a fresh web 2.0 beautiful manner.

http://www.findthebest.com/
FindTheBest is an objective comparison engine that allows you to find a topic, compare your options and select the best choice for you.


 
Next Post
092217_0320_WhatWillThe1.jpg
Miscellany

What Will The Next Generation Of Aspiring Entrepreneurs Look Like?