2easy Posted March 30, 2010 Report Share Posted March 30, 2010 vēlreiz? vari vnkāršu piemēru ar tiem vairākiem mainīgajiem? tā lai var saprast, kāpēc ir jāliek #_ (ar _) nevis vnk # (bez _) Quote Link to comment Share on other sites More sharing options...
bubu Posted March 30, 2010 Report Share Posted March 30, 2010 Tāpēc, ka anchoram jāsākas ar burtu vai apakšsvītru, nevis / simbolu? Quote Link to comment Share on other sites More sharing options...
2easy Posted March 30, 2010 Report Share Posted March 30, 2010 nope Quote Link to comment Share on other sites More sharing options...
bubu Posted March 30, 2010 Report Share Posted March 30, 2010 Kā nope? Tam anchoram jāsākas gan ar tādu pašu simbolu, ar kādu var sākties id vērtībā html'ā. Quote Link to comment Share on other sites More sharing options...
2easy Posted March 30, 2010 Report Share Posted March 30, 2010 (edited) tas fragments tiek izmantots tikai adresē (priekš info un back/forward navigācijas). htmlā nav nekādi name priekš šiem anchoriem. līdz ar to nav nekas, kas varētu sākties nepareizi :D tb nav nozīmes, ko tur adresē ieraksta aiz # bubu, palasi uri specifikāciju un pamācies ^^ http://tools.ietf.org/html/rfc3986#section-3.5 Edited March 30, 2010 by 2easy Quote Link to comment Share on other sites More sharing options...
nemec Posted April 2, 2010 Author Report Share Posted April 2, 2010 piemēram #_(adrese)&=(scroll position) Tātad es varu pieglabāt ne tikai adresi, bet arī piemēram scrolla pozīciju. Tas ir tāds parasts piemērs, var tur glabāt protams jebko. Ja ir interese, tad var papētīt mootools pluginu historymanager Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.