Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Eat your variables
Message
De
17/04/2012 13:21:51
 
 
À
17/04/2012 04:18:33
Information générale
Forum:
Javascript
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01541532
Message ID:
01541871
Vues:
36
>>>Thanks Mike, but all I need is get the src= in iframe to accept a variable the way p id="lcDoc" /p does.
>>>It seems that src will only accept an explicit path. Is that possible, and if so, do you know the syntax?
>>
>>
>>The right way to do it is to use AJAX.
>>
>>Not only does it work, but it's the proper way to do things, so not only will you be making a website that doesn't look like it was hacked together in 1996, you will also have a new marketable skill.
>>
>>http://www.w3schools.com/jquery/jquery_ajax.asp
>>
>>
>>Look how simple the code is:
>>
>>http://www.w3schools.com/jquery/tryit.asp?filename=tryjquery_ajax1
>>
>>It doesn't exactly what you want.
>
>I write code that like too :-}
>
>Kidding aside, it doesn't do exactly what's required - the name of the file to retrieve from the server needs to be dynamic....

See the line of code with the load()? Just use a variable instead of the literal.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform