Olá,
possuo 1 pagina principal com uma div que é utilizada para carregar todo o conteúdo desejado através de um menu.
O problema é que, por exemplo, tenho um formulario com jquery para validação e envio que funciona 100%, mas ao carregar esse formulário na div as funções não funcionam. Tentei colocar o javascript na pagina a ser carregada e mesmo assim não funciona.
Testei no IE6 e IE7 e não deu certo.
Para ficar mais claro é o seguinte:
index.php -> possui uma div de conteudo <div id="conteudo">...</div>. Clicou no menu ele carrega o conteudo nesta DIV.
formulario.php -> possui o codigo de um formulario apenas <form>...</form>
O único jeito que funcionou foi uma copia da index.php já com o conteudo que quero, ou seja, cadastroProduto.php é igual a index só que com o formulario que desejo.
Gostaria de ficar sempre carregando o novo conteudo na div, menos alterações, mais facil a manutençao.
Desde já agradeço,
Obrigado
Ajax Da Pagina Principal Nao Funciona Em Pagina Carregada Em Div
Started By phzgyn, 17/06/2010, 15:23
10 replies to this topic
#2
Posted 06/07/2010, 12:12
Colega, a cada vez que você carregar alguma coisa via ajax, você tem que reatribuir os eventos, então, depois de vc carregar o conteudo na div#conteudo vc tem rechamar seu plugin de validação, examplo.
o jQuery tem um "atribuidor de eventos" chamado "live", que se você atribuir um evento click, mouseover, etc, vão ser atribuidos para elementos carregados via ajax, eliminando um bom trabalho.
function renewEvent(){ $('div#conteudo form').validate(); //exemplo de plugin } $(document).ready(function(){ $('div#menu_principal a').click(function(){ $('div#conteudo').load(this.href, function() { renewEvent(); }); }); });
o jQuery tem um "atribuidor de eventos" chamado "live", que se você atribuir um evento click, mouseover, etc, vão ser atribuidos para elementos carregados via ajax, eliminando um bom trabalho.
- Semprima likes this
#3
Posted 24/07/2010, 04:34
Asp.Net Ajax Calendar Control Validation For Date
To make Validation for Ajax Calendar so that usec cannot install Greater than or Less than Todays; date
This exammple demonstates Date Must not greater than Today’s Date
<asp:TextBox CssClass=”stdtextboxwidth” ID=”txtDate” runat=”server” Width=”180px”></asp:TextBox>
<cc1:CalendarExtender ID=”CalendarExtender1″ runat=”server” TargetControlID=”txtDate”
PopupButtonID=”imgDate” OnClientDateSelectionChanged=”checkDate”>
</cc1:CalendarExtender>
<img alt=”Calendar” src=”images/Calendar.png” id=”imgDate” />
Put Following Code into Javascript
<script type=”text/javascript”>
function checkDate(sender,args)
{
var dt = new Date();
if(sender._selectedDate > dt)
{
sender
._textbox
.set_Value(dt.format(sender._format));
alert(“You cannot Select Date Greater than Today”);
}
}
</script>
Asp.Net Ajax Calendar Control Validation For Date
Posted by Nilesh Rathod on March 19, 2010
To make Validation for Ajax Calendar so that usec cannot install Greater than or Less than Todays; date
This exammple demonstates Date Must not greater than Today’s Date
<asp:TextBox CssClass=”stdtextboxwidth” ID=”txtDate” runat=”server” Width=”180px”></asp:TextBox>
<cc1:CalendarExtender ID=”CalendarExtender1″ runat=”server” TargetControlID=”txtDate”
PopupButtonID=”imgDate” OnClientDateSelectionChanged=”checkDate”>
</cc1:CalendarExtender>
<img alt=”Calendar” src=”images/Calendar.png” id=”imgDate” />
Put Following Code into Javascript
<script type=”text/javascript”>
function checkDate(sender,args)
{
var dt = new Date();
if(sender._selectedDate > dt)
{
sender
._textbox
.set_Value(dt.format(sender._format));
alert(“You cannot Select Date Greater than Today”);
}
}
</script>
To make Validation for Ajax Calendar so that usec cannot install Greater than or Less than Todays; date
This exammple demonstates Date Must not greater than Today’s Date
<asp:TextBox CssClass=”stdtextboxwidth” ID=”txtDate” runat=”server” Width=”180px”></asp:TextBox>
<cc1:CalendarExtender ID=”CalendarExtender1″ runat=”server” TargetControlID=”txtDate”
PopupButtonID=”imgDate” OnClientDateSelectionChanged=”checkDate”>
</cc1:CalendarExtender>
<img alt=”Calendar” src=”images/Calendar.png” id=”imgDate” />
Put Following Code into Javascript
<script type=”text/javascript”>
function checkDate(sender,args)
{
var dt = new Date();
if(sender._selectedDate > dt)
{
sender
._textbox
.set_Value(dt.format(sender._format));
alert(“You cannot Select Date Greater than Today”);
}
}
</script>
Asp.Net Ajax Calendar Control Validation For Date
Posted by Nilesh Rathod on March 19, 2010
To make Validation for Ajax Calendar so that usec cannot install Greater than or Less than Todays; date
This exammple demonstates Date Must not greater than Today’s Date
<asp:TextBox CssClass=”stdtextboxwidth” ID=”txtDate” runat=”server” Width=”180px”></asp:TextBox>
<cc1:CalendarExtender ID=”CalendarExtender1″ runat=”server” TargetControlID=”txtDate”
PopupButtonID=”imgDate” OnClientDateSelectionChanged=”checkDate”>
</cc1:CalendarExtender>
<img alt=”Calendar” src=”images/Calendar.png” id=”imgDate” />
Put Following Code into Javascript
<script type=”text/javascript”>
function checkDate(sender,args)
{
var dt = new Date();
if(sender._selectedDate > dt)
{
sender
._textbox
.set_Value(dt.format(sender._format));
alert(“You cannot Select Date Greater than Today”);
}
}
</script>
#4
Posted 14/09/2017, 05:52
Propecia Dose Testicular Pain cialis Expired Amoxil
Cheap Viagra Online Usa Baclofene Et Lyrica
Balding Propecia Hair Follicles <a href=http://cialtobuy.com>online pharmacy</a> Cialis Allemagne
Cheap Amoxicillin Without Prescription cialis Dove Trovare Il Viagra
Online Pharmaciy Amoxicillin For Fish Price
Puedo Tomar Cialis En Ayunas <a href=http://cialtobuy.com>cialis</a> Cialis Without Prescription
Cialis Canada Viagra generic cialis Cialis 10 Mg Comprimidos
Discount Free Shipping Dutasteride Real Store Priligy Portugal Pill Identification Keflex
Cvs Pharmacy Propecia <a href=http://cialtobuy.com>generic cialis</a> Buy Generic Viagra
Levitra With Dapoxetine Reviews online pharmacy Le Xenical Est Il En Vente Libre
Viagra Effetti Positivi Pure Taladafil Companies In Us
Amoxicillin Clavulanic Acid 875mg 125mg <a href=http://cialtobuy.com>cialis online</a> Cialis Kaufen Forum
Cheap Viagra Online Usa Baclofene Et Lyrica
Balding Propecia Hair Follicles <a href=http://cialtobuy.com>online pharmacy</a> Cialis Allemagne
Cheap Amoxicillin Without Prescription cialis Dove Trovare Il Viagra
Online Pharmaciy Amoxicillin For Fish Price
Puedo Tomar Cialis En Ayunas <a href=http://cialtobuy.com>cialis</a> Cialis Without Prescription
Cialis Canada Viagra generic cialis Cialis 10 Mg Comprimidos
Discount Free Shipping Dutasteride Real Store Priligy Portugal Pill Identification Keflex
Cvs Pharmacy Propecia <a href=http://cialtobuy.com>generic cialis</a> Buy Generic Viagra
Levitra With Dapoxetine Reviews online pharmacy Le Xenical Est Il En Vente Libre
Viagra Effetti Positivi Pure Taladafil Companies In Us
Amoxicillin Clavulanic Acid 875mg 125mg <a href=http://cialtobuy.com>cialis online</a> Cialis Kaufen Forum
#5
Posted 11/10/2017, 16:18
Buy Plavix Female Viagra Online Australia cheapest generic levitra Amoxicillin And Clavulanate Potassium Augmentin
Vente Kamagra 150 Mg viagra Discount Secure Ordering Acticin Direct
Wiki Amoxicillin viagra online pharmacy Zithromax Lawsuits Levitra Long Term?Effects Wirkung Von Viagra Verstarken
Vente Kamagra 150 Mg viagra Discount Secure Ordering Acticin Direct
Wiki Amoxicillin viagra online pharmacy Zithromax Lawsuits Levitra Long Term?Effects Wirkung Von Viagra Verstarken
#6
Posted 12/10/2017, 12:56
Cephalexin Alcohal Levitra Tiempo De Duracion Pharmacie En Ligne Du Canada Cialis levitra billig Cialis 4cpr Riv 10mg Prezzo
Propecia 98 Preis Acheter Viagra Nord buy viagra online secure ordering isotretinoin amex accepted low price Where Can I Purchase Viagra Online
Propecia 98 Preis Acheter Viagra Nord buy viagra online secure ordering isotretinoin amex accepted low price Where Can I Purchase Viagra Online
#7
Posted 12/10/2017, 13:49
Amoxicillin Cheese online pharmacy Comprar Cialis Farmacia Andorra Cialis 20mg Non Generic
#8
Posted 28/10/2017, 20:13
Free Shipping Legally Zentel Discount Cheap Achat De Kamagra viagra prescription Suhagra Supreme Suppliers Amoxicillin 250 5 Infant Dosage
Comment Acheter Du Baclofene Sur Internet Buy Antabuse Online Cialis 10 Vidal buy viagra Buy Generic Propecia 5mg
Amoxicillin The Right Dose Forseniors Cialis Bayer 20 Comment Prendre Le Cytotec buy viagra online Why Cephalexin In Dogs Levitra 10 Bucodispersable Viagra Levitra Differenze
Comment Acheter Du Baclofene Sur Internet Buy Antabuse Online Cialis 10 Vidal buy viagra Buy Generic Propecia 5mg
Amoxicillin The Right Dose Forseniors Cialis Bayer 20 Comment Prendre Le Cytotec buy viagra online Why Cephalexin In Dogs Levitra 10 Bucodispersable Viagra Levitra Differenze
#9
Posted 13/11/2017, 00:42
Best Price On Viagra Without Rx viagra Buy Cialis Online No Prescription Acheter Vrai Viagra Ligne En Bourges Levitra Compresse Prezzo
Vendo Kamagra Chile Cialis Fertilita Buy Priligy Dapoxetine From India cheap 80 mg vardenafil hcl Does Amoxicillin Affect Pap Smear Alli Weight Loss In Stock
Vendo Kamagra Chile Cialis Fertilita Buy Priligy Dapoxetine From India cheap 80 mg vardenafil hcl Does Amoxicillin Affect Pap Smear Alli Weight Loss In Stock
#10
Posted 13/11/2017, 05:35
Clomid C Est Coi Isotretinoin In Internet Can I Buy Levitra In Mexico cheap cialis Kamagra En Ligne Lille Cialis En Barcelona Thyroxine
Permiso De Propecia Buy Wellbutrin Sr 150mg In Usa Viagra And Cialis Ordering In Canada levitra germany priligy Make Me Durer Plus Longtemps Advair Viagra Generico En Farmacia
Levitra Senza Ricetta Medica viagra Viagra Verpackung Scherz Viagra Au Feminin
Propecia Laboratorios Cialis Durata Erezione Commander Du Cialis cialis Achat Viagra Pfizer Ligne Cialis Farmaco Da Banco Isotretinoin Worldwide
Permiso De Propecia Buy Wellbutrin Sr 150mg In Usa Viagra And Cialis Ordering In Canada levitra germany priligy Make Me Durer Plus Longtemps Advair Viagra Generico En Farmacia
Levitra Senza Ricetta Medica viagra Viagra Verpackung Scherz Viagra Au Feminin
Propecia Laboratorios Cialis Durata Erezione Commander Du Cialis cialis Achat Viagra Pfizer Ligne Cialis Farmaco Da Banco Isotretinoin Worldwide
#11
Posted 13/02/2023, 11:24
There are 10 tabs in a box and each tab has a dose of 20 Mg clomiphene capsules for sale
so i m saying it s normal buy tamoxifen citrate online I had a previous life threatening experience with 5 other people everyone came out okay in the end
Disorders of lysosomal acidification the emerging role of v ATPase in aging and neurodegenerative disease magnesium and tamoxifen interaction PUBMED Abstract Ardeshna KM, Smith P, Norton A, et al
so i m saying it s normal buy tamoxifen citrate online I had a previous life threatening experience with 5 other people everyone came out okay in the end
Disorders of lysosomal acidification the emerging role of v ATPase in aging and neurodegenerative disease magnesium and tamoxifen interaction PUBMED Abstract Ardeshna KM, Smith P, Norton A, et al
0 user(s) are reading this topic
0 membro(s), 0 visitante(s) e 0 membros anônimo(s)