- Recent
- Popular
- Tags (0)
- Subscribers (6)
- Ajax for Expression WebOctober 17
-
If you are using Expression Web for your site in ASP.NET, may be you encounter with one of those problems, it doesnt work with custom controls in the toolbox or custom controls dont display and you get an error like unknown server tag ajaxtoolkit error message !!!
To solve this issue, you have to install the assembly in the GAC by typing this following command in the NET console : gacutil –i nom_assembly.dll
After go to the ajaxcontroltoolkit properties to get the version and the public key token and in the aspx pages, you have to make a reference of both information by using the full name of the tool like :
Assembly=”AjaxControlToolkit, Version=XXXX, Culture=neutral, PublicKeyToken=XXXX”
Namespace=”AjaxControlToolkit”
TagPrefix=”ajaxToolkit”
And now it should work
- Hiding a divOctober 15
-
I think there are a lot of people like you work a lot in code instead of design mode, for those in my situation, following a little tip to hide our big div that we create.
It will allow us to see the code a little clear and more easy to work, and of course, it can display the div again if you wish, here the code to add between .function hide(link){
var objet = document.getElementById(’popup’); // entre les deux ‘ tu mes le nom du div que tu veux faire apparaître !
if(objet.style.display == “none” || !objet.style.display){
objet.innerHTML = “Ici le text que tu veux faire apparaître !”;
objet.style.display = “block”;
objet.style.overflow = “hidden”;
link.innerHTML = “-”;
var hFinal = 200; //Hauteur finale (la hauteur une fois que ça aura fini de déplier !)
var hActuel = 0; //Hauteur initiale (la hauteur dès le début !)
var timer;
var fct = function () {
hActuel += 20; //Augmente la hauteur de 20px (tu peux modifier) tous les 40ms !objet.style.height = hActuel + ‘px’;
if( hActuel > hFinal)
{
clearInterval(timer); //Arrête le timer
objet.style.overflow = ‘inherit’;
} };
fct();
- Securing ajax requestSeptember 30
-
Secure your request is very important since it will prevent someone to steal or to get in your datas. Following a way to do it.
You have to be able to generate a secure key from the server and after to affect the key the following code : $_SESSION[’Env_UserSession’][’AjaxKey’] = $key_sec
From the customer side, the key should be available via javascript and it can be a source of an hidden string. During the ajax request, get back the key and to transmit it to the ajax parameters. When the request is launched, you have to control from the server that the key exists and to verify it with the one saved in the session (this one should be verify before to generate the ajax content to the customer).
When you have to control the server, you have to verify very well POST or GET exists because if it is empty, it can be someone try to steal the content. If all are ok, you can deliver the content without any danger. - How to create a form in a simple clickSeptember 9
-
It is very difficult to create a form, at least for people who have no knowledge about programming. There is a web site which proposes for those people to create a form in a very easy way.
You just have to go to this site http://www.jotform.com , create an account (it s free totally) and after log in just choose one of the assistants to create your own form. You can configure totally your form and the application is very simple and easy to use.
The bad point is that the generated code is not very clean for some form but what is the most important point, that we get the good result.
- Ajax Alternatives?July 17
-
Its difficult to claim perfection in anything, even Ajax. While Ajax has enhanced the web experience for many users, and there is not shortage of people constantly praising its merits, it is perhaps no longer the newest standard. Sure, it allows relatively easy integration of interactive elements in web pages, but is it really all that powerful and versatile as is often claimed?
There are three major standards for the development of Rich Internet Applications: Ajax, Java, and Flash. None of these are perfect solutions, but each has its own advantages over the others.
This is where the choice comes in. Ajax is at its strongest for such applications as information submission, but weaker when applied as a true asynchronus system.
On the other hand, Ajax is probably the most versatile of the options available. While not always the most efficient, it can get the job done. Many of its disadvantages can be blamed on web browsers not following standards and not being optimized for the desired degree of interactivity.
