Jump to content
php.lv forumi
  • 0

fancybox ajax


Question

Posted

Sveiki!

 

Ir skriptinhsh kas ielodo ar ajax ieksh fancybox php lapeli.

 

$("#link1").fancybox({

ajax : {

type : "GET",

data : 'stat_type='+s_type

}

});

 

variabls s_type ir zinaams pie lapas startuopa

 

jautaajums - kaa iebarot dinamiskus varus no js - man nekaaadiigi nesanaak ar jQuery iebarot tajaa data variabli, kursh tiek izveidots veelaak - data : 'stat_type='+s_type+'&a='+sasa

 

 

kaadam ir idejas ???

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

Kur rodas tie "dinamiskie vari"?

Vienkārši īsti nesapratu ideju...

 

varbūt vienkārši jāpadod kā funkcijas parametri?

Edited by briedis
  • 0
Posted

jquery ir tāds pats js kā visi citi js!

 

ja kkādu variabli varēji iebarot vnreiz, tad vajadzētu iebarot arī vēlreiz. paskaties ar alert(), ko tu baro

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...