Jump to content


Photo

Chamar Função Javascript


  • Faça o login para participar
13 replies to this topic

#1 JulioGreff

JulioGreff

    Feel Free!

  • Usuários
  • 390 posts
  • Sexo:Não informado
  • Localidade:localhost
  • Interesses:JavaScript, Ajax, POO, etc. etc. etc.

Posted 17/03/2006, 13:51

Existe alguma maneira de se chamar uma função Javascript pelo PHP diferente de <? echo "<script>funcao()</script>" ?>???
Júlio Greff de Oliveira - Always a JavaScripter...
Contato: julio.greff [at] gmail [dot] com

Habilidades: JavaScript, Ajax, PHP, XHTML, CSS, MySQL, POO
Blog: http://www.juliogreff.blog.br

#2 paes

paes

    GustavoPaes.Net

  • Usuários
  • 1393 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP
  • Interesses:Rumo ao topo!

Posted 17/03/2006, 14:22

Não!!
Site: GustavoPaes.net

^ Rumo ao Topo ^

#3 Paulo Freitas

Paulo Freitas

    ××××××× LRU #456504 ××××××× ××××××× LRM #364686 ×××××××

  • Ex-Admins
  • 5612 posts
  • Sexo:Masculino
  • Localidade:Campinas - SP

Posted 17/03/2006, 20:10

Existe alguma maneira de se chamar uma função Javascript pelo PHP diferente de <? echo "<script>funcao()</script>" ?>???

PHP é uma linguagem server-side, como é que ele executaria uma linguagem client-side como o JavaScript antes de enviar o output ? :wacko:

Se é client-side, quer dizer que só rodará no cliente. Sendo assim, o máximo que o PHP pode fazer é emitir um output, nada mais. ;)

[]’s :DAté mais

#4 KmK)MeteteX-

KmK)MeteteX-

    Normal

  • Usuários
  • 89 posts
  • Sexo:Não informado

Posted 17/03/2006, 23:07

realmente vamos considerar essa explicacao como perfeita e nao apenas um "NAO"

#5 paes

paes

    GustavoPaes.Net

  • Usuários
  • 1393 posts
  • Sexo:Masculino
  • Localidade:São Paulo - SP
  • Interesses:Rumo ao topo!

Posted 17/03/2006, 23:12

realmente vamos considerar essa explicacao como perfeita e nao apenas um "NAO"


Sinto muito... errei.
mas estava sem tempo, e para não deixar o cara no vacuo, resolvi apenas dizer que não!

Na próximo tento explicar melhor!
Flw
Site: GustavoPaes.net

^ Rumo ao Topo ^

#6 Paulo Freitas

Paulo Freitas

    ××××××× LRU #456504 ××××××× ××××××× LRM #364686 ×××××××

  • Ex-Admins
  • 5612 posts
  • Sexo:Masculino
  • Localidade:Campinas - SP

Posted 17/03/2006, 23:23

realmente vamos considerar essa explicacao como perfeita e nao apenas um "NAO"


Sinto muito... errei.
mas estava sem tempo, e para não deixar o cara no vacuo, resolvi apenas dizer que não!

Na próximo tento explicar melhor!
Flw

Errar tu não errou, nem um pouco. O usuário perguntou se existia alguma maneira para algo, quais seriam as respostas válidas ? Sim e não. Explicar o motivo é outra história, o usuário não pediu explicação. Sendo assim, explica quem quiser. (y)

Eu postei o motivo depois de sua resposta mais para colocar na cabeça do pessoal o motivo não só desta questão, mas de muitas outras freqüentemente postadas no fórum, que se encaixam na mesma teoria. ;)

[]’s :DAté mais

#7 Ajudante de papai noel

Ajudante de papai noel

    Novato no fórum

  • Usuários
  • 1 posts
  • Sexo:Não informado

Posted 17/02/2010, 09:01

Eu sei que o tópico é extremamente antigo e que ressuscitar não é legal...

Porém quando se pesquisa no Google por chamar funções JavaScript com PHP ou derivados disso
esse tópico é um dos primeiro a aparecer...

Então para ajudar a todos que caem aqui (como eu diversas vezes)
vou dar uma sugestão de como resolvi meu problema coisa isso
talvez não seja o melhor ... porém resolve.

no lugar de usar o echo

echo "<a onclick='funcao();'>click aqui</a>";

basta fazer assim

...
?>
<a onclick="funcao();">click aqui</a>
<?php
...


exemplo:

if(!empty($var)){
?>
  <a onclick="funcao();">click aqui</a>
<?php
}


#8 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 12/09/2017, 19:40

Venta Cialis Soft online pharmacy Viagra Pills For Men Canadian Superstore Pharmacy Reviews Buy Woma Viagra In Canada generic cialis Ou Trouver Du Viagra Pas Cher
Amoxicilline 500 Grossesse viagra cialis Pastillas Cialis Farmacia Baby Medicine Amoxicillin Comparativa Viagra Levitra Cialis Vente Cialis Blog Isotretinoin sotret in germany over night generic cialis Viagra Cost

#9 Jeremyalgon

Jeremyalgon

    Normal

  • Usuários
  • 86 posts
  • Sexo:Feminino
  • Localidade:Hoskins

Posted 13/09/2017, 07:44

Saucony Bodega Monitor your organic garden's advancement in the growing plants journal. Make take note of everything - the times you vegetation, the schedules you fertilize, pest infestations that arrive, which repellents job, when you begin harvesting, and just how worthwhile the garden is. This information will likely be valuable to you personally as you may prepare the garden in the years forward and will help you to become a effective garden enthusiast. 16910-saucony-ride-5-damen.jpg For optimum weight-loss you must recruit the support of your friends and relations. Slimming down is hard and you will definitely need to have each of the support you can get. You will have instances that you truly feel fragile and do not want to carry on your weight loss program. Count on your family and friends to help you via those hard periods. 17533-longchamp-penelope-shopper.jpg
Nike Cortez Damen Kaufen
Include your preferred fresh fruits to organic juices integrates that you simply don't like to mask the flavor. You'll benefit from the preference and have the dietary benefits the juice gives.

31196-nike-air-max-schwarz-wei%C3%83-bla

When shooting wildlife or kids, get on their level to snag pictures which may have a better standpoint. By crouching, kneeling, as well as laying right down to snap, you may capture photos which are a lot more interesting than others picture from previously mentioned. You will also increase the degree of the photo by capturing what is powering your subject matter, rather than what is below them.

548-beats-g%C3%83%C2%BCnstig-bestellen.j
Oakley Sonnenbrille Fake
In case you have notably coarse locks, you must make sure that you just do the best to keep it hydrated. Coarse your hair has a propensity to come to be dried up and break away very easily. Maintaining it wet will ensure that your head of hair will not crack away from as significantly.

7139-oakley-sonnenbrillen-damen-ebay.jpg

Always select a cushion that may be firm and raised a number of ins off of your your bed. This will aid enormously to minimize the force on your breathing passages so you usually do not sense constricted whenever you inhale and exhale. Utilizing this method will lead to a much more cozy night of rest and small loud snoring.

495-nike-air-max-flyknit-40.jpg
Converse Chucks Herren Günstig
A hidden function in the iPad's keyboard may be the speedy apostrophe important. When utilizing Mail, Information or Webpages you do not have to visit another key-board when you need to use an apostrophe. Touch downward and hold the "!" crucial. An apostrophe will show up over, and you simply slip your finger to select.

7734-nike-flyknit-4.0-damen-schwarz.jpg

Both bedrooms in your house that reject or entice probably the most residence consumers will be the home and the restrooms. This is why it is vital for you to always keep these two rooms current. Purchasers adore more bath rooms and updated kitchens, so bear that in mind when planning to do any redesigning.

11293-ny-cap-damen.jpg
Mbt Schuhe Geschäfte In Berlin Reuse and reuse to conserve a lot of money. Why constantly enhance the ecological problems linked to production and landfills? Anything that can possibly be used again ought to be used again. It's not embarrassing to get this done. It is actually useful and admirable not just from an environmental perspective but also coming from a personalized finance standpoint. 31176-adidas-flux-adv-black.jpg Are interested to buy a bottle of wines from an affordable area? Look at Chile! There are gorgeous whites using this place that will knock your stockings away from without the need of compelling you to spend a ton. If you wish to try out other available choices, check out To the south Africa and Nz, or Argentina. 21243-supra-schuhe-ebay.jpg
Poloshirt Reiten
Acne breakouts are a disease so try out speaking to your medical professional or perhaps a skin specialist with regards to a doctor prescribed medicine that can specifically assist you with the acne breakouts difficulties. Standard shop-brand experience washes can dry the face having its alcohol content material and might not target the true supply of your acne breakouts.

14668-ray-ban-lila.jpg

It is actually time for you to cease becoming irritated above your hair reduction. It can be time and energy to begin taking motion. There may be not a problem too big that this cannot be fixed, and comparably, hair loss is actually a little dilemma. Take the guidance using this post, and battle to obtain the head of locks rear!Simple Methods Concerning How To Improve Your Health Hair

1398-nike-damenschuhe-grau-orange.jpg

#10 RonsisM

RonsisM

    Super Veterano

  • Usuários
  • 15724 posts
  • Sexo:Masculino
  • Localidade:Plovdiv

Posted 28/10/2017, 21:46

Come Acquistare Viagra In Farmacia viagra Levitra In Usa
Viagra Prix Vidal Propecia Eficiencia Amoxicillin Liver Damage buy viagra Overnight Secure Dutasteride Medicine With Free Shipping Buto Asma Inhaler Buy Cheap Prednisone No Prescription
Il Viagra Napoletano viagra Buy Orlistat Prescription

#11 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 05:46

Amoxil Penicilline Levitra 40mg viagra Acquisto Cialis 20 Mg Priligy Tm
Generic Cialis No Prescription viagra Prednisone Online Pharmacy

#12 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 05:47

Renal Dosing Keflex Se Vende Viagra Sin Receta Medica viagra Commander Baclofen
Baclofen Vente 25mg viagra Super Kamagra Wirkstoff Purchase Motilium From Australia Infection Not Responding To Keflex

#13 HaroNism

HaroNism

    Super Veterano

  • Usuários
  • 15385 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 05:47

Malegra 150 Cialis 5 Mg Cost Acheter Cialis Fiable viagra Panamycin Levitra Prix Belgique Propecia Effects Testicular Pain

#14 LarPhozyHah

LarPhozyHah

    Super Veterano

  • Usuários
  • 14515 posts
  • Sexo:Masculino
  • Localidade:San Miguel de Tucuman

Posted 29/10/2017, 06:05

Online Escitalopram cheap cialis Amoxicillin For Kids Cialis En El Deporte
Derniers Conseils Plus Longs Amoxicillin 500 Mg Capsule Mail Order Toprol Xl levitra brand Buy Albuterol Sulfate Inhaler Online
Hydrochlorothiazide Medicine Overseas Plymouth discount generic isotretinoin accutane internet medication next day vardenafil canadian pharmacy Sirve Propecia Prezzo Cialis In Svizzera Best Canadian Pills
Cialis 20mg Non Generic viagra Atrovent Cialis Generique Brevet Zovirax Cream Ointment
Acheter Cialis Pharmacie France Buy Cheap Viagra Online generic viagra Kamagra 100mg In Linea Le Cialis En Tunisie Zithromax Mexico
Buy Cheap Kamagra Purchase Orlistat 60 Mg levitra canada Prescriptions On Line Propecia Es Lo Mismo Que Finasterida Mejor Viagra
Cialis Mecanismo De Accion Cialis Y Levitra Espana Cialis In Hamburg extra super levitra frumforum.co How Much Is Cialis Prescription
legally isotretinoin amex accepted Acheter Viagra Prix Micohex viagra online pharmacy Online Pharmacxy Propecia Algarve Levitra 20 Mg Commenti
Levitra Kaufen Niederlande Buy 60 Pills Anafranil Fast Shipping Hong Kong Viagra viagra Amoxicillin Antibiotic Effects Side Fast Shipping Cialis Daily Levaquin Anthrax Internet Cash Delivery Pharmacy
Cialis Nuevo Viagra Jelly For Sale Uk 123 buy cialis Buy Snovitra Online No Prescription Cialis Generika Legal
Europa Kamagra Vendita Generic Viagra On Line buy vardenafil online cheap Cephalexin And Yeast Infections
Propecia Jovenes Cuanto Cuesta Cialis En La Farmacia viagra Gimonte Kamagra How Long Does Zithromax Stay In System Propecia Generique 1mg
Cialis Achat En France Best Rated Generic Buspar Pharmacy Cytotec En Gynecologie viagra Swww Healthy Man Viagra Levitra Free
Biomox Amoxicillin viagra Cialis Scaduto Da Un Mese Onlinee Pharmaciees
Achat Amoxicillin Pharmacie Distribuer Produits viagra Keflex Effect On Staphylococcus Aureus Doping Propecia In Farmacia Propecia
Cialis Non Prescription Generic Cialis Is Priligy Any Good Levitra Generico Sicuro viagra Viagra Torrino Zithromax Lyme Treatment
Amoxicilina Tablet Low Price Se Puede Tomar Alchol Con Septra Ds Que Significa La Propecia viagra Pharmacy Femera Airmail
Clomid Absence Ovulation viagra Propecia Side Effects Laser Mail Order Tab Amoxicilina In Internet




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq